Questions tagged [google-python-api]

The Google API Client Library for Python is designed for Python client-application developers. It offers simple, flexible access to many Google APIs. https://developers.google.com/api-client-library/python/

please use [Google-api-python-client] tag

91 questions
1
vote
1 answer

Is google-api-python-client deprecating?

Is google-api-python-client library going to hit the end of support soon ? I have been using this library for many things & i am hitting multiple issues because the library is not thread-safe. Should i work on using some wrapper class for having…
1
vote
1 answer

Byte field truncated in bigquery python API

I am trying to query a table in BigQuery with python with the sample code given in the documentation: query_job = bq_client.run_async_query(str(uuid.uuid4()), sql_query) query_job.use_legacy_sql =…
1
vote
1 answer

How to Skip Columns of CSV file

I am trying to upload data from certain fields in a CSV file to an already existing table. From my understanding, the way to do this is to create a new table and then append the relevant columns of the newly created table to the corresponding…
1
vote
1 answer

Google Cloud Storage can't find project name

I am using the python client library for the Google Storage API, and I have a file, pythonScript.py, that has the contents: # Imports the Google Cloud client library from google.cloud import storage # Instantiates a client storage_client =…
1
vote
2 answers

How to speed up exporting in Google Earth Engine?

I need to download a bunch of Landsat images from Google Earth Engine, and I'm doing it in its Python API with task = ee.batch.Export.image(IMAGE, NAME, config=CONFIG) task.start() Though it's working, the speed is extremely slow. The size of my…
1
vote
1 answer

No module named appengine.api

I am using Google Cloud to deploy a relatively small but computationally intensive Python application. I am using Flask. Since the current version of my app is really slow (I am not storing computed values for future reuse), I am hoping to use the…
1
vote
1 answer

Google Python API tries to import the deprecated oauth2client.contrib.multistore_file

I am trying to build the discovery docs for my endpoints application, but I am getting the following error: pc@pc:~/backend$ endpointscfg.py get_discovery_doc [PROJECT_NAME] Traceback (most recent call last): File…
1
vote
1 answer

how to authenticate once with gmail and use the generated tokens?

from oauth2client.client import OAuth2WebServerFlow from oauth2client.tools import run_flow from oauth2client.file import Storage import requests CLIENT_ID = '9453asfasfaksdfh860b1osoiveogstt.apps.googleusercontent.com' CLIENT_SECRET =…
1
vote
0 answers

Removing App Specific Password(s) with Google Directory API

I have scripted/automated our entire termination process for a user using the Google Directory API (i.e., changing password, moving to another OU, etc.) That all works great, however, I am noticing that when I use the "Delete App Specific Password"…
1
vote
1 answer

Google DBM Python API - filters

According to the DBM's API reference (https://developers.google.com/bid-manager/v1/queries#resource), it is possible to filter providing an array of filters like: "filters": [ { "type": "FILTER_ADVERTISER", …
Thiago Melo
  • 1,157
  • 1
  • 14
  • 31
0
votes
1 answer

How to add drop down list parameters into restapi url using python Post request

Getting below error- raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) In below python code the parameters have 2 dropdown list i.e. dataFormat and metrics…
0
votes
1 answer

How to get corresponding google photo ids and google files?

Users may optionally have their Google Photos show up as a folder in Google Drive. Deleting in Drive deletes in Photos, and vice versa (with exceptions for albums and other gotchas). See https://support.google.com/photos/answer/6156103 for…
Reece
  • 7,616
  • 4
  • 30
  • 46
0
votes
0 answers

(Windows 8.1) Use "Hey Google" to enable a request instead of Pressing Enter

So I've followed this tutorial to setup Google Assistant on my Windows Laptop. The only problem is that it requires the user to press the Enter key everytime they wanted to send a request. I'd prefer to have it like on an Android device, where you…
5Volts
  • 179
  • 3
  • 13
0
votes
2 answers

Google Big Query view limitation on Python API

I am trying to create a view using the Python API for Google Big Query. I have the free trial and all the authentication setup. Whenever I create a view using the API only 25 rows are generated in the view, however when I create a view from the big…
0
votes
1 answer

Downloading files in Google Drive folder to Local C-Drive through Python

I am trying to download a .csv file that populates to a Google Drive Folder through the process of Microsoft Flow that retrieves an email attachment document every 6 hours through email. I attempted to follow the documentation of using the Pydrive…