Skip to main content

Simple web server for micropython

Project description

uWebServer

TODO: simple slogan

Features

  • Simple interface

Examples

import asyncio

from uwebserver import Request, Response, WebServer

app = WebServer()


@app.route("/")
async def hello(req: Request, resp: Response):
    resp.set_content_type("text/html")
    return "<h1>Hello World</h1>"


asyncio.run(app.run())

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

uwebserver-0.1.1.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

uwebserver-0.1.1-py3-none-any.whl (6.6 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