naive python slurm control
Project description
enjoy-slurm
enjoy-slurm
is a naive slurm control package for python. It does interact with Slurm exactly as any user would do, simply through the command
line tools and arguments. That's why we call it naive. However, it should avoid having to rewrite some scripts required to submit and control many
Slurm jobs on an HPC computer. This package is a successor of the retired HPC scheduler package.
Features
- Use
sbatch
,sacct
,scontrol
etc. directly from python with a pythonic API. - Parse command outputs into python objects like pandas DataFrames or dictionaries.
Examples
import enjoy_slurm as slurm
jobid = slurm.sbatch("job.sh", partition="compute", account="my_account")
acct = slurm.sacct(jobid=jobid)
# run another job that depends on the first
jobid1 = slurm.sbatch(
"another_job.sh", dependency=jobid, partition="shared", account="my_account"
)
acct1 = slurm.sacct(jobid=jobid1)
Related projects
Project based on the cookiecutter science project template.
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
enjoy_slurm-0.1.3.tar.gz
(28.5 kB
view details)
Built Distribution
File details
Details for the file enjoy_slurm-0.1.3.tar.gz
.
File metadata
- Download URL: enjoy_slurm-0.1.3.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ff90984cb5c4d2e0bc8630552aa66ebbaa02fd982d8a69430c2d88baa5632f |
|
MD5 | 8df46fe5860d0f36431509b56770fe63 |
|
BLAKE2b-256 | d6d9057b6e0631740e789eafcc65466c0163cddaa254f9993528c3f7e7b54c12 |
File details
Details for the file enjoy_slurm-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: enjoy_slurm-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e169cb79a564eb4674336ef6a706315a1eda79d2053304ad68aab59455d064fe |
|
MD5 | 8d2c43655dae07e72c74cfcb2aa7b985 |
|
BLAKE2b-256 | d3c7ddc65fd69c380f3ecf5d38b314d8273a48cf9ec8d77d3933609b4e753b7f |