Skip to main content

Pivot: High-Performance Python Pipeline Tool

Change your code. Pivot knows what to run.

Pivot is a Python pipeline tool with automatic code change detection. Stages are plain Python functions; you wire them together by calling them inside a Pipeline block, and Pivot works out what needs to re-run.

  • Automatic code change detection using Python introspection
  • No paths in pipeline code: Pivot chooses where every output is stored
  • Per-stage lock files for fast parallel writes
  • Warm worker pools with preloaded imports
  • Content-addressable caching with S3 or Google Cloud Storage remotes

Python: 3.13+ | Platform: Unix (Linux/macOS)

Quick Start

pip install pivot
mkdir my_project && cd my_project
git init && pivot init

Put a raw input under data/raw/:

mkdir -p data/raw
printf 'name,value\nalice,100\nbob,200\ncarol,\n' > data/raw/records.csv

Define stages and the pipeline in pipeline.py:

# pipeline.py
import pandas as pd

from pivot import Pipeline, StageParams, stage


class CleanParams(StageParams):
    min_value: int = 0


@stage
def clean(records: pd.DataFrame, params: CleanParams) -> pd.DataFrame:
    kept = records.dropna()
    return kept[kept["value"] >= params.min_value]


@stage
def summarize(rows: pd.DataFrame) -> dict:
    return {"count": len(rows), "total": int(rows["value"].sum())}


with Pipeline("demo") as pipeline:
    records = pipeline.input("records.csv")
    cleaned = clean(records, params=CleanParams(min_value=50))
    summarize(cleaned)

Then run it; Pivot resolves the DAG from the handles passed between stages:

pivot repro           # runs clean, then summarize
pivot repro           # nothing changed: both stages are cached
pivot repro --watch   # re-run automatically on file changes

Pivot writes outputs to data/demo/clean.jsonl and data/demo/summarize.yaml.

Learn More

Metadata

Release files for pivot 0.5.17

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

Source distribution (sdist)

Source distribution for pivot 0.5.17
File Size Uploaded Provenance Actions
pivot-0.5.17.tar.gz 421.1 kB Without provenance Details for pivot-0.5.17.tar.gz

Built distribution (wheel)

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

Total release size: 901.1 kB

Release files / pivot-0.5.17.tar.gz

Download URL pivot-0.5.17.tar.gz
Size 421.1 kB
Tags Source
SHA-256 checksum
How to use checksums
38bfcda37c59e45ba7d6cf63add1ec565e5490e1f553f7029d20d67329bed56b
BLAKE2b-256 checksum
How to use checksums
977bd1ec752a0e78050f28f77ad75c3debfb1de328747db0d9adebf9e205e3cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pivot-0.5.17-py3-none-any.whl

Download URL pivot-0.5.17-py3-none-any.whl
Size 480.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f0e7b008601cb3e1d9eb261d39b1a385537c48d3e905a05628254132c8b571c
BLAKE2b-256 checksum
How to use checksums
cfd99fa8dc453b5128c2377637f6b7befb935489e896abb4d8f1f9666046df4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pivot 0.5.17

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.

Release history Release notifications | RSS feed

This release

0.5.17 This release

2 release files No provenance

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