Cloud NDB Datastore library Beta

114 views
Skip to first unread message

Andrew Gorcester

unread,
Sep 19, 2019, 5:33:38 PM9/19/19
to google-a...@googlegroups.com
Hello Pythonistas,

I'm pleased to announce the Beta release of Cloud NDB, an updated version of the App Engine NDB client library for Datastore to support the GAE Python 3 runtime and other Python platforms. Our goal with Cloud NDB and related efforts is to ensure App Engine Python 2.7 applications are fully portable and can smoothly migrate to Python 3.

The library can be installed with `pip install google-cloud-ndb` and the source code can be found at https://github.com/googleapis/python-ndb. Please refer to our newly published migration guide at https://cloud.google.com/appengine/docs/standard/python3/migrating-to-cloud-ndb, and our API documentation at https://googleapis.dev/python/python-ndb/latest/index.html.

We're grateful to have received generous user support in testing, comments, bug reports and even code contributions in our Alpha phase, and we hope the community will continue to send feedback as we work towards GA. Please see our GitHub repository linked above to follow development and communicate with our team, or email me directly at gorc...@google.com.

While Cloud NDB can be used freely by any Cloud Datastore (and Firestore in Datastore mode) customers, it is intended to facilitate migration to Python 3 for App Engine NDB users; our recommendation for new apps is still to use the Cloud Client Datastore or Firestore libraries which are part of the Google Cloud SDK.

Thanks for your continued support of our platform. I am looking forward to hearing from the community on this and upcoming efforts.

Ryan B

unread,
Sep 24, 2019, 11:52:18 PM9/24/19
to Google App Engine
exciting! thanks for the heads up, andrew.

do you have a recommended way to unit test code that uses this library? i'm looking at migrating a few existing GAE python 2 apps with unit tests that use testbed, https://cloud.google.com/appengine/docs/standard/python/tools/localunittesting, which is great. are there plans for anything similar for google-cloud-ndb? i could try hooking up the cloud datastore emulator, but that seems pretty heavy for unit tests...? alternatively, i could mock out all of my code's datastore interactions, but that would be a substantial lift.

Soeren Balko

unread,
Sep 26, 2019, 2:01:48 AM9/26/19
to Google App Engine
Great news and good to see Google (finally!) reacting to the Python 2 EOL dilemma and its repercussions on AppEngine!

A couple of question though:

(1) "beta" is not very reassuring in a sense that we have millions of users in our AppEngine/DataStore backend. When will the library come out of beta?
(2) Does the library come under Google Cloud support contracts?

Thank you,
Soeren

Mario Jimenez Leon

unread,
Sep 26, 2019, 11:05:29 PM9/26/19
to Google App Engine

This is great news!

 

The library is gonna be supported by GCP support until the beta phase ends. You can track the changes in the changelog of the library in github: https://github.com/googleapis/python-ndb/blob/master/CHANGELOG.md

 

Currently, we don't have an Estimated Time of Arrival for the new version.


Andrew Gorcester

unread,
Sep 27, 2019, 3:39:13 PM9/27/19
to google-a...@googlegroups.com
After consulting with product management, I can clarify that Cloud NDB will be treated the same as other Cloud Client libraries on github and so is not covered explicitly by our Cloud Support contract, though I'm not personally familiar with our support contract language so I can't go into any greater detail.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/83877d90-87e6-46ea-8b9a-39b3e68e1c16%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages