A simple, fast webserver that is mostly customizable. Includes websockets.
Project description
master:
dev:
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.6.tar.gz
(15.5 kB
view hashes)
Built Distribution
LiteSpeed-1.0.6-py3-none-any.whl
(19.8 kB
view hashes)
Close
Hashes for LiteSpeed-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fdde54d6f9e66f2c324e97780adfa4114f1e16f3226f592d2149cd83ca58ce5 |
|
MD5 | 175c0e3a8e30281a79735d638994806f |
|
BLAKE2b-256 | 6811c5657694cec1532f44650fd6259a0b903765b049b8299356b2cad37bf212 |