SlurmGen - Simple Slurm Manager
Project description
SlurmGen - Simple Slurm Manager
- Repository: github.com/otvam/slurmgen
- Package: pypi.org/project/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.json
contains the job definitionjob_tmpl.json
contains the template datarun_slurm.py
contains is dummy script executed by the jonslurm_output
contains the generated Slurm script and log filedata_output
contains data generated by the Slurm job
# Create a Slurm script with a command line template.
sgen job_def.json --tmpl_str "{'title': 'test', '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
Author
- Thomas Guillod
- Email: guillod@otvam.ch
- Website: https://otvam.ch
Copyright
(c) 2023 - Thomas Guillod
BSD 2-Clause "Simplified" License
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
slurmgen-2.2.0.tar.gz
(10.5 kB
view details)
Built Distribution
File details
Details for the file slurmgen-2.2.0.tar.gz
.
File metadata
- Download URL: slurmgen-2.2.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1836bfd06a9780bda27304defb7f9917b65af7fd3914f8442163e3f6111cc43 |
|
MD5 | 0bf70a0249fefca0a81669a846713d80 |
|
BLAKE2b-256 | 639159011f30b329e5a8473c7ecf518c215bb1c8353bc58f0a20bcf52be83b0b |
File details
Details for the file slurmgen-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: slurmgen-2.2.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e7d0163af84108aa5cb9163e477233da090a82e76f0c991c939ae46b98b4b8 |
|
MD5 | f7bcfe493a67a4bef17d103c11172d16 |
|
BLAKE2b-256 | b064a103a3b8358f3c49cd9c984133123afee616bdba30b19bca5eba06ee5db3 |