Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.54 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.54 KB

Stopover Logo

Python client for Stopover

Downloads PyPi GitHub releases License

Buy Me A Coffee

Installation

pip install stopover

Usage

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