Python wrapper for interacting Google BigQuery.
Project description
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
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
gbq-1.0.5.tar.gz
(8.7 kB
view details)
Built Distribution
gbq-1.0.5-py3-none-any.whl
(9.4 kB
view details)
File details
Details for the file gbq-1.0.5.tar.gz
.
File metadata
- Download URL: gbq-1.0.5.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3912f6323527b607435516bf53530ef6ee033212db061d0867c9f1eb917d0a71 |
|
MD5 | 1f1de8eb2676cdf21185f10325aa5d0a |
|
BLAKE2b-256 | e1f5fd8541a292af992c3f976a09173c8e01890870bfac8d3eab06b68f909c2c |
File details
Details for the file gbq-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: gbq-1.0.5-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab1e02abaeb4bdddcc81d368d61041b0ef76e25611b8a49b2a90a89298c2840 |
|
MD5 | cef4fbc332594631499d74be75149bdd |
|
BLAKE2b-256 | 522d696cb92adb5f3a5cfc10be008452698a756bc8d860543d6d17990d328840 |