A simple, fast webserver that is mostly customizable. Includes websockets.
Project description
master:
LiteSpeed
Just a simple-fast-multithreading webserver that is mostly customizable and only relies on pure python 3.6+. Has support for Cookies, Sessions, Websockets and serving files. It is similar to flask.
Has a built in rendering system using the render method. A complicated example of this is the html/500.html file
Installation
pip install LiteSpeed
Usage
Any function with a route decorator must follow one of the following return patterns:
- render(filename, dict)
- static(filename)
- str or bytes (body)
- str or bytes (body), int (status code)
- str or bytes (body), int (status code), dict (headers)
~~test~~ (for example)
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
LiteSpeed-1.0.7.tar.gz
(15.6 kB
view hashes)
Built Distribution
LiteSpeed-1.0.7-py3-none-any.whl
(19.9 kB
view hashes)
Close
Hashes for LiteSpeed-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec7102816d6e1b50af02fa0f2a8471ef5c8832e7feff4dea0b23189c01fac1d7 |
|
MD5 | 184bc3dd41a41dcb5adf862f7e55bd20 |
|
BLAKE2b-256 | 37824d48b2c41e928565c4980405a3af56dfdee633def6b4983c44609b2812c4 |