Skip to main content

Kuristo

qa build codecov License Scc Count Badge PyPI

Kuristo is a flexible, plugin-enabled automation framework designed for scientific and HPC workflows. It supports sequential and parallel job execution, workflow definition via YAML, resource-aware scheduling, custom step and action definitions, and rich output with optional headless mode.

Demo

Features

  • YAML-based workflows (GitHub Actions style)
  • Custom steps and actions via Python plugins
  • Job dependency graph with parallel execution
  • Job labels for selective execution
  • Resource-aware scheduling with core-aware limits
  • Step & job timeouts
  • ANSI-rich output or plain mode for CI
  • Environment variable passing and output capture
  • Output validation (regex, float comparisons, CSV diffing)
  • Composite steps for reusable action pipelines
  • Built-in log directory and run tracking
  • Run tagging system to protect important results from cleanup
  • Test coverage with pytest
  • MPI support via configurable launcher (mpirun, mpiexec, etc.)

Install

Install from PyPI:

pip install kuristo

Or clone the repo and install locally:

git clone https://github.com/andrsd/kuristo.git
cd kuristo
pip install -e .

Usage

Run all tests in a directory:

kuristo run tests/assets/

Run a specific test set:

kuristo run tests/assets/tests1

Check your environment:

kuristo doctor

Headless/CI-safe mode

kuristo run tests --no-ansi

Workflow YAML Example

jobs:
  test-matrix:
    labels: [simulation, slow]
    strategy:
      matrix:
        include:
          - os: ubuntu
            version: 20.04
          - os: ubuntu
            version: 22.04

    steps:
      - name: Run simulation
        id: simulation
        run: ./simulate --config=${{ matrix.version }}

      - name: Check output
        uses: checks/regex
        with:
          input: ${{ steps.simulation.output }}
          pattern: "SUCCESS"

Writing Custom Actions

Create a plugin in .kuristo/actions.py:

import kuristo

@kuristo.action("my/special-step")
class MyAction(kuristo.ProcessAction):
    def __init__(self, name, context: kuristo.Context, **kwargs):
        super().__init__(name, context, **kwargs)
        self.input = kwargs["input"]

    def create_command(self):
        return f"echo Hello {self.input}"

Then, use in the workflow as:

jobs:
  test:
    steps:
      - name: My special test
        uses: my/special-step
        with:
          input: "world"

Kuristo will auto-discover .py files in .kuristo/.

Logging & Output

All logs and run data are saved in:

.kuristo-out/
├── runs/
│   ├── latest → 20250620_101500/
│   └── 20250620_101500/

Set logging retention and cleanup in config.yaml:

log:
  dir-name: .kuristo-out
  history: 5
  cleanup: on_success

Configuration

You can define a global config at .kuristo/config.yaml:

resources:
  num-cores: 8

runner:
  mpi-launcher: mpiexec

Or override via environment variable:

KURISTO_MPI_LAUNCHER=mpiexec2 kuristo run tests/

Testing & Coverage

Run tests:

pytest -v

With coverage:

pytest --cov=kuristo --cov-report=term-missing

Philosophy

Kuristo is inspired by the structure of GitHub Actions but tailored for local and HPC workflows. It aims to be lightweight, extensible, and scriptable — with strong support for reproducibility and numerical simulation validation.

License

MIT

Fun Fact

"Kuristo" means "runner" in Esperanto. Because that’s what it does — it runs your stuff.

Metadata

Release files for kuristo 0.14.0

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

Source distribution (sdist)

Source distribution for kuristo 0.14.0
File Size Uploaded Provenance Actions
kuristo-0.14.0.tar.gz 1.3 MB Without provenance Details for kuristo-0.14.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / kuristo-0.14.0.tar.gz

Download URL kuristo-0.14.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
0f7a32ff6c68e98b21758ae8c72661c336bf9a1e9466e2880c1bbc170123404e
BLAKE2b-256 checksum
How to use checksums
1ba57d68c90dfe6ac0fc3de15170b98c22bced75a16b028fba8dcac18897403d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / kuristo-0.14.0-py3-none-any.whl

Download URL kuristo-0.14.0-py3-none-any.whl
Size 56.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
299a73ecf71b5a5b05ce49eee02b5a337c792f4cf8868df6da8f7c9c1c429826
BLAKE2b-256 checksum
How to use checksums
7c13611b53374482546c414391b6b69029828ae9bff40854d17f642886386b28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for kuristo 0.14.0

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