Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/orisano/bqgcs


https://github.com/orisano/bqgcs

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

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("<>").blob("<>")
bqgcs.query_to_gcs("SELECT * FROM 'project.dataset.table'", blob)

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

Author
-------
Nao Yonashiro (@orisano)

License
--------
MIT