https://github.com/timeplus-io/livepeer-source
demo how to create a livepeer source
https://github.com/timeplus-io/livepeer-source
Last synced: 4 months ago
JSON representation
demo how to create a livepeer source
- Host: GitHub
- URL: https://github.com/timeplus-io/livepeer-source
- Owner: timeplus-io
- License: apache-2.0
- Created: 2023-07-09T18:09:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T19:13:39.000Z (almost 3 years ago)
- Last Synced: 2025-05-30T18:07:26.015Z (about 1 year ago)
- Language: HCL
- Size: 12.7 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# livepeer-source
demo how to create a livepeer source
### configuration
here is sample of environement settings
```bash
export TIMEPLUS_API_KEY=
export LIVEPEER_API_KEY=
export TIMEPLUS_ADDRESS=https://us.timeplus.cloud/workspace-id
```
### run
after install all the dependency, run main.py which will create a versioned kv stream and a livepeer data source.
```
pip install -r requirements.txt
python main.py
```
### how does live peer source works.
the current livepeer source will periodically call live peer api to get all the metrics data, in a hourly timestep for all the dimensions. it will get the 7 days historical data in first call and then incrementally retrieved the updated data. duplicated data will be merged by the version kv.