Skip to main content

Dead-simple Server-Sent Events for Django via a single decorator.

Project description

django-flosse

django-flosse

Dead-simple Server-Sent Events for Django via a single decorator.

PyPI Python Django PyPI Downloads License Coverage Async Ready

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


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.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_flosse-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file django_flosse-0.2.0.tar.gz.

File metadata

  • Download URL: django_flosse-0.2.0.tar.gz
  • Upload date:
  • Size: 23.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

Hashes for django_flosse-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7e117fdea68472db560bf278b49d047181896fee3b5250563597b874b8c19e3e
MD5 1b3e0ee9bdc9afe2ddaa8136c7179f72
BLAKE2b-256 86be5b47be3bf432f9075da5c831cc635a8a4521e8c68b31b1d1137f5113aa14

See more details on using hashes here.

File details

Details for the file django_flosse-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_flosse-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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

Hashes for django_flosse-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce20ab9d99abe1d5781fd6767f8d7b13b1477fbc57bf8247f414b6a0d4640f8d
MD5 4e671576bccd8750226d6b9b01c0bda8
BLAKE2b-256 193fcc0229b370d6d70e05878dd943b56683a7d49ee3c9a671022385700c1e9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page