$npx skillfedfor your agent

daphne

Django ASGI (HTTP/WebSocket) server

Worth itPyPI WWW/HTTPReleased Jul 20266.0M downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — daphne-4.2.3-py3-none-any.whl
v4.2.3 · released 2026-07-21 · Python >=3.9 · 3 runtime deps: asgiref, autobahn, twisted

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseBSD permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
asgirefautobahntwisted
MaintenanceActively maintained 24 days since the last release
Last repo commit
First released
Downloads6,048,311 / month, #1,977 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
ASGI server for DjangoHTTP WebSocket serverDjango Channels serverHTTP/2 protocol serverASGI application server
Topics
asgi-serverwebsocketdjango-channels

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 Worth it
PyPI · Libraries · released May 2026

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.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

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.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

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.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

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.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

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.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also channels · uvicorn · channels-redis · asgiref · starlette · Hypercorn · autobahn · django-eventstream · granian · django-grip