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 | -h | --host | 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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for django_cheroot-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3de719a971635a20bc57fc32c4c8865f39af921d4c0151f281d3bee22410a7e8 |
|
MD5 | 390916ea7cba55db8e6b012ba3a9d53f |
|
BLAKE2b-256 | ff39dee638a27535d931923a95caa71e1c5b2bfe9079559c8c166e4d807b66c5 |