Skip to content

Instantly share code, notes, and snippets.

@CharlyWargnier
Created February 8, 2020 16:34
Show Gist options
  • Save CharlyWargnier/b17088ff4daad02566b2ac2c3af2029e to your computer and use it in GitHub Desktop.
Save CharlyWargnier/b17088ff4daad02566b2ac2c3af2029e to your computer and use it in GitHub Desktop.
# Import BigQuery from google.cloud
from google.cloud import bigquery
## Inputs from forms ##
GCP_PROJECT_ID = 'your_project_ID_here' #@param {type:"string"}
GCS_Bucket_Location = 'europe-west2' #@param ["asia-east1", "asia-east2", "asia-northeast1", "asia-northeast2", "asia-northeast3", "asia-south1", "asia-southeast1", "australia-southeast1", "europe-north1", "europe-west1", "europe-west2", "europe-west3", "europe-west4", "europe-west6", "northamerica-northeast1", "southamerica-east1", "us-central1", "us-east1", "us-east4", "us-west1", "us-west2"]
# Create a client instance for your project
client = bigquery.Client(project=GCP_PROJECT_ID, location=GCS_Bucket_Location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment