Learn the fundamentals of creating, running, and managing Apache Beam pipelines.
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
# Configure pipeline options
options = PipelineOptions(runner="DirectRunner")
# Define and execute the pipeline
with beam.Pipeline(options=options) as p:
(p
| "Create Data" >> beam.Create(["A", "B", "C"])
| "Print" >> beam.Map(print))