cherrybone

CherryPy server made easier


License
GPL-3.0
Install
pip install cherrybone==0.0.5b0

Documentation

cherrybone

Usage

Instantiation Start server

from cherrybone import Server

server = Server(app, port=8080)

List of parameters:

port: int = 80
path: str = '/'
host: str = '0.0.0.0'
threads: int = multiprocessing.cpu_count()
max_body_bytes: int = 1073741824 # 1 GiB
max_header_bytes: int = 1048576 # 1 MiB
max_threads: int = -1
max_queued_connections: int = 10
connection_timeout: int = 10
max_queued_requests: int = -1
request_acceptance_timeout: int = 10
tcp_nodelay: bool = True
shutdown_timeout: int = 10

Start server

server.start()

Stop server

server.stop()