Skip to main content

Simple web server for micropython

Project description

uWebServer

Simple, fast and memory efficient web server for MicroPython.

✅ Features

  • Compatible with CPython.
  • Type hints.
  • Static files with GZip compression.

✏️ Examples

import asyncio

# Importing `Request` and `Response` optional, used for typehinting
from uwebserver import Request, Response, WebServer

app = WebServer()


@app.route("/")
def hello(req: Request, resp: Response):
    return "Hello world!"


asyncio.run(app.run())

Check out 📁examples for more

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.3.2.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distribution

uwebserver-0.3.2-py3-none-any.whl (6.9 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