daphne
Django ASGI (HTTP/WebSocket) server
Decision gist · record as of 2026-08-14
Yes. Daphne is the reference ASGI server for Django Channels with active maintenance, no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building a Django Channels application or need an ASGI server with native WebSocket and HTTP/2 support. The only gotcha is the HTTP/2 requirement for OpenSSL 1.0.2+, which is standard on modern systems.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- HTTP/2 support requires OpenSSL 1.0.2 or greater and Twisted[tls,http2] installed separately.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
BSD (permissive) — BSD license (permissive) places no significant restrictions on use, modification, or distribution.
last release 2026-07-21 (24 days) · last repo commit 2026-07-21 · 2,679 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,048,311 downloads/mo, #1,977 on PyPI
Alternatives
Verify before relying
pip install daphne
# Point Daphne to your ASGI application:
daphne -b 0.0.0.0 -p 8001 django_project.asgi:application
# Or use a UNIX socket:
daphne -u /tmp/daphne.sock django_project.asgi:application- Performance characteristics and throughput capacity under load compared to other ASGI servers.
- Whether automatic protocol negotiation works reliably across all client types and edge cases.
- Production deployment best practices and recommended configurations for high-traffic scenarios.
What it is and what it does
Daphne is an ASGI server purpose-built for Django Channels that terminates HTTP, HTTP/2, and WebSocket connections. It automatically negotiates which protocol to use based on client requests, eliminating the need for URL-based routing to distinguish WebSocket from HTTP endpoints. The server is configured via command-line flags or Twisted endpoint description strings, supporting multiple binding modes: TCP ports, UNIX sockets, file descriptors passed from process managers, and TLS endpoints.
The package depends on asgiref, autobahn, and twisted. It supports Python 3.9 through 3.13 and is actively maintained as part of the Django Channels project. HTTP/2 support is available when Twisted's http2 and tls extras are installed and TLS is enabled; the server logs whether HTTP/2 support is active on startup. Daphne is typically deployed behind a reverse proxy for static file serving or as a standalone application server in containerized environments.
Use it for
- Running Django Channels applications that need to handle real-time WebSocket connections alongside standard HTTP requests.
- Deploying ASGI applications with HTTP/2 support when TLS is enabled and modern OpenSSL is available.
- Binding to UNIX sockets for inter-process communication with a reverse proxy or load balancer.
- Using automatic TLS certificate provisioning via txacme endpoint syntax for Let's Encrypt integration.
- Running inside process managers (systemd, supervisord) that pass file descriptors to the application.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Daphne is the reference ASGI server for Django Channels with active maintenance, no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building a Django Channels application or need an ASGI server with native WebSocket and HTTP/2 support. The only gotcha is the HTTP/2 requirement for OpenSSL 1.0.2+, which is standard on modern systems.
Install
daphne on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent release (24 days ago) and 2679 repository stars. Requires Python 3.9 or later; HTTP/2 support needs Twisted's http2 and tls extras plus OpenSSL 1.0.2 or greater.
Requires Python 3.9 or later. HTTP/2 support requires OpenSSL 1.0.2 or greater and Twisted[tls,http2] installed separately.
License in practice
BSD license (permissive) places no significant restrictions on use, modification, or distribution.
Quickstart
pip install daphne
# Point Daphne to your ASGI application:
daphne -b 0.0.0.0 -p 8001 django_project.asgi:application
# Or use a UNIX socket:
daphne -u /tmp/daphne.sock django_project.asgi:application
Verify before relying
- Performance characteristics and throughput capacity under load compared to other ASGI servers.
- Whether automatic protocol negotiation works reliably across all client types and edge cases.
- Production deployment best practices and recommended configurations for high-traffic scenarios.
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesasgirefautobahntwisted |
| Maintenance | Actively maintained 24 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,048,311 / month, #1,977 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP |
Evidence: daphne-4.2.3-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 › “ASGI server for Django”
- daphneDaphne is an ASGI server that handles HTTP, HTTP/2, and WebSocket…
- gunicornGunicorn is a WSGI and ASGI HTTP server for Unix that runs Python web…
- channelsChannels augments Django with WebSocket, long-poll HTTP, task…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also channels · uvicorn · channels-redis · asgiref · starlette · Hypercorn · autobahn · django-eventstream · granian · django-grip