Quickstart: Google Cloud Pipeline Components

This quickstart guides you through the installation of theGoogle Cloud Pipeline Components (GCPC) SDK.

Install latest release

Use the following command to install the Google Cloud SDK from the PythonPackage Index (PyPI):

pipinstall--upgradegoogle-cloud-pipeline-components

Import a prebuilt component by using the Google Cloud SDK

After you install the Google Cloud SDK, you can use it to import aprebuilt component.

For SDK reference information for supported components, seetheGoogle Cloud SDK documentation.

For example, you can use the following code to import and use theDataflow component in a pipeline.

fromgoogle_cloud_pipeline_components.v1.dataflowimportDataflowPythonJobOpfromkfpimportdsl@dsl.pipeline(name=PIPELINE_NAME,description='Dataflow launch python pipeline')defpipeline(python_file_path:str='gs://ml-pipeline-playground/samples/dataflow/wc/wc.py',project_id:str=PROJECT_ID,location:str=LOCATION,staging_dir:str=PIPELINE_ROOT,requirements_file_path:str='gs://ml-pipeline-playground/samples/dataflow/wc/requirements.txt',):dataflow_python_op=DataflowPythonJobOp(project=project_id,location=location,python_module_path=python_file_path,temp_location=staging_dir,requirements_file_path=requirements_file_path,args=['--output',OUTPUT_FILE],)

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-18 UTC.