Skip to main content

unshackle

unshackle moves your metrics, dashboards and permissions out of a BI tool and into files in a Git repository you own.

What you get

You had in your BI tool You get in your repo
Metrics, measures, calculated fields Metrics in Apache Ossie, an open semantic-layer format (semantic/)
Dashboards Jupyter notebooks: one SQL query and one chart per tile (notebooks/)
Tables and data sources Table and column descriptions (catalog/)
Permissions, row-level security Cedar policies and SQL row filters (policies/)
Descriptions, glossaries Markdown (knowledge/)

What unshackle can't translate faithfully is marked TODO(unshackle), with the original formula next to it. It doesn't guess.

How it works

  1. Extract: reads definitions through your tool's API, or from files you download.
  2. Translate: writes the files above. Nothing changes in your BI tool.
  3. Report: migration/report.md shows, per dashboard, what was translated and what blocks the rest.
  4. Check: compares the migrated queries with your tool's own numbers.

Get started

You need Python 3.11+ and access to your BI tool or warehouse. Use pip inside a virtual environment (system Python often refuses it outside one), or uv tool install unshackle for a global command.

pip install unshackle                 # or: uv tool install unshackle
cd your-analytics-repo
unshackle check <tool> --prompt       # asks for credentials, saves them to .env (git-ignored)
unshackle migrate <tool>

Then:

unshackle run       # run the notebooks; see which tiles return data
unshackle verify    # compare migrated numbers with your tool's
unshackle todo      # list what's left to finish

unshackle tools <tool> says where to find each credential.

Supported tools

Tool Maturity Import files instead of the API
Tableau Most complete .twb, .twbx, .tds, .tdsx
Power BI Real projects Power BI project (.pbip, model as TMDL)
Looker Real projects LookML project (Git checkout or .zip)
Qlik Sense Saved exports qlik app unbuild folder per app
Amazon QuickSight Saved exports .qs asset bundle
Metabase Saved exports API only
Lightdash Saved exports dbt project folder
Apache Superset Saved exports export .zip
Redash Saved exports API only
Omni Early model YAML folder (Git sync)
Hex Early project YAML (Git export)
ThoughtSpot Early .tml files or Export TML .zip
Sigma Early API only

Maturity: Most complete: the most translated and tested. Real projects: also tested on open-source projects people built. Saved exports: tested on exports over a fictional dataset. Early: the basics; expect more TODOs.

Each tool's page covers connecting, what you get, what's left to finish and how to check the numbers.

API or files

API gets the most: definitions, dashboards people built in the tool, usage, sharing, and for most tools the SQL the tool itself runs.

Files work when you can't get API credentials. They carry less (usually no usage or sharing, and for Looker and Omni no user-built dashboards); the report lists what's missing.

unshackle import <tool> <files or folder>
unshackle build <tool>

Start from warehouse, dbt or SQL

Without a BI export, import the sources you have. Each command writes usable context immediately; dbt and SQL imports are offline.

# Set UNSHACKLE_WAREHOUSE_URL for warehouse access.
unshackle import warehouse
unshackle import dbt ./inputs/dbt-project
unshackle import sql ./inputs/queries ./inputs/analysis.py

Warehouse metadata becomes catalog entries; plain dbt projects contribute documentation, reference SQL and supported metrics; SQL and Python SQL literals become notebooks. Unresolved expressions retain their source and TODOs. Use the scheduled drift template to propose schema and context updates in a pull request.

Data that lives only in your BI tool

Tableau extracts, Excel and CSV files have no warehouse behind them. migrate asks whether to copy that data to data/ (git-ignored) so the notebooks can run on it locally. Copying .hyper extracts needs Tableau's Hyper API, a large download: pip install "unshackle[hyper]".

Check the numbers

unshackle verify runs the cases in migration/parity/ against your warehouse and compares them with the source tool's numbers. For Tableau, unshackle verify --init tableau writes the cases from Tableau's own view data. For other tools, write them by hand: see the verify guide.

How it's tested

  • Against numbers, not snapshots. Most tests build a migration from a saved export, run the generated SQL in DuckDB on a fictional dataset, and compare the result with the same numbers computed independently, following the source tool's own rules.
  • Fixture, import and MCP protocol tests run offline: uv pip install -e ".[dev]" && pytest.
  • unshackle verify does the same on your data: migrated SQL against your tool's own numbers.

unshackle is built with Claude Code; every change goes through those tests.

With a coding agent

unshackle runs fine on its own. If you use a coding agent (Claude Code, Codex, Cursor), point it at the repo: AGENTS.md explains the layout, and the guides in migration/skills/ walk it through finishing each kind of TODO.

To expose the repo through MCP, install the extra and start the local server:

pip install "unshackle[mcp]"
unshackle mcp --repo .

The BI flow is migrate → verify → mcp; the non-BI flow is import → mcp. The server provides overview, search, read and bounded run_query tools, plus file resources. It reuses UNSHACKLE_WAREHOUSE_URL. See the Claude Code, Cursor and Codex configurations, hosting setup, and deployment guides for Railway, AWS and Cloud Run.

Use one read-only warehouse role per server, preferably against a production read replica. Anyone holding the hosted bearer token can query that role's data. Policies are agent context and are not enforced by run_query; the token provides deployment access rather than per-user authorization. Files from other connections need that connection, and git-ignored local data is unavailable to Git-pulled hosts.

The synthetic MCP example and acceptance record distinguish offline checks, real client runs and hosted results. Deployment guides alone do not establish Railway acceptance.

Try it without a BI tool

git clone https://github.com/Querio-App/unshackle && cd unshackle
uv venv && uv pip install -e ".[dev]"
./examples/tableau-demo/run.sh /tmp/acme

The demo migrates a saved Tableau export into /tmp/acme and checks a dashboard's numbers against Tableau's.

More

Apache 2.0. Built and maintained by Querio.

Metadata

Release files for unshackle 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 unshackle 0.3.0
File Size Uploaded Provenance Actions
unshackle-0.3.0.tar.gz 2.5 MB With provenance Details for unshackle-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 3.3 MB

Release files / unshackle-0.3.0.tar.gz

Download URL unshackle-0.3.0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0dce5c5c33a36cdaed39c7ae42ebc56d779c17fe8c422ab95c1778b96c5697c2
BLAKE2b-256 checksum
How to use checksums
e2741b4bbf5ee3730ad0af22ba0be133e2ac02bbd433d590c3ad987bc7cea742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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

Download URL unshackle-0.3.0-py3-none-any.whl
Size 819.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42d233afb272f433001022e8766b8290e748fc146d81f469cda3fc1438d18e89
BLAKE2b-256 checksum
How to use checksums
e700e8b50c0f0258149b947ff81dffbd8fb7117f9772d4083fd79d67eaf1d0b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for unshackle 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unshackle-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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