Dead-simple Server-Sent Events for Django via a single decorator.
Project description
from django_flosse import sse_stream
@sse_stream
def live_feed(request):
for item in my_data_source():
yield ("update", {"value": item})
Installation
pip install django-flosse
No changes to INSTALLED_APPS are required.
Documentation
Full documentation at youssufshakweh.github.io/django-flosse
Contributing
git clone https://github.com/youssufshakweh/django-flosse
cd django-flosse
pip install -e ".[test]"
pytest
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_flosse-0.2.0a1.tar.gz
(22.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_flosse-0.2.0a1.tar.gz.
File metadata
- Download URL: django_flosse-0.2.0a1.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfcdcf0f726353ecba76c49b90c0599f4f0364a1f86a031805b90053f1cc57fa
|
|
| MD5 |
fbf32b1c72622ce59d6deb9045ce8c09
|
|
| BLAKE2b-256 |
9187bd264569b370b4cb8994b2152cf6a4c322fc2c226b44ea03ff1975795511
|
File details
Details for the file django_flosse-0.2.0a1-py3-none-any.whl.
File metadata
- Download URL: django_flosse-0.2.0a1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28f8278f344fd5cde3f5ae998cb7e40a21fc6475fe92a4ad6a7e5ba970aaa45c
|
|
| MD5 |
e27860922acd3c141832d0e14688ef78
|
|
| BLAKE2b-256 |
07b035e2876cebef4edadd67edb7f97deba1090fbca52e70c998358364127c42
|