SlurmGen - Simple Manager for Slurm Jobs
- Repository: github.com/otvam/slurmgen
- PyPi: pypi.org/project/slurmgen
- Conda: anaconda.org/conda-forge/slurmgen
Summary
SlurmGen is a very simple Slurm manager:
- The job description is stored in JSON files.
- The JSON files are transformed into Slurm scripts.
- The Slurm script can be run locally or on a Slurm Cluster.
SlurmGen is only supporting a small subset of Slurm:
- Create and delete folders.
- Set environment variables.
- Set the job name and log.
- Set the ressources (memory, time, CPU, etc.).
- Define the set of commands to be executed.
SlurmGen is not a binding and/or a wrapper for Slurm. SlurmGen is only generating Slurm scripts from JSON files. SlurmGen is written in Python without any external dependencies.
Example
An example is located in the example folder of the repository:
job_def.jsoncontains the job definitionjob_tmpl.jsoncontains the template datarun_slurm.pycontains is dummy script executed by the Slurm jobslurm_outputcontains the generated Slurm script and log filedata_outputcontains data generated by the Slurm job
# Create a Slurm script with a command line template.
sgen job_def.json --tmpl_str "title" "test" --tmpl_str "var" "Welcome to everyone"
# Create a Slurm script with a JSON file template.
sgen job_def.json --tmpl_file job_tmpl.json
# Create a Slurm script and run the job locally.
sgen job_def.json --local --tmpl_file job_tmpl.json
# Create a Slurm script and run the job on the cluster.
sgen job_def.json --cluster --tmpl_file job_tmpl.json
Project Links
- Repository: https://github.com/otvam/slurmgen
- Releases: https://github.com/otvam/slurmgen/releases
- Tags: https://github.com/otvam/slurmgen/tags
- Issues: https://github.com/otvam/slurmgen/issues
- PyPi: https://pypi.org/project/slurmgen
- Conda: https://anaconda.org/conda-forge/slurmgen
Author
- Thomas Guillod
- Email: guillod@otvam.ch
- Website: https://otvam.ch
Copyright
(c) 2023 - Thomas Guillod
BSD 2-Clause "Simplified" License
Metadata
Release files for slurmgen 3.14.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 |
|---|---|---|---|---|
| slurmgen-3.14.0.tar.gz | 11.5 kB | Without provenance | Details for slurmgen-3.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slurmgen-3.14.0-py3-none-any.whl | Python 3 | none | any | Details for slurmgen-3.14.0-py3-none-any.whl |
Total release size: 20.6 kB
Release files / slurmgen-3.14.0.tar.gz
| Download URL | slurmgen-3.14.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d763783b181ac06fef4618d299bc996a2e367ebca2ea9b75ada424d7f267966
|
|
BLAKE2b-256 checksum How to use checksums |
f69da9e6df71137245c6c03d2167f52fe6b64a9ee0689e56c962b30e3c5a454c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.11
|
Release files / slurmgen-3.14.0-py3-none-any.whl
| Download URL | slurmgen-3.14.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be1f37d651213f5f24c2889fa10cfa58e406679303afd688a25131fc90a5032f
|
|
BLAKE2b-256 checksum How to use checksums |
5fec6c1a3bce3b97b2ce0c1e3a2dfdc48f046229917192572d078cceaf62f0a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.11
|
Security for slurmgen 3.14.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.