gcp stuff
This commit is contained in:
@@ -7,3 +7,7 @@ s3transfer==0.1.11
|
|||||||
six==1.11.0
|
six==1.11.0
|
||||||
virtualenv==15.1.0
|
virtualenv==15.1.0
|
||||||
tabulate==0.8.2
|
tabulate==0.8.2
|
||||||
|
|
||||||
|
google-api-python-client==1.7.4
|
||||||
|
google.cloud==0.34.0
|
||||||
|
google-cloud-storage==1.12.0
|
||||||
|
|||||||
12
weirdAAL.py
12
weirdAAL.py
@@ -17,8 +17,20 @@ import re
|
|||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
import textwrap
|
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['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
|
# 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'
|
# os.environ['HTTPS_PROXY'] = 'https://127.0.0.1:3128'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user