gcp stuff

This commit is contained in:
carnal0wnage
2018-09-26 14:11:30 -04:00
parent 83d8d45f95
commit 9a961bd48c
2 changed files with 16 additions and 0 deletions

View File

@@ -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

View File

@@ -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'