AppEngine Standard Python 3.7 connect to Datastore or Firebase

364 views
Skip to first unread message

oon arfiandwi

unread,
Aug 9, 2018, 8:06:23 PM8/9/18
to Google App Engine

Hi,

with new release of AppEngine standard environment with Python 3.7 runtime,
how to connect to Google Datastore or Firebase?

any reference about NDB for Python 3.7? may be issuetracker to monitor?
or other community build library?

thank you.

-- 
sincerely,
oon

Jean Juste-constant

unread,
Aug 13, 2018, 4:11:02 PM8/13/18
to google-a...@googlegroups.com
Currently Python 3.7 runtime on App Engine Standard is not compatible with NDB. You can use the Python Datastore Client Library to achieve the similar actions possible on NDB. You can find the list of features available through the Python Client Library by visiting this Github page (like Firestore as I'm not 100% sure the Python Firestore Client Library has been updated to support 3.7 (possible it was built with 3.7 in mind but can't confirm it yet). 

Since Python 3.7 is still in beta, some features might change and become unavailable once it will be released as stable. Here is the General documentation related to Python 3.7 on App Engine Standard.

oon arfiandwi

unread,
Aug 13, 2018, 9:37:50 PM8/13/18
to Google App Engine

Dear Jean,
thank you for your reply.

I have checked both libraries before I posted to the group,
but seems like both libraries have no documentation about Python 3.7,
for example Python Datastore Client Library it does not have "Python 3.7" on its list of programming languages.

may be we just have to wait longer, so Python 3.7 get more adoption on many libraries.

-- 
sincerely,
oon arfiandwi


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d0e3ee5f-18a0-485e-b6ff-9cfef992ec4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jean Juste-constant

unread,
Aug 14, 2018, 2:44:19 PM8/14/18
to google-a...@googlegroups.com
It's true that the library itself is not listing Python 3.7 but our documentation state otherwise (view NDB link) and has been updated a bit later than the release. I do admit there seems to be some discrepancy between the Python package index information and the actual github library page. The package page list Python 2 but the github state the following: 

Heads up! These libraries are supported on App Engine standard's Python 3 runtime but are not supported on App Engine's Python 2 runtime.

The only reason that would explain the package index to not actually list the 3.7 runtime is because python 3.7 is only beta on App Engine standard (not yet on App engine flex). We should update that information once it will be a stable release


Sorry for the confusion.


On Thursday, August 9, 2018 at 8:06:23 PM UTC-4, oon arfiandwi wrote:

Fili Wiese

unread,
Sep 13, 2018, 5:48:29 PM9/13/18
to Google App Engine
I got firestore working relatively quickly and simple on the new standard GAE Python3. 

Just include google-cloud-firestore in your requirements.txt and do:

from google.cloud import firestore

db = firestore.Client()

doc_ref = DB.collection(u'example').document()
doc_ref.set({u'key': u'value'})

Really not much else to it.
Reply all
Reply to author
Forward
0 new messages