Skip to main content

Python wrapper for interacting Google BigQuery.

Project description

CI pipeline status PyPI PyPI - Python Version codecov Checked with mypy Ruff

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.1.0.tar.gz (9.1 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.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gbq-1.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.14

File hashes

Hashes for gbq-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b1868fee299377f920ad7adb52660b5530e1e6365c633a6bb3ee299d7f66a2fe
MD5 d0d70adf69cc3e13afec5c3a575e1f75
BLAKE2b-256 5f6243d5f8d9fcc4e3bb6518387b98c179a0f317705774361cb0246ede1a2084

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gbq-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.14

File hashes

Hashes for gbq-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5efe96cc7a4321d7fddfd66aaeb2f595a51d936d8acb3e448bb51841685f4e9c
MD5 4dfe1890a6c4dd02b8e510e222ba95a9
BLAKE2b-256 9089eeb4ff6caedeab1526130d7aa8850b3d38661cc7e6ed6465084a7cbc8c08

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