tree: 11e774e9bcaddf064347fa3efa65987ae2ad7271 [path history] [tgz]
  1. test/
  2. __init__.py
  3. chops_beam.py
  4. combine_fns.py
  5. objects.py
  6. README.md
common/README.md

The common module provides reusable classes for writing Dataflow workflows.

chops_beam

For easily constructing readable pipelines with standard defaults.

q = ('SELECT blah FROM `chrome-infra-events.raw_events.foo`')
p = chops_beam.EventsPipeline()
_ = (p
     | chops_beam.BQRead(q)
     | ... # do some transforms
     | chops_beam.BQWrite('some_table'))
p.run()

objects

Convenient classes for BigQuery tables. Can be used for reading from or writing to BigQuery.

for row in input_rows:
  event = objects.CQEvent.from_bigquery_row(row)

combine_fns

Generally useful Combine Functions.