Skip to content

Latest commit

 

History

History
75 lines (54 loc) · 2.45 KB

README.md

File metadata and controls

75 lines (54 loc) · 2.45 KB

GCP Python Client Functions

Installation

Launch a terminal and install by entering:

pip install gcp_python_client_functions

Usage Prerequisites

1. GCP environment

2. Authentication

Authenticating by… - (locally) using the Google Cloud SDK(installation needed). Launch a terminal enter:

gcloud auth login --update-adc
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/keyfile.json"

How to use

from gcp_python_client_functions.clients import *

PROJECT_ID = 'dz-learning-d'

# BigQuery
bq_obj = BigQuery(PROJECT_ID)

# Cloud Storage
stg_obj = Storage(PROJECT_ID)