Easily integrate data in BigQuery
Project description
PyGBQ
Easily integrate data in BigQuery
Example
The following snippet
from pygbq import gbq, set_dataset
set_dataset('Finance')
@gbq(how='replace')
def transactions(start_date):
data = ...
return data
if __name__ == "__main__":
transactions("2020-11-25")
will (re)create table Finance.transactions in your default project.
Install and set up
pip install pygbq
Set up the authentication.
Documentation
gbq - main decorator update_table_using_temp - if you want to use the decorator as a function table - friendly interface to get a table from BigQuery set_dataset - set default dataset in the project MyError - if you need to return a value with Flask read_jsonl generate_schema - might be useful for the first integration when you want to see schema get_secret add_secret
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygbq-0.11.tar.gz.
File metadata
- Download URL: pygbq-0.11.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61877e79de944c80b938580253c9f8f2d9474f67b538f934cee9c3321ff3bd86
|
|
| MD5 |
eb2c3a8eb900056fc49d00d5e0546831
|
|
| BLAKE2b-256 |
1fada9e8817b5b662401e6f94030e11a07947717ae3b4faedf0a937773ecee81
|
File details
Details for the file pygbq-0.11-py3-none-any.whl.
File metadata
- Download URL: pygbq-0.11-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf5f8da4082c0be0cff27c31aafa7be503e1d16c49a1c0b4e5ace7d89b794065
|
|
| MD5 |
b960325df875280a36fa69edee365037
|
|
| BLAKE2b-256 |
e01ad9ec602eba7bd454e15835f203d08d230fc7fecad1d9c55f73a022993589
|