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 a JSON file.
- The JSON file is transformed into a Slurm script.
- The Slurm file is submitted to the 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:
test.json
contains the Slurm job descriptionrun_slurm.py
contains is dummy script executed by the jonslurm_output
contains the generated Slurm script and log file- 'data_output' contains data generated by the Slurm job
# Running this command will:
# - Create a Slurm script "slurm_output/test.slm"
# - Put the log file in "slurm_output/test.log"
# - Run the Slurm script on the cluster
sgen test.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 - Dartmouth College
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-0.3.0.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file slurmgen-0.3.0.tar.gz
.
File metadata
- Download URL: slurmgen-0.3.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9ef3741a2b6aacc6a1d962fc3e2a5f332b8583449e057db4d4fcca98b7d146 |
|
MD5 | df25f4c8a0f73e6856d6c99ba8aaf063 |
|
BLAKE2b-256 | e07396c35227144b6cc4a307510de63c6a279ef0571ad35ccc8ea3273e4eb5c2 |
File details
Details for the file slurmgen-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: slurmgen-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.5 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 | bd4a812c53df569d1b13f470c6113dc079b32200d74503aa8ab03d06bc437c60 |
|
MD5 | 96cd2682d9054b08c4e50de2e7897f5e |
|
BLAKE2b-256 | c4f806974cfe63cdd4d2dbd5e48f86f0552dc03d8f364bd17f933b6085e3822d |