GBQ
Python wrapper for interacting Google BigQuery.
This package provides an interface by wrapping Google's low level library. It exposes options to provide input as json objects which can be used for various CI/CD tools.
Usage
Basic Usage
from gbq import BigQuery
# BigQuery project id as listed in the Google Developers Console.
project_id = 'project_id'
# BigQuery dataset id as listed in the Google Developers Console.
dataset_id = 'dataset_id'
# BigQuery table/view id as listed in the Google Developers Console.
structure_id = 'structure_id'
# BigQuery structure definition as defined in the Google Developers Console.
json_schema = {"type": "table", "schema": [{"id": "integer"}]}
# Service account email address as listed in the Google Developers Console.
svc_account = '{"type": "service_account", "project_id": "project_id"}'
bq = BigQuery(svc_account=svc_account, project=project_id)
bq.create_or_update_structure(project_id, dataset_id, structure_id, json_schema)
Documentation
Check out the project documentation
Metadata
Release files for gbq 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gbq-1.1.0.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gbq-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / gbq-1.1.0.tar.gz
| Download URL | gbq-1.1.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1868fee299377f920ad7adb52660b5530e1e6365c633a6bb3ee299d7f66a2fe
|
|
BLAKE2b-256 checksum How to use checksums |
5f6243d5f8d9fcc4e3bb6518387b98c179a0f317705774361cb0246ede1a2084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.14
|
Release files / gbq-1.1.0-py3-none-any.whl
| Download URL | gbq-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5efe96cc7a4321d7fddfd66aaeb2f595a51d936d8acb3e448bb51841685f4e9c
|
|
BLAKE2b-256 checksum How to use checksums |
9089eeb4ff6caedeab1526130d7aa8850b3d38661cc7e6ed6465084a7cbc8c08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.14
|