Runtime version of Google App Engine / Python Standard Environment

Summary of this article

With Google App Engine / Python ...

--The Python version of "Standard Environment" is 2.7.5 --The Python version of "Flexible Environment" is 2.7.9 (and 3.5.2)

(As of January 9, 2017)

Commentary

I was a little addicted to it, so I made a personal note.

There are two types of Google App Engine, "Standard Environment" and "Flexible Environment". I will omit the details, but there is Free quota for launching instances for 28 hours a day in "Standard Environment", and it is used for a while. If so, you can use "Standard Environment" for free.

So what version of Python can be used in the Runtime of each environment? If you look at, "Flexible Environment" is written in Documentation, but ... スクリーンショット 2017-01-09 15.34.26.png

There was no document about "Standard Environment", so I spit out "sys.version_info" in the log and checked it.

sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)

The Python version was 2.7.5.

(Added on 2018/03/24)

sys.version_info(major=2, minor=7, micro=12, releaselevel='final', serial=0)

So it seems that it has been updated to 2.7.12.


From here on, it's a personal addictive point.

When using hmac ...

If you want to compare the output of> digest () with an externally supplied digest in a validation routine, use compare_digest () instead of the == operator to reduce vulnerability to timing attacks. Is recommended.

However, this compare_digest () can be used after 2.7.7. Of course, using this method in the "Standard Environment" will result in an error.

Recommended Posts

Runtime version of Google App Engine / Python Standard Environment
About the virtual environment of python version 3.7
[Python] Run Flask on Google App Engine
Free Python runtime environment Google Colaboratory memo
[Detailed version] Creating a comfortable Python environment with Google Compute Engine (Ubuntu 16.04)
Tweet (API 1.1) on Google App Engine for Python
Unification of Python environment
(Beginner) Basic usage of Datastore on Google App Engine
PIL with Python on Windows 8 (for Google App Engine)
Getting Started with Google App Engine for Python & PHP
Google App Engine SDK / Go (Linux version) and Python installed by linuxbrew are incompatible
Various memorandums when using sdk of LINE Messaging API with Python (2.7.9) + Google App Engine
Version upgrade of python Anaconda
Check OpenSSL version of python 2.6
python standard virtual environment venv
[Python] Tuple version of prefecture pull-down
Environment construction of python and opencv
Virtual Environment Version Control Summary Python
Create another version of Python conda environment with one command line
Settings when writing Google App Engine / Python apps in Intellij Idea
pyenv-change the python version of virtualenv
Google App Engine development with Docker
Ideone> Python version: 3.5 (as of August 29, 2017)
Java 1 1 support from Google App Engine
Change the Python version of Homebrew
Environment construction of python3.8 on mac
Use ndb.tasklet on Google App Engine
Building a development environment with Maven on Google App Engine [Java]
Using properties files with Flexible Environment Java 8 on Google App Engine
[Google App Engine] Flow from development environment construction to application creation
Run Cloud Dataflow (Python) from App Engine
[Google App Engine] User Objects (Japanese translation)
[Python] Try pydash of the Python version of lodash
Use external modules on Google App Engine
UnicodeEncodeError struggle with standard output of python3
[Python coding standard] PEP 8 vs Google Style
Turn off optimization options in the Google App Engine Go development environment dev_appserver.py
Try the python version of emacs-org parser orgparse
Prepare the execution environment of Python3 with Docker
Python environment construction (Anaconda + VSCode) @ Windows10 [January 2020 version]
Unattended operation of Google Spreadsheets (etc.) in Python
Create an environment of 64bit Windows + python 2.7 + MeCab 0.996
Use multiple versions of python environment with pyenv
Use OpenSeesPy regardless of OS or Python version
Installation of Python3 and Flask [Environment construction summary]
python development environment -use of pyenv and virtualenv-
Build Python3 + flask environment on GCP Compute Engine
Google App Engine Datastore and Search API integration
Python version check V outputs standard error output
Comparison of Python and Ruby (Environment / Grammar / Literal)