HPC orchestration CLI for SSH, Slurm run packets, receipts, and artifact sync.
Project description
hpckit is a small Python CLI for orchestrating Slurm cluster workflows from a
local project checkout. It manages remote tool checkouts, immutable per-SHA
virtualenvs, run packets, Slurm submission and polling, receipts, artifact sync,
and local run ledgers.
The tools it runs are declared in your own .hpckit.yaml — hpckit ships none of
them, and depends on nothing but a YAML parser itself.
Its companion renderer is quadros,
which turns simulation field snapshots into frames and video. Add it with the
renderer extra if you want to render as well as submit:
pip install hpckit # submit jobs only
pip install 'hpckit[renderer]' # ...and render locally
It stays optional on purpose: quadros brings VTK, roughly 700 MB, and a machine
that only submits jobs should not pay that.
Configuration lives in the project you run it from, not in this repository, so one installation drives any number of projects.
Install
For local development:
uv pip install -e .
For command-line use from another checkout:
pipx install git+https://github.com/openfluids/hpckit.git
Quickstart
cd /path/to/your/project
hpckit init --project myproject
hpckit doctor
Configure
Create .hpckit.yaml in the project where you run hpckit (see .hpckit.example.yaml for a full template). Tools, job types, and the sparse batch script name are all config-driven:
project: myproject
remote: mycluster
work_root: /path/to/work
scratch_root: /path/to/scratch
remote_repos_root: /path/to/work/repos
remote_state_root: /path/to/work/.hpckit
ledger: HPCKIT_RUN_LOG.md
job_script: job.batch
restart_helper: check_restart.py
slurm:
account: myproj@cpu # required — no default
partition: prepost
ntasks: 1
cpus_per_task: 4
tools:
sigtool:
repo_url: git@github.com:myorg/sigtool.git
job_types:
process:
tool: sigtool
command: "{venv}/bin/python -m sigtool.cli process --registry {run_dir}/registry.toml --output-root {output_dir}"
artifact_sync:
processed: data/hpckit_processed
renders: plots/hpckit_renders
paper_figs: paper/figs
receipts: hpckit/receipts
Commands
hpckit doctor
hpckit status
hpckit update-repo <tool> --ref <sha-or-branch>
hpckit submit <job_type> <case> --ref <sha>
hpckit submit sparse <case> --to <target_end_time>
hpckit poll [run_id]
hpckit sync-artifacts <run_id>
hpckit receipt <run_id>
python -m hpckit doctor
Job type subcommands (e.g. process, render, plot) come from job_types: in the config. Sparse is built-in and uses job_script / restart_helper.
Development
uv sync --group dev
uv run pytest
uv run python -m build
The repository uses the PyPA-recommended src/ layout, standard pyproject.toml metadata, a public [project.scripts] entry point, and dependency groups for maintainer tooling.
Destructive remote cleanup is intentionally not implemented. Sparse continuation edits only the case-local restart helper knobs and records the backup name in the receipt.
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 hpckit-0.2.0.tar.gz.
File metadata
- Download URL: hpckit-0.2.0.tar.gz
- Upload date:
- Size: 311.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c1a142183c9f201293b3fbf66bfb2d50647ef5c15b39e4276c56fafb9e0c830
|
|
| MD5 |
41f248ffcb798498b143b8b382c20974
|
|
| BLAKE2b-256 |
0463872405dab70997a5ad4b4902376d5e56eaa0bdc638e0e2657d9f7cccdbcc
|
Provenance
The following attestation bundles were made for hpckit-0.2.0.tar.gz:
Publisher:
release.yml on openfluids/hpckit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hpckit-0.2.0.tar.gz -
Subject digest:
2c1a142183c9f201293b3fbf66bfb2d50647ef5c15b39e4276c56fafb9e0c830 - Sigstore transparency entry: 2307548696
- Sigstore integration time:
-
Permalink:
openfluids/hpckit@7b2126f7c730908b02bd2f3a2b923e2318bb18d4 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/openfluids
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7b2126f7c730908b02bd2f3a2b923e2318bb18d4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hpckit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hpckit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c8d9a48ef33feec9b06236dd5806ad248aacf205b597e889e4b0f56da332f9f
|
|
| MD5 |
e2d3484ccb6cf97abeec2529aa417b30
|
|
| BLAKE2b-256 |
3316086c5922c6b2c88d223cda77dfc5d2e06a3080634370621379effe0f0536
|
Provenance
The following attestation bundles were made for hpckit-0.2.0-py3-none-any.whl:
Publisher:
release.yml on openfluids/hpckit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hpckit-0.2.0-py3-none-any.whl -
Subject digest:
1c8d9a48ef33feec9b06236dd5806ad248aacf205b597e889e4b0f56da332f9f - Sigstore transparency entry: 2307548904
- Sigstore integration time:
-
Permalink:
openfluids/hpckit@7b2126f7c730908b02bd2f3a2b923e2318bb18d4 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/openfluids
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7b2126f7c730908b02bd2f3a2b923e2318bb18d4 -
Trigger Event:
push
-
Statement type: