Skip to main content

Python Interface for Slurm

Project description


Currently PySlurm is under development to move from it’s thin layer on top of the Slurm C API to an object orientated interface.

This release is based on Slurm 18.08.


This PySlurm branch has been tested with:

  • Cython 0.15.1*, 0.19.2, and the latest stable

  • Python 2.6, 2.7, and 3.4

  • Slurm 18.08.0 thru 18.08.1

    Note: Cython 0.15.1 is only tested on Python 2.7.


You will need to instruct the script where either the Slurm install root directory or where the Slurm libraries and Slurm include files are :

  1. Slurm default directory (/usr):

    • python build
    • python install
  2. Indicate Blue Gene type Q on build line:

    • –bgq
  3. Slurm root directory (Alternate installation directory):

    • python build –slurm=PATH_TO_SLURM_DIR
    • python install
  4. Separate Slurm library and include directory paths:

    • python build –slurm-lib=PATH_TO_SLURM_LIB –slurm-inc=PATH_TO_SLURM_INC
    • python install
  5. The build will automatically call a cleanup procedure to remove temporary build files but this can be called directly if needed as well with :

    • python clean


The API documentation is hosted at

To build the docs locally, use Sphinx to generate the documentation from the reStructuredText based docstrings found in the pyslurm module once it is built:

cd doc
make clean
make html


Ask questions on the pyslurm group.

Project details

Download files

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

Source Distribution

pyslurm- (535.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page