diff --git a/requirements.txt b/requirements.txt index c6365d1..1b4477b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,7 @@ s3transfer==0.1.11 six==1.11.0 virtualenv==15.1.0 tabulate==0.8.2 + +google-api-python-client==1.7.4 +google.cloud==0.34.0 +google-cloud-storage==1.12.0 diff --git a/weirdAAL.py b/weirdAAL.py index 387036f..1fbaf85 100755 --- a/weirdAAL.py +++ b/weirdAAL.py @@ -17,8 +17,20 @@ import re from tabulate import tabulate import textwrap +# not pythonic but keeping google imports separate for now +import google.auth +import googleapiclient.discovery + +from google.oauth2 import service_account +from googleapiclient.errors import HttpError + +from google.cloud import storage, exceptions +from google.cloud.exceptions import * + os.environ['AWS_SHARED_CREDENTIALS_FILE'] = '.env' +os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'key.json' + # If you want to use a transparent + supports SSL proxy you can put it here # os.environ['HTTPS_PROXY'] = 'https://127.0.0.1:3128'