Python module for validating BigQuery sql queries with support for Jinja templated variables
Project description
Python BigQuery Validator
Python module for validating BigQuery sql queries with support for Jinja templated variables
This package was built with the goal of automating testing of sql for Apache Airflow dags.
pip install python-bigquery-validator==0.0.1a3
python -m bigquery_validator dry_run_query 'select true'
python -m bigquery_validator -f dry_run_query -p 'select true'
render_templated_query 'select date("{{ params.date }}") as date'
validate_query 'select true'
validate_query_from_file './valid_query.sql'
Build Instructions
Build steps
python3 -m pip install --upgrade build
python3 -m build
Upload
python3 -m pip install --upgrade twine
python3 -m twine upload --repository pypi dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-bigquery-validator-0.0.1a6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 253aeba762a17662d3ad29233efdb7ba7eba1acda7292bb0dba54bf7b6049e92 |
|
MD5 | 5a50d9dfb60b7574123a4da67f5d67d4 |
|
BLAKE2b-256 | 1de8a8ed551e0255e9d8a4433e706c9ebac3744221e85825806a8ba369951e2d |
Close
Hashes for python_bigquery_validator-0.0.1a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f271d7464034e0565b045d2fd27f690806cf496c734a62106e0ecec0bc0270 |
|
MD5 | 1e98d97f94327a817340d530ad4f5517 |
|
BLAKE2b-256 | 93546295cbddb821589d76d11a975680947b70c92bb1ddfe7748d24528d6860e |