Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

For parsing running SGE jobs

Project Description

Simple python module for parsing the output of SGE qstat. There is only one top level function: get_jobs which returns a list of dictionaries of currently queued (running or waiting) jobs.


The only requirements are Python version 2.7+ or 3.3+. All code uses the standard library. The binary qstat must be available and in your $PATH.


>>> from sgeparse import get_jobs
>>> jobs = get_jobs()
>>> # => {"name": "jobname", "owner": "me", ... }

The user argument can be used to specify which user to query:

>>> from sgeparse import get_jobs
>>> jobs = get_jobs(user='nobody')
>>> # => {"name": "jobname", "owner": "nobody", ... }

Available keys

  • job_number
  • priority
  • name
  • owner
  • state
  • start_time
  • queue
  • host
  • slots

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.3 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 May 16, 2015
(2.5 kB) Copy SHA256 Hash SHA256
Source None May 16, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting