Credenciais de conta de serviço python pydrive
gauth = GoogleAuth()
scope = ['https://www.googleapis.com/auth/drive']
gauth.credentials = ServiceAccountCredentials.from_json_keyfile_name(JSON_FILE, scope)
drive = GoogleDrive(gauth)
my_file = drive.CreateFile({'id': 'FILE_ID'})
Pleasant Panda