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.0a1.tar.gz (22.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.0a1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for django_flosse-0.2.0a1.tar.gz
Algorithm Hash digest
SHA256 cfcdcf0f726353ecba76c49b90c0599f4f0364a1f86a031805b90053f1cc57fa
MD5 fbf32b1c72622ce59d6deb9045ce8c09
BLAKE2b-256 9187bd264569b370b4cb8994b2152cf6a4c322fc2c226b44ea03ff1975795511

See more details on using hashes here.

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

Hashes for django_flosse-0.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 28f8278f344fd5cde3f5ae998cb7e40a21fc6475fe92a4ad6a7e5ba970aaa45c
MD5 e27860922acd3c141832d0e14688ef78
BLAKE2b-256 07b035e2876cebef4edadd67edb7f97deba1090fbca52e70c998358364127c42

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