A minimalistic non-threaded HTTP server written in Python. Supports REST & WebSockets¹.
Project description
A simple, minimal and flexible Python HTTP server.
Supports: REST, WebSocket¹, vhost
's, reverse proxy and static file delivery.
- slimHTTP documentation
- slimHTTP discord server
Features
- REST routes (
@http.route('/some/endpoint')
) - websockets using plugin spiderWeb ¹
- Can emulate files via
@http.route('/example.html')
- vhosts
- tls
- reverse proxy
.py
extensions in web-root/vhosts without having to use FastCGI- No threads used by default (fully relies on
epoll()
(select()
on Windows)) - flexible runtime configuration and re-configuration (using
@http.configuration
annotation to achieve this)
Minimal example
import slimHTTP
http = slimHTTP.host(slimHTTP.HTTP)
http.run()
Serves any files under /srv/http
by default in HTTP
mode.
Footnote
It's not pretty down here. But it'll do in a pinch.
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
slimHTTP-1.0.1rc5.tar.gz
(17.5 kB
view hashes)
Built Distribution
Close
Hashes for slimHTTP-1.0.1rc5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 871c2f98d454b1dfd59074dc9a9e898d1010f6ba86a838ac62ed83ae44df07fc |
|
MD5 | 33d748526d91494f911e354229ca75e0 |
|
BLAKE2b-256 | 72ff72d499ae78d845b4400e3e7ad457dd6e8732ffa5f954f4918fa9277d91b5 |