|python27 (deprecated)||2.7.17||Ubuntu 18.04 LTS|
|python37||3.7.6||Ubuntu 18.04 LTS|
|python37-preview||3.7.6||Ubuntu 18.04 LTS|
Note that the
python27 runtime environment is considered obsolete, since Python 2 is no longer supported by the community and is not updated.
The runtime environment has an SDK library installed by default to work with the Yandex.Cloud API. For more information about how to use the SDK, see Using the SDK.
When using the
python37-preview runtime, Cloud Functions automatically installs all declared dependencies required for the function to run. Dependencies are installed when creating a new function version. For more information, see Managing dependencies.
The runtime environment automatically loads your code and invokes the request handler you specified. It receives an incoming request and the invocation context as arguments. The context contains additional information about the function parameters.
Cloud Functions automatically captures an application's standard output streams and sends them to the centralized logging system available in Yandex.Cloud. This system also logs service records about the start and end of each function and any errors that occur during its execution. For more information about the log format, see Logging.
To learn more about how to write in Python or how certain statements work, see the official Python documentation.