Skip to main content

🚀 DWH-Auditor

English | 日本語

PyPI version Python Versions License Documentation

📚 Official Documentation: https://shirokurolab.github.io/dwh-auditor/

DWH-Auditor is an open-source CLI tool that parses BigQuery metadata to instantly perform cost optimization and data governance auditing to prevent runaway cloud costs.

By visualizing exactly who is executing heavy queries and which tables are completely unused, it uncovers hidden financial waste and provides actionable insights.

DWH-Auditor Console Report Sample

💡 Why DWH-Auditor?

While BigQuery is extremely powerful, its pay-as-you-go pricing model means that a single inefficient query or an abandoned, massive table can stealthily generate thousands of dollars in wasted costs every month.

DWH-Auditor analyzes your INFORMATION_SCHEMA seamlessly without any complex configurations, delivering a "health check" for your data infrastructure in seconds. Because it never accesses your actual table data, it can be safely executed even in strict, highly secure enterprise environments.

✨ Key Features

  • 💸 Identifying High-Cost Queries: Aggregates billed bytes over the past N days and surfaces the Top 10 most expensive ad-hoc queries.
  • 🔄 Recurring Execution Alerts: Detects dashboards or batch processes that are running expensive queries on a recurring schedule.
  • 🚨 Detecting Full Table Scans (Anti-patterns): Warns you about inefficient queries, such as full table scans caused by missing partition filters.
  • 🧟 Identifying Zombie Tables: Locates storage-heavy tables that haven't been queried for a long time, enabling swift storage cost reductions.
  • 📊 Multi-Format Reporting: Integrates effortlessly into your CI/CD pipelines (e.g. GitHub Actions) to share daily audit reports in Markdown or JSON to your team.

🛠 Quickstart

1. Installation

pip install dwh-auditor

2. Initialization

dwh-auditor init

A config.yaml file will be generated in the current directory. Adjust the cost rates and warning thresholds as necessary to fit your environment.

3. Execution

# Example: Analyze the past 30 days for my-gcp-project
dwh-auditor analyze --project my-gcp-project --days 30 --output console

4. 🔐 Security (Zero Data Access)

DWH-Auditor strictly reads metadata (INFORMATION_SCHEMA) from BigQuery and never reads actual table records. It operates flawlessly under the principle of least privilege, requiring only roles/bigquery.metadataViewer and roles/bigquery.resourceViewer.

5. 💼 Enterprise Support & Data Infrastructure Consulting

DWH-Auditor is a powerful diagnostic tool for uncovering issues in your data platform. However, resolving severe structural issues—such as redesigning complex data models or refactoring massive query pipelines—can often be challenging to handle with internal resources alone.

If you are facing these challenges, the developer behind this tool (Data Engineer) offers direct support and professional consulting:

  • "DWH-Auditor detected massive full table scans, but we don't know how to redesign partitions without breaking existing BI/ETL workflows."
  • "We want to migrate a collection of legacy SQL scripts to modern data modeling using dbt."
  • "We need to integrate this tool into our CI/CD pipeline to establish continuous data governance."

6. 👉 Contact Us

Feel free to reach out at shirokurolab.oss.tools@gmail.com. Initial consultations and high-level cost reduction assessments are provided completely free of charge.

7. 🤝 Contributing

We heartily welcome bug reports and Pull Requests! If you want to contribute, please check CONTRIBUTING.md for instructions on setting up your development environment.

8. 📜 License

MIT License

Metadata

Release files for dwh-auditor 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dwh-auditor 0.2.6
File Size Uploaded
dwh_auditor-0.2.6.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for dwh-auditor 0.2.6
File Interpreter ABI Platform
dwh_auditor-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / dwh_auditor-0.2.6.tar.gz

Download URL dwh_auditor-0.2.6.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9f7bf0b303f51a48da61c55cf05074b547a49d00c486850566e3a60e62566640
BLAKE2b-256 checksum
How to use checksums
8cfc8692268314e68c6d12e31942725eec11da0c3db6fc12fdf7c42a8f78fe8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 13, 2026.

Transparency log

Release files / dwh_auditor-0.2.6-py3-none-any.whl

Download URL dwh_auditor-0.2.6-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e184dbce98e02d9bf2eb8cd294a4a3c7a3d3d96be094f2ff157dfb4120644a32
BLAKE2b-256 checksum
How to use checksums
d484e47e87fcd687a8003fabf48d6b0125434f27161f991c663b09c66dd34ae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

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