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.1.3.tar.gz
(16.7 kB
view hashes)
Built Distribution
LiteSpeed-1.1.3-py3-none-any.whl
(21.0 kB
view hashes)
Close
Hashes for LiteSpeed-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b5be520098dda6585d06aa94c4674743bcca46d23acb2b9f6b83f68a8905479 |
|
MD5 | 4f66948613873729d5cc11d6c5cba911 |
|
BLAKE2b-256 | 0aa1a8f57bb26d2fea752e55ec952249fe979579e43c53b7bfedb6c1ddb2f390 |