Glider
Loading...
Searching...
No Matches
src.upload_module.gdrive.GenTokenEC2 Namespace Reference

Constants

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

Constant Documentation

◆ args

src.upload_module.gdrive.GenTokenEC2.args = argparser.parse_args()

Definition at line 10 of file GenTokenEC2.py.

◆ CLIENT_SECRET

str src.upload_module.gdrive.GenTokenEC2.CLIENT_SECRET = rel_path+"/client_secret.json"

Path where is storage client_secret.json file.

Definition at line 19 of file GenTokenEC2.py.

◆ creds

src.upload_module.gdrive.GenTokenEC2.creds = store.get()

Reads the permissions defined in token.json.

Definition at line 29 of file GenTokenEC2.py.

◆ drive_service

src.upload_module.gdrive.GenTokenEC2.drive_service = build("drive", "v3", http=creds.authorize(Http()))

Definition at line 34 of file GenTokenEC2.py.

◆ flow

src.upload_module.gdrive.GenTokenEC2.flow = client.flow_from_clientsecrets(CLIENT_SECRET, SCOPES)

Definition at line 31 of file GenTokenEC2.py.

◆ full_path

src.upload_module.gdrive.GenTokenEC2.full_path = __file__

Determines the path where client_secret.json will be created.

Definition at line 14 of file GenTokenEC2.py.

◆ noauth_local_webserver

src.upload_module.gdrive.GenTokenEC2.noauth_local_webserver

Definition at line 11 of file GenTokenEC2.py.

◆ rel_path

str src.upload_module.gdrive.GenTokenEC2.rel_path = full_path.split("/")[:-1]

Definition at line 15 of file GenTokenEC2.py.

◆ SCOPES

list src.upload_module.gdrive.GenTokenEC2.SCOPES
Initial value:
1= ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly",
2"https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.metadata",
3"https://www.googleapis.com/auth/drive.photos.readonly"]

Defines the api scopes.

Definition at line 22 of file GenTokenEC2.py.

◆ store

src.upload_module.gdrive.GenTokenEC2.store = file.Storage(rel_path+"/token.json")

Path where is storage token.json file.

Definition at line 27 of file GenTokenEC2.py.