Shared tools for parsing&processing SLURM data
Project description
fractal-slurm-tools
You can run a version of this tool from PyPI or GitHub, either via pipx or uvx.
Examples (the CLI entrypoint must be one of fractal-slurm-aggregate fractal-slurm-parse-bulk or fractal-slurm-parse-single-job):
# Latest PyPI release
$ pipx run --spec fractal-slurm-tools <entrypoint>
$ uvx --from fractal-slurm-tools <entrypoint>
# Specific PyPI release
$ pipx run --spec fractal-slurm-tools==0.5.0 <entrypoint>
$ uvx --from fractal-slurm-tools==0.5.0 <entrypoint>
# Latest git commit on the default branch
$ pipx run --spec git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git <entrypoint>
$ uvx --from git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git <entrypoint>
# Specific git commit
$ pipx run --spec git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@3faeefd0eac0f53c6c73d2e3179b10ff2a111793 <entrypoint>
$ uvx --from git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@3faeefd0eac0f53c6c73d2e3179b10ff2a111793 <entrypoint>
# Specific git branch
$ pipx run --spec git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@main <entrypoint>
$ uvx --from git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@main <entrypoint>
Environment variables
# Enable compatibility with legacy SLURM (e.g. v15.08.7)
USE_LEGACY_FIELDS=1
# Modify batch size
SACCT_BATCH_SIZE=50
# Token to connect to the Fractal backend
FRACTAL_TOKEN=...
A useful sacct command
sacct --format='JobID%18,JobName%18,State,ReqMem,MaxRSS,AveRSS,Elapsed,NCPUS,CPUTimeRaw,MaxDiskRead,MaxDiskWrite' -j XXXX
Development
uv
We use uv to manage the development environment and the dependencies - see https://docs.astral.sh/uv/getting-started/installation/ for methods to install it. From the root folder, you can get started through
# Create a new virtual environment in `.venv`
uv venv
# Install both the required dependencies and the optional dev/docs dependencies
uv sync --frozen --extra dev
# Run a command from within this environment without updating the `uv.lock` file
uv run --frozen fractal-slurm-parse-single-job
Make a release
# Make a release
uv run --frozen bumpver update --patch --dry
Contributors and license
The Fractal project is developed by the BioVisionCenter at the University of Zurich, who contracts eXact lab s.r.l. for software engineering and development support.
Unless otherwise specified, Fractal components are released under the BSD 3-Clause License, and copyright is with the BioVisionCenter at the University of Zurich.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fractal_slurm_tools-0.5.0.tar.gz.
File metadata
- Download URL: fractal_slurm_tools-0.5.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
628f55ca093aa0e2bad3446bf6306fd96c09398858d1f237f7c2c555944b04d1
|
|
| MD5 |
346d77d8623684e8a2aeb8de5bc5d337
|
|
| BLAKE2b-256 |
dcf5452f82c1b4c0a02c9c64805c9e957fcb0aa56bbe2763bbe608a54d38bc9f
|
Provenance
The following attestation bundles were made for fractal_slurm_tools-0.5.0.tar.gz:
Publisher:
publish_to_pypi.yml on fractal-analytics-platform/fractal-slurm-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fractal_slurm_tools-0.5.0.tar.gz -
Subject digest:
628f55ca093aa0e2bad3446bf6306fd96c09398858d1f237f7c2c555944b04d1 - Sigstore transparency entry: 1392957214
- Sigstore integration time:
-
Permalink:
fractal-analytics-platform/fractal-slurm-tools@2bb8a6149b301fe5ac60ff39baaf50dfa01f829b -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/fractal-analytics-platform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@2bb8a6149b301fe5ac60ff39baaf50dfa01f829b -
Trigger Event:
push
-
Statement type:
File details
Details for the file fractal_slurm_tools-0.5.0-py3-none-any.whl.
File metadata
- Download URL: fractal_slurm_tools-0.5.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1897edbc2454e41f94d043bfb875b8e8d09273a4aec7f12d656e8a48c53eaec0
|
|
| MD5 |
0a150c2a18dacea1c9e65c91e1f85f91
|
|
| BLAKE2b-256 |
df6b3020ee79638623ceb019a1e5b3393b9fdb9b44e6c29b1c31f0a296825b35
|
Provenance
The following attestation bundles were made for fractal_slurm_tools-0.5.0-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on fractal-analytics-platform/fractal-slurm-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fractal_slurm_tools-0.5.0-py3-none-any.whl -
Subject digest:
1897edbc2454e41f94d043bfb875b8e8d09273a4aec7f12d656e8a48c53eaec0 - Sigstore transparency entry: 1392957252
- Sigstore integration time:
-
Permalink:
fractal-analytics-platform/fractal-slurm-tools@2bb8a6149b301fe5ac60ff39baaf50dfa01f829b -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/fractal-analytics-platform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@2bb8a6149b301fe5ac60ff39baaf50dfa01f829b -
Trigger Event:
push
-
Statement type: