Glider
Loading...
Searching...
No Matches
GenTokenEC2.py File Reference

Go to the source code of this file.

Namespaces

namespace  src
 
namespace  src.upload_module
 
namespace  src.upload_module.gdrive
 
namespace  src.upload_module.gdrive.GenTokenEC2
 

Constants

 src.upload_module.gdrive.GenTokenEC2.args = argparser.parse_args()
 
 src.upload_module.gdrive.GenTokenEC2.noauth_local_webserver
 
 src.upload_module.gdrive.GenTokenEC2.full_path = __file__
 Determines the path where client_secret.json will be created.
 
 src.upload_module.gdrive.GenTokenEC2.rel_path = full_path.split("/")[:-1]
 
str src.upload_module.gdrive.GenTokenEC2.CLIENT_SECRET = rel_path+"/client_secret.json"
 Path where is storage client_secret.json file.
 
list src.upload_module.gdrive.GenTokenEC2.SCOPES
 Defines the api scopes.
 
 src.upload_module.gdrive.GenTokenEC2.store = file.Storage(rel_path+"/token.json")
 Path where is storage token.json file.
 
 src.upload_module.gdrive.GenTokenEC2.creds = store.get()
 Reads the permissions defined in token.json.
 
 src.upload_module.gdrive.GenTokenEC2.flow = client.flow_from_clientsecrets(CLIENT_SECRET, SCOPES)
 
 src.upload_module.gdrive.GenTokenEC2.drive_service = build("drive", "v3", http=creds.authorize(Http()))