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
Metadata
Release files for pyslurmutils 1.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyslurmutils-1.7.0.tar.gz | 101.3 kB | Without provenance | Details for pyslurmutils-1.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyslurmutils-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for pyslurmutils-1.7.0-py3-none-any.whl |
Total release size: 225.1 kB
Release files / pyslurmutils-1.7.0.tar.gz
| Download URL | pyslurmutils-1.7.0.tar.gz |
|---|---|
| Size | 101.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ca154b7137a37b2157492e48d657b7b4aa3d2de9f2ecf7f65ecd3fe669c6122
|
|
BLAKE2b-256 checksum How to use checksums |
37f1365022a24d3d65258f0ee3acdcdb7aa733530415d10fa5bf0cdc7d680dd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / pyslurmutils-1.7.0-py3-none-any.whl
| Download URL | pyslurmutils-1.7.0-py3-none-any.whl |
|---|---|
| Size | 123.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c627b956300bbec51691a407bced61e60574e194273010630d5c2c93a6add36
|
|
BLAKE2b-256 checksum How to use checksums |
def4d762d4be1d62769a48e3a7ce9c563c6421c4eeac3c6994c289f58b208a02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for pyslurmutils 1.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.