Django Cheroot provides a bridge to use Cheroot which is the high-performance, pure-Python HTTP server used by CherryPy
Project description
Django Cheroot
Django Cheroot provides a bridge to use Cheroot which is the high-performance, pure-Python HTTP server used by CherryPy.
Alternative for other WSGI servers like Gunicorn, etc.
Install
pip install django-cheroot
In settings.py
add application to INSTALLED_APPS
INSTALLED_APPS = [
...
'django_cheroot',
]
Usage
Simplest usage with default settings is:
python manage.py cheroot
Default arguments
python manage.py cheroot -h 127.0.0.1 -p 8000 -w 40 -t 30 -c 20
python manage.py cheroot --host 127.0.0.1 --port 8000 --maxthreads 40 --minthreads 30 --connections 20
Arguments
Name | Short | Long | Type | Default |
---|---|---|---|---|
IP Address | -ip | --hostip | str | 127.0.0.1 |
Port | -p | --port | int | 8000 |
Max Worker Threads | -w | --maxthreads | int | 40 |
Min Threads in Thread Pool | -t | --minthreads | int | 30 |
Max Queued Connections | -c | --connections | int | 20 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-cheroot-1.0.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for django_cheroot-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f39920584b8c8b66cf8eecae883c1fc3d6d09ce0fa53e03dc7304d1115efb7d |
|
MD5 | a7079f028b64e47318cded55b65a4ba8 |
|
BLAKE2b-256 | 4aa5e8fee3637d13da68b5c2817ec3a6953032af1771c94ef72e823f65d8ad85 |