webapp2 example for 2nd gen standard GAE Python3

223 views
Skip to first unread message

Fili Wiese

unread,
Sep 13, 2018, 5:48:29 PM9/13/18
to Google App Engine
If you are looking for a quick example of using webapp2 on the new standard GAE Python3, here it is:


FYI webapp2 auth does not work for which I have created an issue on Github: https://github.com/GoogleCloudPlatform/webapp2/issues/137


Amandeep Kaur(Cloud Platform Support)

unread,
Sep 15, 2018, 4:44:31 PM9/15/18
to Google App Engine
Hi Fili,

As per this doc[1] webapp2 is not compatible with Python 3. Webapp2 Framework is available to Python 2.7 users only.

Alex Martelli

unread,
Sep 15, 2018, 7:07:12 PM9/15/18
to google-a...@googlegroups.com
On Sat, Sep 15, 2018 at 1:44 PM 'Amandeep Kaur(Cloud Platform Support)' via Google App Engine <google-a...@googlegroups.com> wrote:
Hi Fili,

As per this doc[1] webapp2 is not compatible with Python 3. Webapp2 Framework is available to Python 2.7 users only.

Not quite; as Fili Wiesel (original poster in this thread) documents in the doc he wrote and quoted, the core of webapp2 works fine with Python 3.7 -- it's just several "extras" for app engine, such as integration with memcache or the users service, that are not compatible. At https://github.com/GoogleCloudPlatform/webapp2/issues/137 you'll see that Fili is looking for helpers to improve the situation (in the upstream, open-source repository), and Thea Flowers, a Pythonista and Googler in developer relations for Google Cloud Platform, has signed up as such a helper.

So, one might sign up to help out, in the spirit of open source.

Alternatively, of course, one can pick some other lightweight framework (Flask is, I believe, by far the most popular) and give up on the webapp/webapp2 tradition. If writing an App Engine app from scratch, that might be simplest; an improved webapp2, however, might make it easier to port existing webapp2 projects from Python 2.7 to 3.7 (though other issues such as ndb may loom larger; for that, maybe https://github.com/Bogdanp/anom-py might be of some help).


Alex


--
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/5789e86d-f763-4b47-b81e-f0323968d91b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages