App Engine APIs recommended replacement for python 3

138 views
Skip to first unread message

Santiago Del Valle

unread,
Apr 22, 2019, 10:46:52 AM4/22/19
to Google App Engine
I was browsing the documentation about python 3 and python 2 standard environment differences, because we are migrating an app that uses python 2 and communicates with other services on python 2.

https://cloud.google.com/appengine/docs/standard/python3/python-differences

The documentation does not list any recommended replacements.
What would be the recommended course of action to communicate a python 3 app with a python 2 service on a standard environment.

We use create the service client like this:

service_client = googleapiclient.discovery.build(
            api
, version,
            discoveryServiceUrl
=discovery_url,
            http
=credentials,
            cache_discovery
=False
       
)  

Is there any recommended replacment, I`m lost because the documentation says nothing and I need kind of a starting point.


Katayoon (Cloud Platform Support)

unread,
Apr 22, 2019, 3:09:27 PM4/22/19
to Google App Engine
Hi Santiago,

I should note that App Engine APIs ( as listed in this link ) are not available in the Python 3.7 runtime; however you can use Google Cloud Client Libraries.  In this documentation, all Client Libraries are explained, and it is noted that if no Cloud Client Library for your preferred language is available, you can still use an older version of our client libraries called Google API Client Libraries (including "googleapiclient.discovery.build" as listed in the reference). Furthermore, I see that the support for Python 3 is added in v1.4.0 for google-api-python-client in the respective GitHub repo.



Reply all
Reply to author
Forward
Message has been deleted
0 new messages