Minimalistic core for webserver on microcontroler
Project description
The catch
The frist start for every webserver is routing and parsing html. This is the core.
Routing
Router objects are simple and are input to the server instances. Example:
from userv.routing import Router router = Router() def test(writer, request): pass router.add("/resturl", test, method="GET")
you can get function test again with:
router.get('/resturl', method="GET")
for creating swagger and so on there is a also a list command:
router.list()
With these object all server are instances and we have full controll even without an server instance.
Further packages & webserver
Atm there is an implementation for an socketserver which runs even on on esp8266:
pip install userv.socket_server
And an async server with the same interface.:
pip install userv.async_server
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
userv-0.2.0.tar.gz
(2.7 kB
view hashes)