SLURM utilities for Python
Project description
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
Project details
Release history Release notifications | RSS feed
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.3.0.tar.gz
(70.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyslurmutils-1.3.0.tar.gz.
File metadata
- Download URL: pyslurmutils-1.3.0.tar.gz
- Upload date:
- Size: 70.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fad2f9c75f84768fb32ff7bd2f04ac5471de5aeac5a799851b6b823354a5b4cd
|
|
| MD5 |
3480e55f36dd7d1f598db138eab5dc67
|
|
| BLAKE2b-256 |
8d8a742a8f39a22adbf2f12403e5349d0bc8a24bfcc61712c74695661cf29cd6
|
File details
Details for the file pyslurmutils-1.3.0-py3-none-any.whl.
File metadata
- Download URL: pyslurmutils-1.3.0-py3-none-any.whl
- Upload date:
- Size: 88.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
537894bd5419d8fe4adbdd84db1d567e9908c3c4e08dcf19eb658f4035547236
|
|
| MD5 |
9a78b5ec709807f1ca30deb8667fa2b3
|
|
| BLAKE2b-256 |
9aacd62b9c413b78db0fa57cc6f23797965b0e0451e52956c25f143ca937a4a0
|