Live data from Hacker News

Python 3 is now available on App Engine standard environment

cloud.google.com

21–30 of 84 posts

Re: Python 3 is now available on App Engine standard environment

#21

Hi all, Product Manager for App Engine here. Happy to answer any questions about Python 3 on the App Engine standard environment.

Are there any billing changes for apps previously running within the free tier in standard environment?

There are no changes to the free tier[1] or to apps running using the existing Python 2.7 runtime in the standard environment.

[1] You can use the free tier with the new Python 3.7 runtime.

Re: Python 3 is now available on App Engine standard environment

#22

Hi all, Product Manager for App Engine here. Happy to answer any questions about Python 3 on the App Engine standard environment.

The (datastore) client libraries take up the http request quota and the build-in mechanism of the Standard Environment is not. Google recommends going forward with client libraries everywhere in the documentation but what's the solution on the introduced request limitation which isn't mentioned anywhere? (Or is this finally fixed in the meanwhile?)

I'm not aware of this issue. Can you point me to a public bug/GitHub issue?

Re: Python 3 is now available on App Engine standard environment

#23

Hi all, Product Manager for App Engine here. Happy to answer any questions about Python 3 on the App Engine standard environment.

Would the python3 runtime support things like ndb, taskqueue, memcache modules? We have a python2.7 standard app in production. It would be a considerable re-write if we had to move away from ndb and taskqueue.

https://cloud.google.com/appengine/docs/standard/python3/pyt...

it doesn't.

"The ndb ORM library is not available for Python 3. You can access Cloud Datastore through the Cloud Datastore API. You can use the Google Cloud client libraries to store and retrieve data from Cloud Datastore."

Re: Python 3 is now available on App Engine standard environment

#24

Hi all, Product Manager for App Engine here. Happy to answer any questions about Python 3 on the App Engine standard environment.

Would the python3 runtime support things like ndb, taskqueue, memcache modules? We have a python2.7 standard app in production. It would be a considerable re-write if we had to move away from ndb and taskqueue.

We're working on suitable replacements for these services. In some cases, e.g., Cloud Tasks, we're pretty close. Others will take a little longer. We'll share updates as we make more of these services available.

Re: Python 3 is now available on App Engine standard environment

#25
> At this time, the original App Engine-only APIs are not available in Second Generation runtimes, including Python 3.7.

This means that if you already have a significant app running on Appengine Standard, none of the built-in APIs are supported (memcache, images, search, task queues, email, etc). That's a significant blocker to anyone wanting to upgrade their existing Standard 2.7 app to 3.7.

Re: Python 3 is now available on App Engine standard environment

#26

> At this time, the original App Engine-only APIs are not available in Second Generation runtimes, including Python 3.7. This means that if you already have a significant app running on Appengine Standard, none of the built-in APIs are supported (memcache, images, search, task queues, email, etc). That's a significant blocker to anyone wanting to upgrade their existing Standard 2.7 app to 3.7.

Correct, but for us (migrating from AE Flex to Standard) it meant that it was working out of the box.

Re: Python 3 is now available on App Engine standard environment

#27

> At this time, the original App Engine-only APIs are not available in Second Generation runtimes, including Python 3.7. This means that if you already have a significant app running on Appengine Standard, none of the built-in APIs are supported (memcache, images, search, task queues, email, etc). That's a significant blocker to anyone wanting to upgrade their existing Standard 2.7 app to 3.7.

Correct, but for us (migrating from AE Flex to Standard) it meant that it was working out of the box.

It seems to me this product is mainly targeted at 1) new customers, and 2) AE Flex customers wanting to switch to Standard.

The third category (Existing 2.7 Standard customers wanting to just upgrade to 3.7 -- which is me unfortunately) are going to be disappointed and stuck in a hard place, I think.

Re: Python 3 is now available on App Engine standard environment

#28

Out of curiosity, why did this take 10 years?

Long story short: security is hard. Launching these new unmodified Second Generation runtimes required us to develop new security and isolation technology (based on gVisor [1]). This allows us to securely run arbitrary code on shared data centers with isolation guarantees. This took us significantly longer than expected. The good news is, now that we have this new stack in place, we should be able to deliver runtime…

In case anyone else is wondering why you'd not just use LXC:

https://cloud.google.com/blog/products/gcp/open-sourcing-gvi...

That said, they don't quite go into the details of what type of isolation is missing from standard containers - I'm curious. It does seem like it would have been ideal for everyone if LXC would have had better isolation, rather than having to run a userspace kernel emulator thingy for each container, but c'est la vie!

Re: Python 3 is now available on App Engine standard environment

#29

Hi all, Product Manager for App Engine here. Happy to answer any questions about Python 3 on the App Engine standard environment.

What is the access to your hosted postgres like? Do you still have to use that proxy thing? I'm wondering how much effort is require to move a sqlalchemy based app over to this.

Re: Python 3 is now available on App Engine standard environment

#30
post #19
post #16

I believe the title should be updated to say 3.7 as the article title does. The .7 is pretty significant to those who would be interested in this.

That may imply Python 3 earlier than 3.7 was on GAE, which is not the case.

perhaps, but python 3 is quite vague and 3.7 is very different from say 3.4. Saying it is 3.7 is of significant interest to me.
Post reply on HN