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.1a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0fbe32261749e1930e0e9c2e4221630a2cfef96b889ed0d01faef185bd791f9 |
|
MD5 | e501ea003c1cb93f862a850a4af25b72 |
|
BLAKE2b-256 | 5a03a3c70e833c0b0a8edfe8ad983611d75ee01a45b426208d3b6285bfd15a8d |
Close
Hashes for python_bigquery_validator-0.0.1a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd71f6dbc3225b393aa6e8b9b8a5a141e083928c3f0f489df2505d16b45fbb21 |
|
MD5 | 0d7fe63389d091d817eaf7259d12bf4c |
|
BLAKE2b-256 | 375f9d7ac204adc3023805a884e080fbec1e728a08502a220d2b2ef2fe7a7dce |