Contents

daphne 4.1.0

0

Django ASGI (HTTP/WebSocket) server

Django ASGI (HTTP/WebSocket) server

Stars: 2251, Watchers: 2251, Forks: 252, Open Issues: 44

The django/daphne repo was created 8 years ago and the last code push was 6 days ago.
The project is very popular with an impressive 2251 github stars!

How to Install daphne

You can install daphne using pip

pip install daphne

or add it to a project with poetry

poetry add daphne

Package Details

Author
Django Software Foundation
License
BSD
Homepage
https://github.com/django/daphne
PyPi:
https://pypi.org/project/daphne/
GitHub Repo:
https://github.com/django/daphne

Classifiers

  • Internet/WWW/HTTP
No  daphne  pypi packages just yet.

Errors

A list of common daphne errors.

Code Examples

Here are some daphne code examples and snippets.

GitHub Issues

The daphne package has 44 open issues on GitHub

  • pre-commit failing
  • Set a default Server header for HTTP responses
  • Add server header
  • Django Channels memory leaks on opening new connections
  • ASGI_THREADS environment variable has no effect since 2.4.1

See more issues on GitHub

Related Packages & Articles

bugsnag 4.6.2

Automatic error monitoring for django, flask, etc.

Authlib 1.3.0

The ultimate Python library in building OAuth and OpenID Connect servers and clients.

ariadne 0.23.0

Ariadne is a Python library for implementing GraphQL servers.

aiohttp 3.9.3

The aiohttp Python package is an asynchronous HTTP client/server framework that leverages Python's asyncio library. It supports both client and server sides of the HTTP protocol, as well as client and server websockets. The package provides a web server with middleware support and pluggable routing. This makes it a powerful tool for building efficient, non-blocking web applications in Python. It is highly recommended for projects where concurrent network or HTTP requests are a core requirement, and it is often used in web scraping, API consumption, and web development.

starlette 0.37.2

Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, ideal for building asynchronous web services in Python. It is production-ready and offers a range of features including HTTP web framework, WebSocket support, in-process background tasks, startup and shutdown events, and a test client built on HTTPX. Starlette also supports CORS, GZIP, static files, streaming responses, and session and cookie support. It is compatible with asyncio and trio backends and boasts great overall performance against independent benchmarks. The package can be used as a complete framework or as an ASGI toolkit, allowing for the use of any of its components independently. It requires Python 3.8+ and an ASGI server such as uvicorn, daphne, or hypercorn for operation.