Metadata-Version: 2.4
Name: tableau-inspector
Version: 0.1.0
Summary: Analyze Tableau workbooks (.twb, .twbx) for common issues before publishing.
Author: Joshua Bowen
License: MIT License
        
        Copyright (c) 2026 Joshua Bowen
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: linter,static-analysis,tableau,twb,twbx
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: build; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Description-Content-Type: text/markdown

# 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; no network calls are made.

This is a Python port of the Node.js `tableau-inspector` CLI, with the same functionality and
zero runtime dependencies (stdlib only).

## Install

```bash
pip install -e .
```

## Quick start

```bash
# 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
```

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

## Documentation

Run `tableau-inspector --help` or `tableau-inspector <command> --help` for the full option
reference and the complete list of rules `analyze` checks.

## License

MIT © Joshua Bowen
