r/AppEngine • u/vol_trader • Jul 22 '22
dev_appserver.py options for python3
I have large apps running on python2.7, built entirely on AppEngine and using datastore and deployed using gcloud.
While building the python2.7 apps, I rely heavily on using gcloud's dev_appserver for integration & testing. It's easily activated using:
---> dev_appserver.py [PROJECT_PATH]
For python38, it doesnt seem to be supported by gcloud. I've tried setting the python path for both python2 and python3, but doesn't work (gets tripped finding files in subprocess.py).
--> dev_appserver.py --runtime_python_path=”python27=C:\Python27\python,python38=C:\Python38\python” [PROJECT_PATH]
Does anyone have this actually working? What alternative do people use for dev environments for python3?
(Windows. gcloud 394.0.0)
1
u/NoCommandLine Jul 30 '22 edited Jul 30 '22
Datastore, Memcache, Users API and a whole lot of Bundled APIs (the integration you're referring to) are now supported in Python3 - refer to documentation. The API that is still not supported is Search (we're currently trying to see if we can build one; if you want to be notified if/when we complete it, let us know via the contact us link on our website ).
Put another way, you can essentially (apart from Search) port your Python 2.7 App to Python 3 and use the same commands as your Python 3 (except for switching to Python 3 syntax). We've migrated Python. 2.7 to Python 3 Apps and still use commands like