Skip to main content

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 generate_schema - might be useful for the first integration when you want to see schema get_secret add_secret

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

pygbq-0.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

pygbq-0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file pygbq-0.1.tar.gz.

File metadata

  • Download URL: pygbq-0.1.tar.gz
  • Upload date:
  • Size: 9.3 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

Hashes for pygbq-0.1.tar.gz
Algorithm Hash digest
SHA256 a8466c87034fb0365f0eb2b3a830237eccacda7cb3226615aec5d8be72760452
MD5 6c8af72b5ec6729a31de40686198615d
BLAKE2b-256 8cf8329aba6510251665251fd8082dbffa7fe1e1d53f4b566b565da63091e9ae

See more details on using hashes here.

File details

Details for the file pygbq-0.1-py3-none-any.whl.

File metadata

  • Download URL: pygbq-0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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

Hashes for pygbq-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ebcb23122d93bf942588cbda59e46791914c47ffe4c1dc036abba70a9e43d7e
MD5 f5cf0c1b54331d659a3823f100955228
BLAKE2b-256 be94c4a516041cca0cd56a70971768bceb5e2cc1795ddb6de5fbf6d972019424

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