Caution
This repository has been replaced! New repository: https://github.com/sharly-project/ssec
Yet another client library for server-sent events (sse).
This package provides a modern client for server-sent events (sse).
The code is based on the standard specification[1] and was adapted for python. Althought there are serveral other implementations like [2] and [3], the goal of this package is to have a modern (2022 + Python3.10), thread-safe, well documented and feature-rich client. Also, these two packages have some corner-cases where they do not work properly.
This repository is under active maintainance. If you have any ideas, issues or contributions, let me know. Pull requests are welcome.
This package should be installable via pip:
pip install ssec
It might be the case that this package is currently not available on pip. If so, you can download this repositoy and run
cd INSTALL_PATH/ssec
pip install .
You can find simple examples in the example.py
.