Skip to main content

pyslurmutils

SLURM utilities for scheduling jobs from Python.

The main purpose of this library is to provide a concurrent.futures.Executor implementation for SLURM which can be used on any machine, not necessarily a SLURM client.

pip install pyslurmutils
from pyslurmutils.concurrent.futures import SlurmRestExecutor

with SlurmRestExecutor(
    url=url,                               # SLURM REST URL
    user_name=user_name,                   # SLURM user name
    token=token,                           # SLURM access token
    log_directory="/path/to/log",          # for log files (optional)
    data_directory="/path/to/data",        # TCP communication when not provided
    pre_script="module load ewoks",        # load environment (optional)
    parameters={"time_limit": "02:00:00"}, # SLURM job parameters (optional)
    python_cmd="python",                   # python command (python3 by default)
) as executor:
    future = executor.submit(sum, [1, 1])
    assert future.result() == 2

Documentation

https://pyslurmutils.readthedocs.io/

Download files

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

Source Distribution

pyslurmutils-1.6.0.tar.gz (78.8 kB view details)

Uploaded Source

Built Distribution

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

pyslurmutils-1.6.0-py3-none-any.whl (98.2 kB view details)

Uploaded Python 3

File details

Details for the file pyslurmutils-1.6.0.tar.gz.

File metadata

  • Download URL: pyslurmutils-1.6.0.tar.gz
  • Upload date:
  • Size: 78.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pyslurmutils-1.6.0.tar.gz
Algorithm Hash digest
SHA256 1235c221491a9d6d9a4506857a614f0f4eb5d32ea2c46e52f3da14504c277af5
MD5 01911f046e8be363e1f4a28e97847673
BLAKE2b-256 48e47fca14e81b6b07836bdf042ef26851ef1e3c7975de19d42a69584540200d

See more details on using hashes here.

File details

Details for the file pyslurmutils-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: pyslurmutils-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 98.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pyslurmutils-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89c7baa0cf54cc991a0486c32358d817a096aed322b4d7a8bcb21c2a8a23ab38
MD5 01100107a3d02f2c4af6ff0a7a92772b
BLAKE2b-256 43a7e57246fff0d486642ae977f6610faf9f156a1a1408fbbe619ef8847787c5

See more details on using hashes here.

Supported by

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