As it stands, I am in the process (fairly early) of writing parsers for the xml output in python for use as an (initially read-only) RESTful api to the cluster functions.
https://github.com/BeocatKSU/sge-rest-api In the model ( https://github.com/BeocatKSU/sge-rest-api/blob/master/sgerestapi/model.py ) you can see how I am parsing qstat data with lxml. One of the difficulties with performing this is that the xml output isn't always consistent with the 'plaintext' output provided by default, nor do all commands have xml output options. I've not seen any existing parsers for such data from SGE's xml output, though. -- Adam On Tue, Aug 19, 2014 at 10:17 AM, Stu Whitman <[email protected]> wrote: > Hello, > > I need to discover the grid configuration from Python. I am considering > calling qstat, qhost, qconf etc. from Python and parsing the output. I > noticed some, but not all of the grid commands have an option to output in > xml. Does anyone know of a Python module that might already take this > approach? > > Thanks, > Stu > > _______________________________________________ > users mailing list > [email protected] > https://gridengine.org/mailman/listinfo/users > _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
