Skip to content

thundercomb/csv-pubsub-bq-streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSV Streamer with PubSub and BigQuery

Stream CSV data via PubSub into BigQuery using simple Python scripts and the Google Cloud libaries for PubSub and Bigquery. These scripts do not use a GCP service account. They assume that application default credentials are in use.

gcloud auth application-default login

For best results use Python 3.

Preparation

PubSub and BigQuery APIs should be enabled. Create a PubSub topic and subscription. Create a BigQuery dataset and table.

For best results use Python 3.

Install dependencies

pip3 install requirements.txt

Stream to PubSub

python3 stream_and_pub.py

Subscribe and insert into BigQuery

python3 sub_and_insert.py

About

Streaming CSV data via PubSub and into BigQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages