Skip to main content

Python-native SQL dialect that renders to BigQuery

Project description

barbq

Python-native SQL dialect that renders to BigQuery

Why: exposes SQL to the machinery of python

How: Data zone: encode the BQ CFG in typed membership-relations of python objects, write a reverse parser and reverse lexer, which can be chained to form a serializer for BQ ASTs

UI zone: write overloaded/pass-through constructors using Union types to satisfy the looks-like-SQL constraint

What it looks like:

TODO include code snippets

Tradeoffs left to the user: Your code can look like SQL; the more pythonic power you want, the more your code will look like python

You can use the constructor-overloading to make your code look like SQL; the more type validation you want, the more your code will look like type-annotated SQL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

barbq-0.0.3-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page