Skip to main content

Extend Apache Beam python API with new modules

Project description

beam-extended package

Provide extensions to existing SDKs (mainly Python)

It currently contains:

  • mongoDB IO Connector


To install the package, please use the pip installation as follows:

pip install beam-extended

Note: currently, due to Apache Beam constraints, beam-extended is only available for Python 3.6.

Example Usage

Here is a short example of using the package.

from import ReadFromMongo, WriteToMongo
with beam.Pipeline(options=options) as pipeline:
    ( p | 'read' >> ReadFromMongo('myUrl1', 'myDb1', 'myColl1', query={}, projection=['_id'])
        | 'transform' >> beam.Map(transform)
        | 'save' >> WriteToMongo('myUrl2', 'myDb2', 'myColl2'))


Run the script.


Based on: by David Volquartz Lebech

and by Ahmed El.Hussaini

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beam-extended-0.1.0.tar.gz (5.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page