Skip to main content

stepix

stepix makes the setup instructions in your README exact and runnable.

Running this README twice: the download is cached the second time

The problem

Research repos often ship their setup as a README ritual: install this, download that, preprocess, train. Those instructions are written for a person, not a computer. Steps are implied, paths and versions are left to the reader, and nothing says when a step is done or what it needs first. Every reader, human or agent, interprets them a little differently, so the same README gives different setups.

What stepix does

You keep the README. Under each instruction you add a small stepix block that defines the step precisely: its command, environment, inputs, outputs and what it depends on. uvx stepix run then executes the README as written, the same way every time. All you need is uv on Linux or macOS; there is nothing to install.

  • Exact steps. Every step is fully defined; nothing is left to interpretation. Ensuring reproducibility and saving your time.
  • Separate environments where needed. By default a step runs in the repo's environment. A step that needs different packages gets its own: for example, one step can use numpy<2 while the rest of the repo uses numpy>=2.
  • Caching where you ask for it. A step with cache = true is skipped once it has succeeded, so a long download or training doesn't run twice. Every other step runs each time, and --no-cache runs them all.

Try it: this README is a pipeline

git clone https://github.com/stepankonev/stepix && cd stepix
uvx stepix run ./README.md  # downloads an image, then rotates it by a random angle
uvx stepix run ./README.md  # the download is cached; the image gets a new angle

It runs the two steps below; their code is in example/.

[params]
url = "https://raw.githubusercontent.com/scikit-image/scikit-image/v0.24.0/skimage/data/chelsea.png"
output = "out/rotated.png"

1. Download the image

example/download.py saves the image and ends with output(image_path=target), which is how the next step gets {steps.download.image_path}. With cache = true it downloads once, and later runs skip it.

[steps.download]
run = "python example/download.py {params.url} --out data"
cache = true
retries = 2

2. Rotate it

This step needs OpenCV, so it runs in its own environment, example/cv, pinned by its uv.lock. It isn't cached, so it runs every time, with a new angle.

[steps.rotate]
env = "example/cv"
run = "python example/rotate.py --in {steps.download.image_path} --out {params.output}"
requires = ["download"]

Steps and params

A ```stepix block is TOML, and its first line says what it holds: [steps.NAME] starts step NAME, and [params] holds values that commands use as {params.NAME} (one [params] per file).

Field Written as Required Default Meaning
Name [steps.NAME] yes — the step's name: lowercase letters, digits, _
Command run = "..." yes — a shell command, run from the README's folder
Environment env = "envs/x" no the repo's own a uv project folder (pyproject.toml; a uv.lock pins its versions)
Requires requires = ["a"] no [] steps that must finish first; the rest run at the same time
Cache cache = true no false true: skip it once it has succeeded
On failure on_fail = "continue" no "stop" continue: skip what depends on it; warn: carry on
Retries retries = 2 no 0 how many more times to try a failed command

A step starts as soon as the steps it requires have finished, so steps that don't depend on each other run in parallel. When one fails with on_fail = "stop", the steps already running finish and no new ones start.

In run, {steps.STEP.NAME} is a value from a step it requires. A step outputs one with output(NAME=value) in Python (from stepix import output), or from any language by printing ::stepix::output NAME=value. A step with cache = true is skipped when its last run succeeded, unless a param it uses changed, a step it requires ran, or you pass --no-cache. Every other step runs each time.

Commands

uvx stepix run                   # run README.md here (or: uvx stepix run path/to/file.md)
uvx stepix run --no-cache        # run cached steps too
uvx stepix run --step rotate     # only this step
uvx stepix run --from download   # this step and every step after it
uvx stepix validate              # check the README without running anything

--step and --from only choose steps; a step that is cached still skips unless you add --no-cache (uvx stepix run --step rotate --no-cache). Commands run from the file's folder, and state goes to .stepix/ next to it. Exit code 0 ok, 1 a step failed, 2 it can't start (the output says why), 130 interrupted.

With agents

stepix never prompts, so an agent runs it the way a person does. When a run starts, it prints where the logs go, .stepix/runs/<run>/logs/<step>.log; each log fills while its step runs, and .stepix/runs/<run>/manifest.json holds every step's state. To follow a long run, an agent reads those files.

Metadata

Release files for stepix 0.3.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 stepix 0.3.0
File Size Uploaded Provenance Actions
stepix-0.3.0.tar.gz 23.7 kB Without provenance Details for stepix-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 52.2 kB

Release files / stepix-0.3.0.tar.gz

Download URL stepix-0.3.0.tar.gz
Size 23.7 kB
Tags Source
SHA-256 checksum
How to use checksums
df41ed461213ff0a5ec52a98be2796bf4ee4c3e2d2a35f623714ac4b2d57f333
BLAKE2b-256 checksum
How to use checksums
fdeb065da6049521ba7b565321f7f44c438ac4488524253ab2fbd7ec210da07a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / stepix-0.3.0-py3-none-any.whl

Download URL stepix-0.3.0-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c8630f78247fed0ae510a2768f120d5afebb020c45cfbca0754b513ed564499
BLAKE2b-256 checksum
How to use checksums
4532e4e9ef3ad40638cbb5039be86f02e2807cb15218acf8282194b19ec6136c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for stepix 0.3.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