Skip to main content

enjoy-slurm

Build Status codecov License:MIT pypi Documentation Status pre-commit.ci status

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)

Project based on the cookiecutter science project template.

Metadata

Release files for enjoy-slurm 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enjoy-slurm 0.1.3
File Size Uploaded
enjoy_slurm-0.1.3.tar.gz 28.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for enjoy-slurm 0.1.3
File Interpreter ABI Platform
enjoy_slurm-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 43.3 kB

Release files / enjoy_slurm-0.1.3.tar.gz

Download URL enjoy_slurm-0.1.3.tar.gz
Size 28.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e5ff90984cb5c4d2e0bc8630552aa66ebbaa02fd982d8a69430c2d88baa5632f
BLAKE2b-256 checksum
How to use checksums
d6d9057b6e0631740e789eafcc65466c0163cddaa254f9993528c3f7e7b54c12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / enjoy_slurm-0.1.3-py3-none-any.whl

Download URL enjoy_slurm-0.1.3-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e169cb79a564eb4674336ef6a706315a1eda79d2053304ad68aab59455d064fe
BLAKE2b-256 checksum
How to use checksums
d3c7ddc65fd69c380f3ecf5d38b314d8273a48cf9ec8d77d3933609b4e753b7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page