Skip to main content

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.

Requirements

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.

Example

>>> 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

Download files

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

Source Distribution

sgeparse-0.0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sgeparse-0.0.2-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sgeparse-0.0.2.tar.gz.

File metadata

  • Download URL: sgeparse-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sgeparse-0.0.2.tar.gz
Algorithm Hash digest
SHA256 66b232f734628868264426f7107b38f95a971a7d621bc83fef0b776aecdbe73d
MD5 9c672b365563dcfc61b7b8b173480b53
BLAKE2b-256 d3653d6af57687ba9f8f6a88a0a79f3cd99bed645e542f62b8dfd9a36e6c94ff

See more details on using hashes here.

File details

Details for the file sgeparse-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sgeparse-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8cb486076be571d2707d4b359a9018911b87aef1a7aab76f7b8b97e003f4a3f2
MD5 27db393ba9ba45ae5e9c2a057121511b
BLAKE2b-256 04469ee1dbd666db4e1d4d2fce7a347f594667c7c159ac58464bfe147dee76e8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page