Skip to main content

tableau-inspector (Python)

Local-first CLI that statically analyzes Tableau workbooks (.twb / .twbx) for common issues — dev-only DB connections, hidden worksheets, unused calculations/parameters, duplicate calculations, default filters, blank dashboard titles, missing captions, duplicate field aliases — before you publish. Everything is parsed from the workbook's embedded XML.

An optional AI assistant (ask, explain, summarize, docs --ai) can explain calculations, summarize dashboards, and answer questions in plain English. It sends only already-extracted metadata (never raw XML, never live Tableau data) to a configured AI provider — a local Ollama instance by default, so workbook metadata stays on your machine. Every other command makes no network calls at all.

This is a Python port of the Node.js tableau-inspector CLI, with the same functionality and zero runtime dependencies (stdlib only) -- the AI provider layer is implemented with stdlib urllib, so this holds even with the assistant enabled.

Install

pip install -e .

Quick start

# Lint a workbook for common publishing issues
tableau-inspector analyze workbook.twbx

# Trace what a field/calculation depends on and what depends on it
tableau-inspector lineage workbook.twbx --field "Customer Segment"

# Search calculated fields by name or formula text
tableau-inspector search workbook.twbx "profit"

# Diff two versions of a workbook
tableau-inspector compare old.twbx new.twbx

# Ask a question about a workbook (requires a running Ollama instance)
tableau-inspector ask workbook.twbx "What does Profit Margin calculate?" --model llama3.1

# Explain a specific calculation in plain English
tableau-inspector explain workbook.twbx --calculation "Profit Margin" --model llama3.1

# Summarize a dashboard's purpose, contents, filters, parameters, and key calculations
tableau-inspector summarize workbook.twbx --dashboard "Executive Dashboard" --model llama3.1

# Generate documentation with AI-written summaries and calculation explanations woven in
tableau-inspector docs workbook.twbx --ai --model llama3.1

Every command also supports --json for machine-readable output, and analyze/compare support --html for a shareable, self-contained HTML report.

AI assistant

ask/explain/summarize/docs --ai require a model name via --model, the TABLEAU_INSPECTOR_AI_MODEL environment variable, or (for a non-default provider) --provider/TABLEAU_INSPECTOR_AI_PROVIDER. The default provider is a local Ollama instance at http://localhost:11434 (override with --ollama-host / TABLEAU_INSPECTOR_OLLAMA_HOST). Start Ollama and pull a model before using these commands:

ollama serve
ollama pull llama3.1

Documentation

See USAGE.md for the full command reference (every flag, exit codes, AI provider setup, and example workflows), or run tableau-inspector --help / tableau-inspector <command> --help for the same option reference from the CLI itself.

License

MIT © Joshua Bowen

Release files for tableau-inspector 0.2.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 tableau-inspector 0.2.0
File Size Uploaded
tableau_inspector-0.2.0.tar.gz 64.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tableau-inspector 0.2.0
File Interpreter ABI Platform
tableau_inspector-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 167.5 kB

Release files / tableau_inspector-0.2.0.tar.gz

Download URL tableau_inspector-0.2.0.tar.gz
Size 64.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c82409b1ee5fbb19852daa37d7af53fd8dc94354da0698da24ef4130d88d6e74
BLAKE2b-256 checksum
How to use checksums
954c1fe23313d4f48497064767fffa9f19ffc5b7449e920c94b27c19aa0a0136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / tableau_inspector-0.2.0-py3-none-any.whl

Download URL tableau_inspector-0.2.0-py3-none-any.whl
Size 103.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b287d4cfa94118931a4bde9ff7fb32e18aa21831d7ddae366c5c1b44248fc645
BLAKE2b-256 checksum
How to use checksums
392bea243a9270b2f37e153c161a8815cb29f037cd0c3b89d6b04da2bd72e866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release history Release notifications | RSS feed

0.20.2

2 release files

0.20.1

2 release files

0.20.0

2 release files

0.19.1

2 release files

0.19.0

2 release files

0.18.3

2 release files

0.18.2

2 release files

0.18.1

2 release files

0.18.0

2 release files

0.17.2

2 release files

0.17.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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