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.7.0.tar.gz (101.3 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.7.0-py3-none-any.whl (123.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyslurmutils-1.7.0.tar.gz
Algorithm Hash digest
SHA256 7ca154b7137a37b2157492e48d657b7b4aa3d2de9f2ecf7f65ecd3fe669c6122
MD5 dafe0f51deac8d586c285dc8da3bf802
BLAKE2b-256 37f1365022a24d3d65258f0ee3acdcdb7aa733530415d10fa5bf0cdc7d680dd8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyslurmutils-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c627b956300bbec51691a407bced61e60574e194273010630d5c2c93a6add36
MD5 2f22ba2f5a3a44d59b55dc5dd544819b
BLAKE2b-256 def4d762d4be1d62769a48e3a7ce9c563c6421c4eeac3c6994c289f58b208a02

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 files

1.6.0

2 files

1.5.0

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.0

1 file

1.0.0

1 file

0.3.5

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.0

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

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