https://github.com/danny-yamamoto/bq-python-example
This is to test the data analysis infrastructure.
https://github.com/danny-yamamoto/bq-python-example
Last synced: about 2 months ago
JSON representation
This is to test the data analysis infrastructure.
- Host: GitHub
- URL: https://github.com/danny-yamamoto/bq-python-example
- Owner: danny-yamamoto
- Created: 2024-02-06T04:20:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-06T04:59:46.000Z (over 1 year ago)
- Last Synced: 2025-02-02T18:23:21.313Z (4 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bq-python-example
This is to test the data analysis infrastructure.## Execute the example.
```bash
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get update && sudo apt-get install google-cloud-cli
gcloud init
cd example/
pip3 install google-cloud-bigquery
gcloud config set project inunaki
gcloud auth application-default login
python query_bigquery.py
```## reference
- [gcloud](https://cloud.google.com/sdk/docs/install-sdk?hl=ja#deb)