Metadata-Version: 2.1
Name: django-cheroot
Version: 1.0.2
Summary: Django Cheroot provides a bridge to use Cheroot which is the high-performance, pure-Python HTTP server used by CherryPy
Home-page: https://github.com/modbender/django-cheroot
Author: Yashas H R
Author-email: rameshmamathayashas@gmail.com
Platform: any
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: django (>=2.2.24)
Requires-Dist: cheroot (>=8.2.1)

# Django Cheroot

Django Cheroot provides a bridge to use [Cheroot](https://github.com/cherrypy/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`

```python
INSTALLED_APPS = [
  ...
  'django_cheroot',
]
```

## Usage

Simplest usage with default settings is:

```shell
python manage.py cheroot
```

Default arguments

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