PySLURM is a Python/Cython extension module to the Simple Linux Unified Resource Manager (SLURM) API. SLURM is typically used on HPC clusters such as those listed on the TOP500 but can used on the smallest to the largest cluster.

The original and current implementation (1.X/2.x) of PySLURM was a thin layer for the SLURM C function calls but this is currently being hidden behind an object orientated interface.

PySLURM is currently being ported to an object model for the latest 2.2/2.3 and 2.4 APIs.


>>> import pyslurm 
>>> a = pyslurm.job() 
>>> job_dict = a.get() 
>>> print "JobIDs - %s" % a.ids() 
JobIDs - [6, 7, 8, 9] 
>>> print "JobIDs in Running state - %s" % a.find('job_state', 'Running') 
JobIDs in Running state - [6]