Skip to main content

🏃‍♂️‍➡️📕 paulrun

What is paulrun?

paulrun runs hand-written markdown runbooks.

A runbook is a normal markdown file that a person can read and follow without paulrun. Mark a code block run, and paulrun runs it for you. Everything else stays documentation.

Package version Python versions PyPI - License

Example runbook

Save this as hello.md:

---
title: Say hello
inputs:
  - name: NAME
    description: Who to say hello to
---

# Say hello

A runbook is just markdown. paulrun runs the blocks marked `run`, shows the
`docstring` ones, and leaves everything else alone, like this paragraph.

## Greet

```docstring
Saying hello to <NAME>.
```

```sh run
echo "Hello, <NAME>!"
```

## Count the letters

```python run
import os

name = os.environ["NAME"]
print(f"{name} has {len(name)} letters")
```

Check it, then run it:

paulrun check hello.md
paulrun hello.md
hello.md: ok
NAME (Who to say hello to): Paul
Say hello
directory: /home/you/hello
inputs: NAME=Paul
  1. Greet
  2. Count the letters
2 run blocks
Start? [y/N] y

=== Greet ===
Saying hello to Paul.
    echo "Hello, Paul!"

=== LOG: 2026-11-04T10:02:13.482915+01:00 ===
Hello, Paul!
========

exit 0 (0.0s)

=== Count the letters ===
    import os

    name = os.environ["NAME"]
    print(f"{name} has {len(name)} letters")

=== LOG: 2026-11-04T10:02:13.482915+01:00 ===
Paul has 4 letters
========

exit 0 (0.1s)

finished: ok (0.1s)

check finds problems before anything runs. Then paulrun asks for the inputs, shows the plan, and runs each step in order, stopping at the first command that fails.

Your runbook library

Keep runbooks you use across projects in ~/runbooks, and run them by name from anywhere:

$ paulrun library
library: /home/you/runbooks
rebuild-frontend     Rebuild the frontend
update-project-deps  Update a project's dependencies

$ cd ~/Projects/website
$ paulrun rebuild-frontend

A book runs in the folder you're in, so one book works for every project. See Your runbook library.

Why use paulrun?

Release steps get forgotten. Writing them down helps; making the written-down version run itself fixes it.

  • It's just markdown - A runbook reads like documentation, renders on GitHub, and works fine without paulrun.
  • Check before you run - paulrun check finds broken frontmatter, undeclared placeholders and syntax errors.
  • See what would happen - paulrun --dry RELEASING.md shows every command with its inputs filled in, and runs nothing.
  • Inputs and secrets - Ask for values once, check them against a pattern, and keep secrets off the screen and out of the log.
  • Manual steps too - confirm blocks pause for the things only a person can do.
  • A record of every run - An optional transcript keeps every command, its output and how it finished.
  • More than shell - Shell and Python blocks are built in, and other languages can be added as backends.

Install

paulrun is a command-line tool, so install it on its own rather than into a project:

uv tool install paulrun

Or with pip:

pip install paulrun

paulrun needs Python 3.12 or later and bash, and runs on macOS and Linux. Windows isn't supported. It's for runbooks you run yourself, at a terminal; there's no CI mode.

Getting started

👉 Read the full documentation for the runbook format, every command, and writing your own backend.

See examples/ for more runbooks, including a real release, and PUBLISHING.md for the runbook paulrun releases itself with.

Want to help? See CONTRIBUTING.md.

Metadata

Release files for paulrun 0.5.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 paulrun 0.5.0
File Size Uploaded Provenance Actions
paulrun-0.5.0.tar.gz 210.8 kB Without provenance Details for paulrun-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 242.8 kB

Release files / paulrun-0.5.0.tar.gz

Download URL paulrun-0.5.0.tar.gz
Size 210.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9cfffbdd45ed6884934c680dbc302a62931dba6a7ebffaee2415fb5c6f5765bb
BLAKE2b-256 checksum
How to use checksums
bff6335386128c0078f252181122bbbd00c52720abfbf26415f6d65b4e33d527
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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 / paulrun-0.5.0-py3-none-any.whl

Download URL paulrun-0.5.0-py3-none-any.whl
Size 32.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1dae18d4c68bd6f11e30c5711ba7de23da49430b9e53d9932ce11ee0fd83574
BLAKE2b-256 checksum
How to use checksums
847d7c72403259970f4376cddbdef2a947e29361aa19769b36175df8d570a73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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 paulrun 0.5.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