https://github.com/labteral/stopover-python
Python client for Stopover
https://github.com/labteral/stopover-python
python-sdk stream-processing
Last synced: 9 months ago
JSON representation
Python client for Stopover
- Host: GitHub
- URL: https://github.com/labteral/stopover-python
- Owner: labteral
- License: apache-2.0
- Created: 2020-05-13T08:59:52.000Z (over 5 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-10T01:01:51.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T20:42:39.735Z (10 months ago)
- Topics: python-sdk, stream-processing
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Python client for Stopover
# Installation
```bash
pip install stopover
```
# Usage
```python
from stopover import Stopover
endpoint = 'http://localhost:5704'
receiver_group = 'group0'
stream = 'stream0'
stopover = Stopover(endpoint)
index = 0
stopover.put(f'hi {index}', stream)
for message in stopover.listen(stream, receiver_group):
stopover.commit(message, receiver_group)
stopover.put(f'hi {index}', stream)
index += 1
```
