django-grip
Django GRIP library
Decision gist · record as of 2026-08-14
Yes, if you have a GRIP proxy (Pushpin or Fastly Fanout) already deployed and need to add real-time features to Django. The middleware is straightforward to integrate and offloads connection management cleanly. No, if you lack the proxy infrastructure or prefer a self-contained solution—the external dependency is non-negotiable. The aging release cycle (508 days since last update) is acceptable for stable middleware but warrants checking compatibility with your Django version before committing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running GRIP proxy (Pushpin or Fastly Fanout) configured and accessible at the GRIP_URL; Django app will not handle long-lived connections without it.
- High install friction; no runtime dependencies but requires external GRIP proxy infrastructure (Pushpin or Fastly Fanout) to function.
- Package is aging (last release 508 days old) but repository is active and not archived.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
last release 2025-03-24 (508 days) · last repo commit 2025-03-24 · 86 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 78,183 downloads/mo, #14,463 on PyPI
Alternatives
Verify before relying
pip install django-grip
# In settings.py:
MIDDLEWARE = ['django_grip.GripMiddleware', ...]
GRIP_URL = 'http://localhost:5561'
# In views.py:
from django_grip import set_hold_stream, publish
def myendpoint(request):
if not request.grip_proxied:
return HttpResponse('Not Implemented', status=501)
resp = HttpResponse('[stream open]\n')
set_hold_stream(request, 'test')
return resp- Minimum Python version and Django version compatibility (requires_python is unspecified in metadata)
- Whether the package works with current Django LTS versions
- Performance characteristics and scalability limits for high-concurrency scenarios
What it is and what it does
Django GRIP is middleware that bridges Django applications with external GRIP-compatible proxies like Pushpin or Fastly Fanout. Instead of holding connections in your Django process, the middleware delegates long-lived HTTP and WebSocket connections to a specialized proxy, freeing your application to handle requests more efficiently. The proxy manages the actual connection lifetime while your Django views respond quickly and let the middleware handle the protocol translation.
You configure it by adding GripMiddleware to your Django settings and pointing it at your GRIP proxy via GRIP_URL. Your views then use helper functions to subscribe clients to channels or broadcast updates. The middleware handles parsing GRIP headers, converting WebSocket-Over-HTTP events, and managing subscriptions—your code sees a simplified interface while the proxy handles the heavy lifting of keeping connections alive.
Use it for
- Build HTTP streaming endpoints that push data to many clients without blocking Django worker processes
- Implement long-polling endpoints that hold client requests until data changes, then deliver updates efficiently
- Create WebSocket-like bidirectional communication in Django without running a separate WebSocket server
- Scale real-time features across multiple Django instances by offloading connection management to a proxy layer
- Reduce memory and CPU overhead by delegating connection hold-time to a specialized proxy
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a GRIP proxy (Pushpin or Fastly Fanout) already deployed and need to add real-time features to Django.
The middleware is straightforward to integrate and offloads connection management cleanly. No, if you lack the proxy infrastructure or prefer a self-contained solution—the external dependency is non-negotiable. The aging release cycle (508 days since last update) is acceptable for stable middleware but warrants checking compatibility with your Django version before committing.
Install
django-grip on PyPI
Before you install
High install friction; no runtime dependencies but requires external GRIP proxy infrastructure (Pushpin or Fastly Fanout) to function. Package is aging (last release 508 days old) but repository is active and not archived.
Requires a running GRIP proxy (Pushpin or Fastly Fanout) configured and accessible at the GRIP_URL; Django app will not handle long-lived connections without it.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install django-grip
# In settings.py:
MIDDLEWARE = ['django_grip.GripMiddleware', ...]
GRIP_URL = 'http://localhost:5561'
# In views.py:
from django_grip import set_hold_stream, publish
def myendpoint(request):
if not request.grip_proxied:
return HttpResponse('Not Implemented', status=501)
resp = HttpResponse('[stream open]\n')
set_hold_stream(request, 'test')
return resp
Verify before relying
- Minimum Python version and Django version compatibility (requires_python is unspecified in metadata)
- Whether the package works with current Django LTS versions
- Performance characteristics and scalability limits for high-concurrency scenarios
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Aging 508 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 78,183 / month, #14,463 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseTopic :: Utilities |
Evidence: django-grip-3.5.2.tar.gz
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 websocket proxy”
- django-gripIntegrates Django with GRIP-compatible proxies (Pushpin, Fastly…
- daphneDaphne is an ASGI server that handles HTTP, HTTP/2, and WebSocket…
- websockets-proxyEnables WebSocket connections through HTTP and SOCKS proxies by…
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 gripcontrol · django-eventstream · grip · websockets-proxy · bottle-websocket · channels · jupyter-http-over-ws · daphne · django-cors-headers · pyop