A simple, fast webserver that is mostly customizable
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.2.tar.gz
(15.0 kB
view hashes)
Built Distribution
LiteSpeed-1.0.2-py3-none-any.whl
(19.3 kB
view hashes)
Close
Hashes for LiteSpeed-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20791f8991a2908b330157d1488fafba64720c6cf155c98269d759d11359526 |
|
MD5 | d67bed683e1693223235e1d5479a14e3 |
|
BLAKE2b-256 | a13b73b1854f74f44970affd43a4b4662b481c693cb29162547af1582a18ea22 |