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 - read newline delimited json
- generate_schema - might be useful for the first integration when you want to see schema
- get_secret - get a secret version from Secret Manager
- add_secret - add a secret version to Secret Manager
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
pygbq-0.19.tar.gz
(9.7 kB
view details)
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
pygbq-0.19-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file pygbq-0.19.tar.gz.
File metadata
- Download URL: pygbq-0.19.tar.gz
- Upload date:
- Size: 9.7 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 |
4921d35eb38b013d343f067fcd1c87eda38ff60e8b88d33d6e118cab994945e0
|
|
| MD5 |
5f208e80bfcac5a5f125b1a2ab989047
|
|
| BLAKE2b-256 |
6218027d67093c3074698f366d8c8cb063ad553e65c854760b88626ea211fcff
|
File details
Details for the file pygbq-0.19-py3-none-any.whl.
File metadata
- Download URL: pygbq-0.19-py3-none-any.whl
- Upload date:
- Size: 10.9 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 |
29796da56231e095b0f9adf6c840b5fec123b1be9399d6b77861ec8ac2931423
|
|
| MD5 |
ebd274fc810c0b7cd1bd063e79b90c13
|
|
| BLAKE2b-256 |
5d2d7a47a99db0d9923a95ea3db960e649349cb1427d31dd7ccb74825d2651f6
|