Class PythonPackageSpec (1.3.0)

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

The spec of a Python packaged code. .. attribute:: executor_image_uri

Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of pre-built containers for training <https://cloud.google.com/vertex-ai/docs/training/pre-built-containers>__. You must use an image from this list.

:type: str

Attributes

NameDescription
package_uris Sequence[str]
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
python_module str
Required. The Python module name to run after installing the packages.
args Sequence[str]
Command line arguments to be passed to the Python task.
env Sequence[google.cloud.aiplatform_v1.types.EnvVar]
Environment variables to be passed to the python module.

Inheritance

builtins.object > proto.message.Message > PythonPackageSpec