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_tmpl.json
contains the job templatejob_def.json
contains the job definitionrun_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.
sgen job_tmpl.json job_def.json
# Create a Slurm script and run the job locally.
sgen --local job_tmpl.json job_def.json
# Create a Slurm script and run the job on the cluster.
sgen --cluster job_tmpl.json job_def.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-1.2.0.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file slurmgen-1.2.0.tar.gz
.
File metadata
- Download URL: slurmgen-1.2.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61c2e8f1d901290e6f2cf3e3e03641137cfc9147034c4030a2ef7d359fc52996 |
|
MD5 | 50ef202ca18acb2a2b2cd885f5084c23 |
|
BLAKE2b-256 | 2f1c03d4e046c274d46a4354a4c97fbb50a7d643be35ec701e8fe92b1a60d560 |
File details
Details for the file slurmgen-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: slurmgen-1.2.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7df800a32150817728d28ca505ec9f1f2ba46a1d00b62c1f3a09e9eb757bf0a8 |
|
MD5 | 8388f35a5263d06d6b1504cc44a03445 |
|
BLAKE2b-256 | f96b491bf6de8029506bb8d20c44110b58b5caaaeb4dbdd8567be00f4c4a9fb6 |