This release is a pre-release and may not be stable for production use.
slurmee
Simple Python 3 package to get information when running Python programs in slurm.
Usage
import slurmee
print(f"Slurm job id: {slurmee.get_job_id()}")
print(f"Slurm job name: {slurmee.get_job_name()}")
print(f"Slurm submit dir: {slurmee.get_submit_dir()}")
print(f"Slurm job nodelist: {slurmee.get_job_nodelist()}")
print(f"Slurm submit host: {slurmee.get_submit_host()}")
print(f"Slurm job num_nodes: {slurmee.get_job_num_nodes()}")
print(f"Slurm cpus on node: {slurmee.get_cpus_on_node()}")
print(f"Slurm ntasks: {slurmee.get_ntasks()}")
print(f"Slurm nodeid: {slurmee.get_nodeid()}")
Methods return None if not running inside of slurm. It can be used to check this condition e.g.
if slurmee.get_job_id():
print("Running inside of slurm!")
Development
This package has no external runtime dependencies. The tests can be run via
make test
To install the dependencies for generating the docs and releasing the package, in a virtual environment, run
pip install -e ".[test,dev,doc]"
Metadata
Release files for slurmee 0.1.0rc3
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 |
|---|---|---|---|---|
| slurmee-0.1.0rc3.tar.gz | 4.6 kB | Without provenance | Details for slurmee-0.1.0rc3.tar.gz |
Release files / slurmee-0.1.0rc3.tar.gz
| Download URL | slurmee-0.1.0rc3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eeec6f6d33ab7c961ad19bc98b9e359fe748a50214826a3d1ee0aa5afcbf5aae
|
|
BLAKE2b-256 checksum How to use checksums |
0c98551c1ffb560de199f1b449b16d3eebc2ade7c414c60e7434a07f9d69216f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
|
Security for slurmee 0.1.0rc3
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.