Metadata-Version: 2.1
Name: bq-estimator
Version: 1.0.0
Summary: estimate BigQuery usage of sql queries
Home-page: https://github.com/j-clemons/bq-estimator
Author: Jonathan Clemons
Author-email: j-clemons@tuta.io
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# bq-estimator
Estimates the data usage of SQL queries executed in BigQuery.
<br>Returns the estimated usage in KB, MB, GB, or TB dependent on the closest multiplier.

# Installation

`pip install bq-estimator`

Google [Application Default Credentials](https://cloud.google.com/docs/authentication/application-default-credentials)
must be set up for this tool to function.

# Usage

Ready to execute SQL queries.

`bq-estimator query.sql [query2.sql query3.sql …]`

## Options
## --dbt

***An installation of dbt-bigquery is required for using this functionality.***

Takes any model selection command that is compatible with dbt

`bq-estimator --dbt [dbt model selection]`
