Class PythonSpec (1.122.0)

PythonSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specification for running a Python application from source.

Attributes

Name Description
version str
Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, default value is 3.10.
entrypoint_module str
Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent. If not specified, defaults to "agent". The project root will be added to Python sys.path, allowing imports to be specified relative to the root.
entrypoint_object str
Optional. The name of the callable object within the entrypoint_module to use as the application If not specified, defaults to "root_agent".
requirements_file str
Optional. The path to the requirements file, relative to the source root. If not specified, defaults to "requirements.txt".

Methods

PythonSpec

PythonSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specification for running a Python application from source.