Skip to main content

Pure python web server, based on Twisted, providing the One Obvious Way to do async and offbeat network traffic with django and other WSGI apps.

Project description

Mr. D. Reinhardt, with a pair of guitars and tatters of sheet music in the back seat, speeds his convertible westward over the mountains. The campfire carries on without the blessing of his gypsy jazz, but his morning return is as a fearsome, left-handed character – familiar but Twisted (.py)

hendrix

v4.0.0

A Python web server that makes async and offbeat network traffic easy, fun, and fast.

Gitter Build StatusLatest Docs

Overview

hendrix is a tool for handling bytes-on-the-wire to and from your python web application. In this sense, it is similar to mod_wsgi, uWSGI, and gunicorn.

However, hendrix differs from these other technologies in that it is natively asynchronous and designed with background tasks in mind. In this sense, it may serve some projects as a replacement for gevent or celery.

hendrix implements the WSGI protocol, so it can serve applications made with django, pyramid, flask and other WSGI frameworks. However, hendrix views your web as just another network resource - in fact, this is central to the hendrix philosophy.

Twisted is one of the most battle-tested and actively developed Python projects. Until hendrix, however, Twisted has not been part of a mainstream python web server. And that's a shame.

Features

  • Multi-processing - The WSGI app can be served from multiple processes on a single machine.
  • Multi-threading from within your Django / Flask / Pyramid app: Various APIs allow you to defer logic until later, place it in a different thread or process, and report back asynchronously. For example, see crosstown_traffic.
  • Built-in Websockets Framework
  • Optional Resource Caching
  • Built-in SSL Support: Terminate SSL inside your app if you like. Public keys can be part of your logic!
  • Daemonize by passing the -d or --daemonize flags to hx

Quickstart

Using pip

pip install hendrix

Running the Development Server

cd to the directory where your manage.py file is located and...

hx start --dev

This is roughly the equivalent of running the django devserver.


For more, see the full hendrix documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hendrix-4.0.0.tar.gz (74.7 kB view details)

Uploaded Source

Built Distribution

hendrix-4.0.0-py3-none-any.whl (58.4 kB view details)

Uploaded Python 3

File details

Details for the file hendrix-4.0.0.tar.gz.

File metadata

  • Download URL: hendrix-4.0.0.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for hendrix-4.0.0.tar.gz
Algorithm Hash digest
SHA256 f3763afa82b8f82f1202b2476d992bf03dda974954080d76a4b2f2a98a664cb9
MD5 5e393f7adfda691f3c896e34af2e2a1b
BLAKE2b-256 b6abc626443ed3642756da2c87ad48a42c0c30220f92637a8c9aa4381d1a58e0

See more details on using hashes here.

File details

Details for the file hendrix-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: hendrix-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 58.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for hendrix-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebcae86f388cfcad0f5f60bf89eac0060a8e1230b2b3cbded80dcadf57ab4c09
MD5 b2a44fa0d6c76cbb1e934fdb4d0d6a09
BLAKE2b-256 e0c70cb4edff4fe4a7d8e9814306270a257596ee5e82f86713289b65cb40d7d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page