Name | slurmgen JSON |
Version |
3.5.0
JSON |
| download |
home_page | None |
Summary | SlurmGen - Simple Slurm Manager |
upload_time | 2024-05-22 22:39:20 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.6 |
license | BSD-2-Clause |
keywords |
python
slurm
hpc
cluster
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# SlurmGen - Simple Slurm Manager
> * **Repository: [github.com/otvam/slurmgen](https://github.com/otvam/slurmgen)**
> * **Package: [pypi.org/project/slurmgen](https://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 definition
* `job_tmpl.json` contains the template data
* `run_slurm.py` contains is dummy script executed by the jon
* `slurm_output` contains the generated Slurm script and log file
* `data_output` contains data generated by the Slurm job
```bash
# 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
## Author
* **Thomas Guillod**
* Email: guillod@otvam.ch
* Website: https://otvam.ch
## Copyright
> (c) 2023 - Thomas Guillod
>
> BSD 2-Clause "Simplified" License
Raw data
{
"_id": null,
"home_page": null,
"name": "slurmgen",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "Thomas Guillod <guillod@otvam.ch>",
"keywords": "Python, Slurm, HPC, Cluster",
"author": null,
"author_email": "Thomas Guillod <guillod@otvam.ch>",
"download_url": "https://files.pythonhosted.org/packages/f1/a2/0bfa1024575cbf622c8cc0317e4a56ce15a8bbf3b4a0a7fc632b45e5bb47/slurmgen-3.5.0.tar.gz",
"platform": null,
"description": "# SlurmGen - Simple Slurm Manager\n\n> * **Repository: [github.com/otvam/slurmgen](https://github.com/otvam/slurmgen)**\n> * **Package: [pypi.org/project/slurmgen](https://pypi.org/project/slurmgen)**\n\n## Summary\n\n**SlurmGen** is a very **simple** **Slurm** manager:\n* The job description is stored in JSON files.\n* The JSON files are transformed into Slurm scripts.\n* The Slurm script can be run locally or on a Slurm Cluster.\n\n**SlurmGen** is only supporting a small **subset** of **Slurm**:\n* Create and delete folders.\n* Set environment variables.\n* Set the job name and log.\n* Set the ressources (memory, time, CPU, etc.).\n* Define the set of commands to be executed.\n\nSlurmGen is not a binding and/or a wrapper for Slurm.\nSlurmGen is only generating Slurm scripts from JSON files.\nSlurmGen is written in Python without any external dependencies.\n\n## Example\n\nAn example is located in the `example` folder of the repository:\n* `job_def.json` contains the job definition\n* `job_tmpl.json` contains the template data\n* `run_slurm.py` contains is dummy script executed by the jon\n* `slurm_output` contains the generated Slurm script and log file\n* `data_output` contains data generated by the Slurm job\n\n```bash\n# Create a Slurm script with a command line template.\nsgen job_def.json --tmpl_str \"title\" \"test\" --tmpl_str \"var\" \"Welcome to everyone\"\n\n# Create a Slurm script with a JSON file template.\nsgen job_def.json --tmpl_file job_tmpl.json\n\n# Create a Slurm script and run the job locally.\nsgen job_def.json --local --tmpl_file job_tmpl.json\n\n# Create a Slurm script and run the job on the cluster.\nsgen job_def.json --cluster --tmpl_file job_tmpl.json\n```\n\n## Project Links\n\n* Repository: https://github.com/otvam/slurmgen\n* Releases: https://github.com/otvam/slurmgen/releases\n* Tags: https://github.com/otvam/slurmgen/tags\n* Issues: https://github.com/otvam/slurmgen/issues\n* PyPi: https://pypi.org/project/slurmgen\n\n## Author\n\n* **Thomas Guillod**\n* Email: guillod@otvam.ch\n* Website: https://otvam.ch\n\n## Copyright\n\n> (c) 2023 - Thomas Guillod\n> \n> BSD 2-Clause \"Simplified\" License\n",
"bugtrack_url": null,
"license": "BSD-2-Clause",
"summary": "SlurmGen - Simple Slurm Manager",
"version": "3.5.0",
"project_urls": {
"Homepage": "https://github.com/otvam/slurmgen",
"Issues": "https://github.com/otvam/slurmgen/issues",
"Releases": "https://github.com/otvam/slurmgen/releases",
"Repository": "https://github.com/otvam/slurmgen",
"Tags": "https://github.com/otvam/slurmgen/tags"
},
"split_keywords": [
"python",
" slurm",
" hpc",
" cluster"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8f2358dc5d3a5db1d967915a2f34271dfd5a0cf009d3ecf27875c45d0b7a52d8",
"md5": "5a731f6e9e9791b2645a013b66e78218",
"sha256": "1a4cbc579283300dc9c1e369259437786b058a1c63ba550c75381baa3490a0d9"
},
"downloads": -1,
"filename": "slurmgen-3.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5a731f6e9e9791b2645a013b66e78218",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9088,
"upload_time": "2024-05-22T22:39:18",
"upload_time_iso_8601": "2024-05-22T22:39:18.752615Z",
"url": "https://files.pythonhosted.org/packages/8f/23/58dc5d3a5db1d967915a2f34271dfd5a0cf009d3ecf27875c45d0b7a52d8/slurmgen-3.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f1a20bfa1024575cbf622c8cc0317e4a56ce15a8bbf3b4a0a7fc632b45e5bb47",
"md5": "307ff082f403ad8da12a428abe3a626a",
"sha256": "e3cc20e5408dc0fd845e5ba9584d51fe21cb6c872042efdda8162088b467e707"
},
"downloads": -1,
"filename": "slurmgen-3.5.0.tar.gz",
"has_sig": false,
"md5_digest": "307ff082f403ad8da12a428abe3a626a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 10648,
"upload_time": "2024-05-22T22:39:20",
"upload_time_iso_8601": "2024-05-22T22:39:20.688315Z",
"url": "https://files.pythonhosted.org/packages/f1/a2/0bfa1024575cbf622c8cc0317e4a56ce15a8bbf3b4a0a7fc632b45e5bb47/slurmgen-3.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-22 22:39:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "otvam",
"github_project": "slurmgen",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "slurmgen"
}