Hello,

I wrote a small python script to call spacewalk/rhn API from command
line just like utils/spacewalk-api does.

It has some nifty features IMO and perhaps might be useful for others.


Features of my script:

  * Api arguements can be passed from command line.

  * Default result format is JSON; it's pretty easy to customize output
    format as needed.

  * Utilize config file to set authentication parameters to cut out
    the need of specifying these with command line options or typing
    these everytime.

  * Query results are cached by default. It should be first to get
    the results if same api is called with same arguments next time.


Download: http://github.com/ssato/misc/blob/master/spacewalk-api.py

-- 
Thanks,
Satoru SATOH

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to