django-eventstream
Server-Sent Events for Django
Decision gist · record as of 2026-08-14
Yes, if you need real-time push notifications or live data streaming in Django without WebSockets. The package is actively maintained, has low install friction, uses a permissive MIT license, and requires only standard dependencies. It's well-suited for applications that need SSE but not the complexity of alternative infrastructure. Requires Python >=3.10.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10.
- An ASGI server must be configured as ASGI_APPLICATION in settings.py for production deployment.
- Low friction installation with a pure-Python wheel.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows commercial and private use with minimal restrictions; attribution required.
last release 2026-05-29 (77 days) · last repo commit 2026-07-23 · 865 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,297 downloads/mo, #14,010 on PyPI
Alternatives
Verify before relying
pip install django-eventstream
# In urls.py
from django.urls import path, include
import django_eventstream
urlpatterns = [
path("events/", include(django_eventstream.urls), {"channels": ["test"]}),
]
# Send events
from django_eventstream import send_event
send_event("test", "message", {"text": "hello world"})- Whether event storage persists for exactly 24 hours or if this is configurable.
- Whether Redis integration requires additional setup beyond the EVENTSTREAM_REDIS setting.
- Performance characteristics under high client connection counts or event throughput.
- Which ASGI server is recommended or required for production deployment.
What it is and what it does
Django EventStream is a Django app that streams data to connected clients using the Server-Sent Events protocol (SSE). Instead of clients polling for updates, they open a persistent HTTP connection and receive events as they occur. The package handles the streaming protocol, connection management, and event delivery, making it straightforward to add real-time capabilities to Django views.
It supports per-user channel permissions, optional event persistence to the database for reliable delivery after disconnections, and integration with Django REST Framework. For scaling across multiple instances, it can use Redis or a GRIP proxy to coordinate event delivery. The package depends on Django, PyJWT, gripcontrol, django_grip, and six.
Use it for
- Build a live notification feed where clients connect once and receive updates without polling.
- Stream real-time data to multiple connected browsers as events occur on the server.
- Implement a dashboard that updates automatically when backend data changes.
- Send event notifications from Django views to connected clients with reliable delivery.
- Create a live activity log or audit trail visible to multiple users simultaneously.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need real-time push notifications or live data streaming in Django without WebSockets.
The package is actively maintained, has low install friction, uses a permissive MIT license, and requires only standard dependencies. It's well-suited for applications that need SSE but not the complexity of alternative infrastructure. Requires Python >=3.10.
Install
django-eventstream on PyPI
Before you install
Low friction installation with a pure-Python wheel. Depends on Django, PyJWT, gripcontrol, django_grip, and six. Repository is active with recent commits and 865 stars; last release 77 days ago.
Requires Python >=3.10. An ASGI server must be configured as ASGI_APPLICATION in settings.py for production deployment.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions; attribution required.
Quickstart
pip install django-eventstream
# In urls.py
from django.urls import path, include
import django_eventstream
urlpatterns = [
path("events/", include(django_eventstream.urls), {"channels": ["test"]}),
]
# Send events
from django_eventstream import send_event
send_event("test", "message", {"text": "hello world"})
Verify before relying
- Whether event storage persists for exactly 24 hours or if this is configurable.
- Whether Redis integration requires additional setup beyond the EVENTSTREAM_REDIS setting.
- Performance characteristics under high client connection counts or event throughput.
- Which ASGI server is recommended or required for production deployment.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesDjangoPyJWTgripcontroldjango_gripsix |
| Maintenance | Actively maintained 77 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,297 / month, #14,010 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: DjangoLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Utilities |
Evidence: django_eventstream-5.3.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django server-sent events”
- django-eventstreamAdds Server-Sent Events (SSE) streaming to Django applications,…
- datastar-pyDatastar-py provides a Python SDK for building server-sent event…
- requests-sseProvides a Python client for consuming Server-Sent Events (SSE)…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also httpx-sse · channels · django-grip · requests-sse · sseclient-py · sse-starlette · aiohttp-sse-client · aiohttp-sse · smithy-aws-event-stream · pusher