mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-07 22:40:49 +08:00
- examples/openbb-apachebeam/README.md: Fix test-run command to point to example tests directory, fix typos and grammar - examples/openbb-apachebeam/requirements.txt: Add core 'openbb' dependency required by example - examples/openbb-apachebeam/tests/test_obb_pipeline.py: Fix code formatting, fix 'Print nes' typo to 'Print news' Fixes #7181 Co-authored-by: Murat Aslan <murataslan1@users.noreply.github.com> Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
14 lines
665 B
Markdown
Vendored
14 lines
665 B
Markdown
Vendored
# OBB Dataflow Sample
|
|
|
|
This is a sample on how to invoke OBB fetchers in an Apache Beam pipeline. (GCP Dataflow is built on Apache Beam)
|
|
|
|
Pre-requisites
|
|
- You need to create a Conda environment (or a virtual env) using `requirements.txt` in this directory
|
|
- The script exercises three OBB endpoints, all of which require no credentials
|
|
- Run the test from this directory:
|
|
cd examples/openbb-apachebeam
|
|
python -m unittest tests/test_obb_pipeline.py
|
|
|
|
The script will run a pipeline consisting of three tasks which will fetch an AAPL quote, profile, and news.
|
|
This is just a very basic sample which can be used as a building block to create more complex scenarios
|