0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Google SpreadSheetを実態として持つBigQuery Tableに対してPythonでアクセスする方法

Last updated at Posted at 2024-10-24

はじめに

備忘録なので雑多書きです。

アクセス条件

  • BigQuery の実行権限があること
  • BigQuery Tableへの読み込み権があること
  • Tableの実態であるGoogle SpreadSheetへの読み込み権があること
  • Scopeが設定されていること

上3つの詳細は省略。

Scopeが設定されていること

$ gcloud auth application-default login --scopes=https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/drive.readonly

を実行し、認証を取得する。
https://www.googleapis.com/auth/drive は読み込みだけなら不要な気もするが、検証していない。


あとは省略。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?