Skip to main content

A simple, fast webserver that is mostly customizable. Includes websockets.

Project description

master: Lint and Test: 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


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.2.0.tar.gz (17.5 kB view hashes)

Uploaded Source

Built Distribution

LiteSpeed-1.2.0-py3-none-any.whl (22.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page