Charter your data — contract-governed local data exploration, powered by DuckDB
Project description
DataCharter
Explore all your data locally, in one place — contract-governed data exploration, powered by DuckDB
Contract-governed local data exploration, powered by DuckDB. Define your sources as data contracts (ODCS-compatible YAML), query them through DuckDB's SQL federation engine with real source pushdowns, and explore in a local web UI — SQL editor with live preview, auto-charts, profiling. Every answer shows which source columns it read; ask questions in plain language or serve the whole thing to an AI agent over MCP, with PII masked from the model — all on your machine.
What you can do
- Drop a file, query it instantly. Drag a CSV, Parquet, or JSON onto the window and run SQL on it right away — no import, no schema setup.
- Join across sources — no pipelines. Query and JOIN a Postgres table, a Parquet file, and a Snowflake table in a single SQL statement. No ETL, no copying everything into a warehouse first.
- Connect all your data. Postgres, MySQL, SQLite, SQL Server, BigQuery, Snowflake, files on S3/GCS/Azure, and Iceberg/Delta tables — all through one engine.
- See answers as you type. Live results preview while you write SQL, one-click auto-charts, and a profiling panel (missing values, distributions, outliers) — no separate BI tool.
- Ask in plain English (optional). Turn a question into SQL and an answer with the built-in agent — bring your own model, or run one fully local with no API key.
- Keep sensitive data away from the AI. Mark PII columns once; the agent and any connected AI see masked values (
•••) while you still see the real data locally. Flip Agent view to see exactly what the model sees. - Safe by design. The engine is read-only by construction — no query can write, delete, or touch the filesystem — so pointing an AI (or a teammate) at your real databases can't do damage.
- Point AI tools at your data, safely. A governed MCP server exposes read-only, PII-masked query tools to Cursor, Cline, or your own agent.
- Trust every answer. Each result shows exactly which source columns it read — so you always know where a number came from.
- Save, reuse, export. Snapshot a result as a reusable local table; export to CSV, Parquet, JSON, or XLSX.
- Governance you can automate. Catch schema/PII drift in CI, auto-detect PII columns, diff data across sources, and define certified metrics — from the command line.
Status: pre-release. V1 in development.
Quick start
# Try it instantly on generated demo data — no install, no config:
uvx datacharter serve # needs `uv` → https://astral.sh/uv
# → serves at http://127.0.0.1:8321 (open it in your browser)
# Or install it:
pip install datacharter # Python 3.11+
# Start your own workspace:
datacharter init # scaffolds charter.yaml, queries/, .env.example
# → add a source: edit charter.yaml, or use the "Sources" panel in the UI
datacharter serve # → http://127.0.0.1:8321
Then, once it's running, drag a CSV, Parquet, or JSON file onto the window to query it instantly — no config needed.
Optional natural-language agent — point it at any OpenAI-compatible endpoint:
export OPENAI_BASE_URL=... # any OpenAI-compatible API
export OPENAI_API_KEY=...
datacharter serve
…or run fully local — no API key, no data leaves your machine (requires Ollama):
ollama pull qwen3:8b # once
datacharter serve --local # qwen3:8b by default (--model to change)
Why DataCharter
- Your contracts are the catalog.
charter.yamldescribes sources, tables, and PII fields — the same contract spec your data team already writes, so there's no separate metadata store to maintain. - Real federation, not just a shared connection. Filters and projections are
pushed down to each source — even across a cross-source join, every leg is
filtered where its data lives. (Snowflake runs via connector extract,
datacharter[snowflake], with the same pushdown into the extract.) - Local-first. One process, your machine, no cloud dependency. The optional
--localagent runs a small open model via Ollama — no API key, no data leaves your machine. - The workspace is a directory.
charter.yaml+queries/*.sql+.env.example— commit it, clone it,datacharter serve. Your team's whole exploration environment travels as a repo; secrets and local state never do.
DataCharter governs and audits your data, not just displays it. The full command
set (drift, scan, diff, metric, mcp, and more) is in the
CLI reference; the security model is in security.
Built on
DataCharter stands on excellent open-source foundations:
- DuckDB — the analytical engine at our core:
federation (
ATTACH), file formats, Iceberg/Delta, encryption, autocomplete. - Open Data Contract Standard /
datacontract.com — the contract format
charter.yamlspeaks. - Model Context Protocol — the open protocol
the
datacharter mcpserver speaks to agents and MCP clients. - Vega-Lite — declarative charting.
- Monaco Editor — the SQL editor.
- TanStack Table & Virtual — the virtualized results grid.
- And the Python & React ecosystems — FastAPI, pydantic, httpx, keyring, and ruamel.yaml on the backend; React and Vite on the front.
Testing uses VidaiMock, an Apache-2.0 mock LLM server, as the offline agent endpoint in CI.
DuckDB is a trademark of the DuckDB Foundation. DataCharter is an independent project and is not affiliated with or endorsed by the DuckDB Foundation.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datacharter-0.3.4.tar.gz.
File metadata
- Download URL: datacharter-0.3.4.tar.gz
- Upload date:
- Size: 7.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1168e8b583c0a3653cd9d6405374155893f78634c1db1a158c88b9c3f4ecc5b
|
|
| MD5 |
654309460c5db4a6aac29af564bd549d
|
|
| BLAKE2b-256 |
d8bab2f8238ee1ae6017fdee8dffc7c5f5167ae3af375344824774d2874b4210
|
Provenance
The following attestation bundles were made for datacharter-0.3.4.tar.gz:
Publisher:
release.yml on datacharter/datacharter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datacharter-0.3.4.tar.gz -
Subject digest:
e1168e8b583c0a3653cd9d6405374155893f78634c1db1a158c88b9c3f4ecc5b - Sigstore transparency entry: 2241643396
- Sigstore integration time:
-
Permalink:
datacharter/datacharter@6cc443c50773b9c52a01aa1151fc61457da8bbed -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/datacharter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6cc443c50773b9c52a01aa1151fc61457da8bbed -
Trigger Event:
release
-
Statement type:
File details
Details for the file datacharter-0.3.4-py3-none-any.whl.
File metadata
- Download URL: datacharter-0.3.4-py3-none-any.whl
- Upload date:
- Size: 4.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e1609f8abbab7abf07af93c42120977c6899a057f1ce5e933317e625ac98299
|
|
| MD5 |
d8e87ce3b91b28251d47059d5f780a6c
|
|
| BLAKE2b-256 |
3f093af0cc1c87ed02d7afa5cfe6537fc8be8e5f9414780393d80996e9ddc32d
|
Provenance
The following attestation bundles were made for datacharter-0.3.4-py3-none-any.whl:
Publisher:
release.yml on datacharter/datacharter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datacharter-0.3.4-py3-none-any.whl -
Subject digest:
9e1609f8abbab7abf07af93c42120977c6899a057f1ce5e933317e625ac98299 - Sigstore transparency entry: 2241643983
- Sigstore integration time:
-
Permalink:
datacharter/datacharter@6cc443c50773b9c52a01aa1151fc61457da8bbed -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/datacharter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6cc443c50773b9c52a01aa1151fc61457da8bbed -
Trigger Event:
release
-
Statement type: