beam-extended-0.1.0
توضیحات
Extend Apache Beam python API with new modules
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | beam-extended-0.1.0 |
| نام | beam-extended |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Pascal Gula |
| ایمیل نویسنده | pascal@plantix.net |
| آدرس صفحه اصلی | https://github.com/PEAT-AI/beam-extended |
| آدرس اینترنتی | https://pypi.org/project/beam-extended/ |
| مجوز | - |
# beam-extended package
Provide extensions to existing SDKs (mainly Python)
It currently contains:
- mongoDB IO Connector
## Installation
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 beam_extended.io.mongodbio 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'))
## Publishing
Run the `pypi.sh` script.
## Credits
Based on:
https://gist.github.com/dlebech/e9d6ba266014db8783dbbeb362593020 by David Volquartz Lebech
and
https://gist.github.com/sandboxws/08b9c5e373b94056733f8a662d9a2fa2 by Ahmed El.Hussaini
نحوه نصب
نصب پکیج whl beam-extended-0.1.0:
pip install beam-extended-0.1.0.whl
نصب پکیج tar.gz beam-extended-0.1.0:
pip install beam-extended-0.1.0.tar.gz