Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparing with other Yandex Cloud services
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ
  1. Developing in Python
  2. Overview

Developing in Python. Overview

Written by
Yandex Cloud
Improved by
Updated at February 7, 2025

With Cloud Functions, you can run applications written in Python.

The service provides several runtime environments with different versions. We do not recommend using obsolete versions of runtime environments.

Name Python version Operating
system
Preloaded Supported by
python37 3.7.13 Ubuntu 18.04 No No
python38 3.8.13 Ubuntu 18.04 No No
python39 3.9.11 Ubuntu 18.04 No No
python311 3.11.0 Ubuntu 18.04 Yes No
python312 3.12.0 Ubuntu 22.04 LTS Yes Yes

Note

Function behavior in preloaded and normal runtime environments may differ. Review the features of function behavior in Preloaded runtime environment.

By default, the python37 and python38 runtime environments have a built-in SDK library for Yandex Cloud API. For more information about how to use the SDK, see Using the SDK. You can install the SDK library to other runtime versions by specifying a dependency in requirements.txt.

Cloud Functions automatically installs all the specified dependencies required for the function to run. Dependencies are installed when creating a new function version. For more information, see Managing Python function 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 Python function runtime logging.

To learn more about developing in Python or how certain statements work, see the official Python documentation.

Was the article helpful?

Previous
Using the SDK
Next
Managing dependencies
© 2025 Direct Cursus Technology L.L.C.