Live data from Hacker News

Python 3 is now available on App Engine standard environment

cloud.google.com

41–50 of 84 posts

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

#41

Earlier quoted context omitted.

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.

Great! Thanks for your teams work so far.

Also I did find that someone wrote a ndb-like wrapper around the cloud datastore API. https://github.com/Bogdanp/anom-py I haven't tried it out yet.

Although i think any reasonable path to upgrading to 3.7 might need atleast some wrapper like that around the datastore(even if it's not 100% compatible), otherwise forcing people relying on that to re-write the entire data layer. At this point i might just start re-writing the app, to move to something with less lock-in like Mongodb. But i'd love to hear what other people's plans are for this.

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

#42

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

Is GRPC supported? My gut feelign is no, but I hope I am wrong

Edit: Holy shit this is so bittersweet. I was relying heavily on the batteries included user management, logging, admin only handlers, and especially the super easy cron job definitions.

IDK what to think about this. It kinda takes away all the things that made App Engine worth it for me as a programmer who doesnt want to do dev ops.

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

#43
post #40
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.

Any highlights of why 3.7 is significant vs 3.6,3.5,3.4?

If I had to guess, I'd say the most relevant changes for App Engine use may be the optimizations documented at https://docs.python.org/3/whatsnew/3.7.html#whatsnew37-perf : the `sort` method of lists about 50% faster in common cases, the `copy` method of dicts up to 5 times faster, etc.

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

#45
post #40
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.

Any highlights of why 3.7 is significant vs 3.6,3.5,3.4?

It took them so long, I think pointing out that it's 3.7 emphasizes that they're finally caught up.

In the context that it's taken them a decade to upgrade, just seeing "Python 3" makes me wonder if they're only supporting some ancient version like 3.4 or even 3.2.

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

#46

Earlier quoted context omitted.

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.

It is not possible to access Postgres based CloudSQL from Python on AppEngine standard. See here: https://cloud.google.com/sql/docs/postgres/connect-app-engin... Note that only node and Java are listed under non-Flex. I got burned by this and had to start over with MySQL.

> It is not possible to access Postgres based CloudSQL from Python on AppEngine standard.

It is possible on the new (beta) Python 3. 7 runtime on AppEngine standard:

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

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

#47

Earlier quoted context omitted.

Can I run pandas in it?

Yes, this runtime supports arbitrary dependencies specified via a `requirements.txt` file. If you find a library that doesn't work, please let us know. In general, anything that works using an open source Python 3.7 distribution should be supported.

Incidentally, the best way to "let us know" about bugs in GCP (App Engine or whatever else) is via the Issue Trackers, as per https://cloud.google.com/support/docs/issue-trackers (disclaimer: making this and similar processes work is my current job at Google).

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

#48

Earlier quoted context omitted.

It is not possible to access Postgres based CloudSQL from Python on AppEngine standard. See here: https://cloud.google.com/sql/docs/postgres/connect-app-engin... Note that only node and Java are listed under non-Flex. I got burned by this and had to start over with MySQL.

> It is not possible to access Postgres based CloudSQL from Python on AppEngine standard. It is possible on the new (beta) Python 3. 7 runtime on AppEngine standard: https://cloud.google.com/appengine/docs/standard/python3/usi...

Then they should update their docs.

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

#49

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

Is GRPC supported? My gut feelign is no, but I hope I am wrong Edit: Holy shit this is so bittersweet. I was relying heavily on the batteries included user management, logging, admin only handlers, and especially the super easy cron job definitions. IDK what to think about this. It kinda takes away all the things that made App Engine worth it for me as a programmer who doesnt want to do dev ops.

AFAIK you can't run a gRPC server on App Engine, but you can access other gRPC services (like all the GCP APIs) as a client. I might be wrong about the server part.

All those things you mentioned in the edit should be supported in the new runtime.

Edit: I see what you mean. The deeply integrated services are removed in favor of more portable solutions, like Logging moving to Stackdriver Logging (though stdout is still logged automatically), Users moving to Firebase Auth, etc. Cron should still work fine though.

(I work for GCP)

Post reply on HN