Skip to main content

Google Cloud Storage Connector for Google BigQuery

Project description


BQGCS
===================================
| Google Cloud Storage Connector for Google BigQuery.

Getting Started
--------
.. code:: bash

pip install bqgcs

How to Use
--------
.. code:: python

import bqgcs
from google.cloud import bigquery, storage

gcs = storage.Client()
blob = gcs.bucket("<<bucket_name>>").blob("<<blob_name>>")
bqgcs.query_to_gcs("SELECT * FROM 'project.dataset.table'", blob)

bq = bigquery.Client()
table = bq.dataset("<<dataset>>").table("<<table>>")
bqgcs.gcs_to_bq(blob, table)


License
--------
MIT


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bqgcs, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size bqgcs-0.1.5-py2.py3-none-any.whl (4.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size bqgcs-0.1.5.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page