SlurmBot 🤖
Simple tool to wrap and execute sbatch commands from python scripts or Jupyter Notebook cells with conda envs and config files. Less mess, more reproducibility and security (if published to GitHub, for instance).
Based on jbatch.
- ⚙️ Config Files: Create config files in
YAMLformat and reuse them. Make adefault.yamlin~/.config/slurmbot/default.yaml - 🐍 Python Variables: Easily integrate Python variables into your Slurm job commands.
- 🛠️ Conda: Activate Conda environments with the
condaproperty.
Installation
pip install slurmbot
Example
from slurmbot import SlurmBot
sb = SlurmBot() # using default yaml from ~/.config/slurmbot/default.yaml, if exists OR specify path to config
samples = ["SRR000001", "SRR000002"]
for sample in samples:
sb.run(f"fasterq-dump {sample}", conda="ngs", mem=4, cpus=4, dry=True, v=2)
Metadata
Release files for slurmbot 0.2.3
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 |
|---|---|---|---|---|
| slurmbot-0.2.3.tar.gz | 3.2 kB | Without provenance | Details for slurmbot-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slurmbot-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for slurmbot-0.2.3-py3-none-any.whl |
Total release size: 7.9 kB
Release files / slurmbot-0.2.3.tar.gz
| Download URL | slurmbot-0.2.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27bc9d93b9cb115754b6ea3191f94aef0054173b627faf0f8a2a207c814effa0
|
|
BLAKE2b-256 checksum How to use checksums |
837b0e1d4c4783e0f75c9e35b39c89f101c0ab5b7c5a428002348131d5ced4fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/6.1.0-26-amd64
|
Release files / slurmbot-0.2.3-py3-none-any.whl
| Download URL | slurmbot-0.2.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2352f4bf388dd695b45cd19a9b7be8d52990d0c34ac17231052605eac3e2c447
|
|
BLAKE2b-256 checksum How to use checksums |
399402ec4ef98de4226febc4d113dece204f6ca6c8302d1c4033fde868257fb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.1 Linux/6.1.0-26-amd64
|
Security for slurmbot 0.2.3
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.