Metadata-Version: 2.1
Name: slimHTTP
Version: 1.0.1rc4
Summary: A minimalistic non-threaded HTTP server written in Python. Supports REST & WebSockets¹.
Home-page: https://github.com/Torxed/slimHTTP
Author: Anton Hvornum
Author-email: anton@hvornum.se
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# <img src="https://github.com/Torxed/slimHTTP/raw/master/docs/_static/slimHTTP.png" alt="drawing" width="200"/>
A simple, minimal and flexible Python HTTP server.<br>
Usecases may be: REST, WebSocketÂ¹, ~reverse proxy~ and static file delivery.

 * slimHTTP [documentation](https://slimhttp.readthedocs.io/en/master)
 * slimHTTP [discord](https://discord.gg/CMjZbwR) server

## Supports

 * REST routes *(`@http.route('/some/endpoint')`)*
 * websockets if `@http.on_upgrade` is defined using [spiderWeb](https://github.com/Torxed/spiderWeb) Â¹
 * Static file emulation with `@http.route('/example.html')`
 * vhosts
 * ssl/tls
 * reverse proxy
 * python module proxy
 * No threading or threads used *(fully relies on `epoll()` (`select()` on Windows))*
 * flexible configuration in runtime via `@http.configuration`

## Minimal example

```py
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.


