GoogleCloudPlatform / datastore-ndb-python

Client library for use with Google Cloud Datastore from within the Google App Engine Python runtime.
https://cloud.google.com/appengine/docs/standard/python/ndb/
Apache License 2.0
114 stars 48 forks source link

How can I use this library with GAE standard Python3? #296

Open kercos opened 5 years ago

patelnav commented 5 years ago

@wsh : Any response to this?

Python 2.7 End Of Life is January 2020

So we have less than a year to transition all our apps to another ORM, or this library has less than a year to transition to python3.

Both these options have massive lead-times on making sure everything is stable and working, it's incumbent on the Google Cloud Platform team to inform users on which path to take.

tswast commented 5 years ago

Work is in progress to update the ndb library to be compatible with Python 3 at https://github.com/googleapis/google-cloud-python/tree/master/ndb. That client is currently in development, but not yet ready for production use cases.

patelnav commented 5 years ago

@tswast: Amazing! Thanks for sharing, that's exactly what I was hoping for. I see issues tagged with api:ndb, is there anywhere we can track the progress of this. When should we start migrating our code?

I was a bit worried because according to Understanding differences between Python 2 and Python 3 on the App Engine standard environment:

The ndb ORM library is not available for Python 3. You can access Cloud Datastore through the Cloud Datastore API.

☝️ is more of 🖕when it comes to an upgrade path for ndb users on python2.

Glad to hear it's happening.

tswast commented 5 years ago

Those are the right issues to watch. Looks like https://github.com/googleapis/google-cloud-python/issues/6251 is especially relevant.

pravindahal commented 5 years ago

The ndb-for-python-3 project has it's own repo now: https://github.com/googleapis/python-ndb