Skip to main content

Python tools to read SLURM job parameters

Project description

Python Version PyPI Downloads Development Status Tests codecov

slurmio

Python tools to read SLURM job parameters.

Installation

Pip

pip install slurmio

Conda

conda install -c conda-forge slurmio

From source:

git clone https://github.com/neuroinformatics-unit/slurmio
cd slurmio
pip install .

Usage

>>> from slurmio import SlurmJobParameters
>>> slurm_parameters = SlurmJobParameters()
>>> slurm_parameters.job_id
994986
>>> slurm_parameters.job_name
'bash'
>>> slurm_parameters.partition
'cpu'
>>> slurm_parameters.requested_cores
10
>>> slurm_parameters.allocated_cores
10
>>> slurm_parameters.requested_nodes
10
>>> slurm_parameters.allocated_nodes
10
>>> slurm_parameters.requested_memory
10240 # in bytes
>>> slurm_parameters.allocated_memory
10240 # in bytes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slurmio-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

slurmio-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file slurmio-0.1.1.tar.gz.

File metadata

  • Download URL: slurmio-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for slurmio-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dc2ddbaae1babfc0ec8fea45e52cd57ec97571f088965561ccd5a94c3f7a0cde
MD5 09634d5f8548620ed36309eaeb13aa8d
BLAKE2b-256 2d3ccdc327b6636f17a6bc53255a0c330634d5ad028a8052c06c273592d24579

See more details on using hashes here.

File details

Details for the file slurmio-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: slurmio-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for slurmio-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db71565048df3ed7dd077da8348941dd0da9a0b8da7b9cb68dfa831fc499e47b
MD5 20ca51113639c6380906123b63ae6041
BLAKE2b-256 962cf74fba887b274335ad439ff4ef76442020676fdbf0388ccb88881ec49178

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page