modbender / django-cheroot

Django Cheroot provides a bridge to use Cheroot which is the high-performance, pure-Python HTTP server used by CherryPy

Home Page:https://pypi.org/project/django-cheroot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 -ip 127.0.0.1 -p 8000 -w 40 -t 30 -c 20
python manage.py cheroot --hostip 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

About

Django Cheroot provides a bridge to use Cheroot which is the high-performance, pure-Python HTTP server used by CherryPy

https://pypi.org/project/django-cheroot/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%