Skip to main content

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


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)

Uploaded Source

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