Skip to main content

Python wrapper for interacting Google BigQuery.

Project description

CI pipeline status PyPI PyPI - Python Version codecov Checked with mypy Code style: black

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


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.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gbq-1.0.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file gbq-1.0.1.tar.gz.

File metadata

  • Download URL: gbq-1.0.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for gbq-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fb80182336bee22a812e1ff3e3f3d76616c22e7e67901995856c99db8be5aa50
MD5 71b5ad7b865c51674c5f4004105df31a
BLAKE2b-256 b0cb09aa660970a2a2fe462340390c99e359f82c9b075d59c207ed6beb21dd4b

See more details on using hashes here.

File details

Details for the file gbq-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gbq-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for gbq-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d48fabf1b94c0054fd9d6fb0279ca579579c894e2aabff6e3e92f63aa73e4948
MD5 7cc25a2deb0fd8b8911dc868863613f3
BLAKE2b-256 af723780b0c0cf5ad4848d8118eee1bd160e98950415eb2a520f648458b37317

See more details on using hashes here.

Supported by

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