Skip to main content

SlurmiPy

Run python functions on a SLURM cluster as easy as:

@slurm_cluster.execute
def hello_world():
    print("YAY, I am running via SLURM!")

SlurmiPy provides a factory class for managing Dask clusters on SLURM-based systems and provides very easy exectution of python code on a SLURM cluster.

Installation

pip install slurmipy

Usage

Here iss a basic example of how to use SlurmiPy on NERSCs' Perlmutter Supercomputer:

from slurmipy import SlurmiPy, configs

# Create a SLURM cluster with 4 jobs
slurm_cluster = SlurmiPy(jobs=4, **configs["perlmutter_shared_interactive"])

@slurm_cluster.execute
def process_data(data):
    return [x**2 for x in data]

# Execute the function using the SLURM cluster
result = process_data([1, 2, 3, 4])

print(result)  # Output: [1, 4, 9, 16]

Metadata

Release files for slurmipy 2024.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slurmipy 2024.0.4
File Size Uploaded Provenance Actions
slurmipy-2024.0.4.tar.gz 2.7 kB Without provenance Details for slurmipy-2024.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slurmipy 2024.0.4
File Interpreter ABI Platform Actions
slurmipy-2024.0.4-py3-none-any.whl Python 3 none any Details for slurmipy-2024.0.4-py3-none-any.whl

Total release size: 6.2 kB

Release files / slurmipy-2024.0.4.tar.gz

Download URL slurmipy-2024.0.4.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2b3b607e652ad58341e11d4e8311d496347df781d80d599536d2b33307802999
BLAKE2b-256 checksum
How to use checksums
26d461cc3a9669e7107c9025a18c4a44d20e409f9e3510576d0e3c6ddc41ad1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / slurmipy-2024.0.4-py3-none-any.whl

Download URL slurmipy-2024.0.4-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fae82e3bd7ea51cebb69cdf48e1b9a686e19fe017ce366251bc0cb6d2b6e2313
BLAKE2b-256 checksum
How to use checksums
4f2a9307bec5ca09740ae55066651aa0b08c500f5bd7b62d08c6fe90bfb5431d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Security for slurmipy 2024.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page