https://github.com/orisano/bqgcs
https://github.com/orisano/bqgcs
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/orisano/bqgcs
- Owner: orisano
- License: mit
- Created: 2018-01-21T10:10:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T22:38:27.000Z (almost 3 years ago)
- Last Synced: 2025-05-07T20:04:24.079Z (about 1 year ago)
- Language: Python
- Size: 75.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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