Skip to main content

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


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)

Uploaded Source

Built Distribution

django_cheroot-1.0.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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