ChartBook
Composable data pipelines for humans and agents.
Give your coding agents a living catalog of every dataset, chart, and model. Snapshot pipelines like packages, compose them safely, and verify every number they touch.
pip install chartbook
One install includes everything: the CLI, data loading, plotting, and the catalog site builder.
Why ChartBook
- A skills catalog for your agents. Run
chartbook install agentsonce and your coding agents (Claude Code, Cursor, Codex) can search every dataset, read column schemas and docs, and load data cleanly—no hallucinated paths or reinvented ETL. - Snapshot pipelines like packages. Split large analyses into small, independent repos.
chartbook snapshotfreezes a committed build; downstream projects pin it inchartbook.lockand update only when you runchartbook pin --update. - Verify everything agents build. Every dataset, chart, and model records its exact commit, upstream pins, and content hashes. Inspect results in the browsable catalog or audit the entire chain with
chartbook lineage. - Works with any stack. Keep your existing Python scripts, R, Stata, SQL, DuckDB, or Makefiles. ChartBook runs whatever build command you declare.
Four commands cover 95% of your day
| Command | What it does |
|---|---|
chartbook run |
Pins any new dependencies, runs your build script, and verifies every declared output |
chartbook snapshot |
Freezes a committed build into your store so other pipelines, teammates, and agents can use it |
chartbook pin --update |
Moves your lockfile forward to the newest upstream snapshots when you choose |
chartbook catalog open |
Opens one searchable website covering every pipeline, dataset, chart, and version in your stores |
Two one-time helpers: chartbook install agents teaches your coding agent ChartBook, and chartbook init scaffolds a batteries-included project template if you want one.
Minimal by design: a pipeline in three files
A pipeline is just a git folder with a chartbook.toml manifest, your code, and a README.md. The 5-Minute Quickstart walks through this example.
chartbook.toml:
[project]
name = "My Pipeline"
description = "A demo pipeline: two random walks and a chart of them"
[scripts]
build = "python src/build_chart.py"
[dataframes.walks]
name = "Random Walks"
description = "Two simulated random walk series"
sources = ["Simulated"]
path = "./_data/walks.parquet"
date_col = "date"
docs = "365 daily observations of two cumulative-sum series."
[charts.random_walks]
name = "Two Random Walks"
description = "Cumulative sums of daily standard-normal draws"
dataframe = "walks"
path = "./_output/random_walks.html"
docs = "Both series are pure noise. Any pattern you see is your brain's doing."
src/build_chart.py:
import numpy as np
import pandas as pd
import chartbook
from chartbook import data
rng = np.random.default_rng(seed=42)
df = pd.DataFrame({
"date": pd.date_range("2024-01-01", periods=365, freq="D"),
"walk_a": rng.standard_normal(365).cumsum() + 100,
"walk_b": rng.standard_normal(365).cumsum() + 100,
})
df.to_parquet(data.path("walks")) # chartbook.toml says where "walks" goes
chartbook.plotting.line(
df, x="date", y=["walk_a", "walk_b"], title="Two Random Walks",
).save(chart_id="random_walks", output_dir="_output")
Run it, commit, snapshot, and browse:
chartbook run
git add -A && git commit -m "First pipeline"
chartbook snapshot
chartbook catalog open
Any other pipeline—or any coding agent—can now load that dataset by name, pinned to those exact bytes:
from chartbook import data
walks = data.load("my_pipeline:walks")
One catalog for your team and your agents
| Question | Your team, in the browser | Your agents, in the terminal |
|---|---|---|
| What exists? | Catalog home page & search | chartbook ls --json or llms.txt |
| What is it? | Dataset or chart page | chartbook get-docs yield_curve:repo_public |
| How do I use it? | Copy-paste snippet on the page | data.load("yield_curve:repo_public") or chartbook path |
| Can I trust it? | Provenance table & Versions page | chartbook lineage --json & chartbook.lock |
Documentation
Full documentation is at backofficedev.github.io/chartbook.
- Quickstart — build, snapshot, and browse your first pipeline in 5 minutes
- Working with AI Agents — turn your catalog into a skills layer for coding agents
- Linking Pipelines Together — snapshots, pins, and
chartbook.lock - Explore a Catalog — hands-on tutorial connecting three public-data pipelines
- CLI Reference and Configuration Reference
Contributing
Contributions are welcome. See CONTRIBUTING for guidelines.
To work on ChartBook itself you only need uv:
uv sync # install editable package and dev toolchain from uv.lock
uv run doit # run notebooks, docs, examples, package build, and test matrix
uv run doit build_package skips the test matrix, and uv run doit test runs the suite on one Python.
Building from source needs Node for one part
A site built with [project] writer = "react" is drawn by a React app that comes compiled in the wheel on PyPI, so installing from PyPI needs nothing more. Building ChartBook from source (pip install git+https://github.com/backofficedev/chartbook, pip install ., uv build) compiles that app with Node 24 or later. Without Node the build still succeeds, with a warning, and leaves the React app out: everything else works, and a site with writer = "react" says what is missing. In a development checkout (uv sync), build it once yourself: cd web && npm ci && npm run build (web/README.md).
License
Modified BSD License
Metadata
Release files for chartbook 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chartbook-0.6.0.tar.gz | 15.6 MB | Without provenance | Details for chartbook-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chartbook-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for chartbook-0.6.0-py3-none-any.whl |
Total release size: 31.4 MB
Release files / chartbook-0.6.0.tar.gz
| Download URL | chartbook-0.6.0.tar.gz |
|---|---|
| Size | 15.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbfc08f016a1516a6155810c01c933bb5097e2ea8bbe7ae6c91f5f9fd43b20a0
|
|
BLAKE2b-256 checksum How to use checksums |
3e56c124eca0cb48ffa24b22dca888ae6536002f4b58af61edd243381efd4250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / chartbook-0.6.0-py3-none-any.whl
| Download URL | chartbook-0.6.0-py3-none-any.whl |
|---|---|
| Size | 15.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a69d289578397d6cb37c0c803da24dd50ff7183ff648adb6b0a4a0c09adefe5b
|
|
BLAKE2b-256 checksum How to use checksums |
197d8179f55dbcad4180237e0b1504e9063940c17326b5374851980a1bc7346b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Security for chartbook 0.6.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.