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.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: slurmio-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 168846a2dc54c293ec33cc36cb9f14ff80bbb9bc054cae6772e771deedde15a7
MD5 6ddb1ca1233f7d8561dc06c64f234e2c
BLAKE2b-256 cf1cf05a88e12c35958ba27462a405d9352cf7d10c0729adfdad1e676a78bea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slurmio-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4318ed51de8dcda34971098faec738cdeee9a16a73429b47aa8704f1f707590
MD5 2bb49091dfd900e139ebfd6da726cfa4
BLAKE2b-256 96e3b36872904b268b8e21cf2fd9a7b94460e21cdbda781446b6cd055ee13040

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