The impossibly small web framework for Python and MicroPython.
  • Python 99.3%
  • Shell 0.5%
  • Dockerfile 0.2%
Find a file
2026-08-09 12:20:10 +01:00
.github Remove failing codecov service 2026-08-09 12:20:10 +01:00
bin update micropython binary 2026-04-24 19:56:21 +01:00
docs Minor documentation fixes 2026-03-10 23:30:38 +00:00
examples Bump h2 from 4.3.0 to 4.4.1 in /examples/benchmark (#369) #nolog 2026-08-08 18:53:39 +01:00
libs update micropython binary 2026-04-24 19:56:21 +01:00
src/microdot Release 2.6.2 2026-05-12 20:19:36 +01:00
tests Support GET requests in multipart routes (Fixes #364) 2026-05-12 20:12:30 +01:00
tools update micropython binary 2026-04-24 19:56:21 +01:00
typings update typing stubs 2026-04-24 20:02:59 +01:00
.gitattributes switch to GitHub actions for builds 2021-02-06 12:01:11 +00:00
.gitignore add tox to dev dependencies 2024-08-15 20:40:54 +01:00
.readthedocs.yaml Add readthedocs config file 2023-06-20 12:34:59 +01:00
CHANGES.md Release 2.6.2 2026-05-12 20:19:36 +01:00
LICENSE Initial commit 2019-04-16 12:00:41 +01:00
MANIFEST.in Migrate Python package metadata to pyproject.toml 2023-10-15 12:51:27 +01:00
pyproject.toml Release 2.6.2 2026-05-12 20:19:36 +01:00
README.md Add type hints (#355) 2026-03-08 12:54:18 +00:00
run_tests.py Circuitpython build 2024-01-31 23:43:17 +00:00
SECURITY.md Add security policy 2021-09-27 13:57:04 +01:00
tox.ini Add type hints (#355) 2026-03-08 12:54:18 +00:00

microdot

Build status codecov

“The impossibly small web framework for Python and MicroPython”

Microdot is a minimalistic Python web framework inspired by Flask. Given its small size, it can run on systems with limited resources such as microcontrollers. Both standard Python (CPython) and MicroPython are supported.

from microdot import Microdot

app = Microdot()

@app.route('/')
async def index(request):
    return 'Hello, world!'

app.run()

Resources

The following links are for version 1 of Microdot:

Note that version 1 is no longer maintained, so you should consider migrating to version 2. See the migration notes for help.

Roadmap

The following features are planned for future releases of Microdot, both for MicroPython and CPython:

  • Authentication support, similar to Flask-Login for Flask (Added in version 2.1)
  • Support for forms encoded in multipart/form-data format (Added in version 2.2)
  • CSRF protection extension (Added in version 2.5)
  • Type hints (Added in version 2.6)
  • Pub/sub mini-framework for WebSocket and SSE
  • OpenAPI integration, similar to APIFairy for Flask

Do you have other ideas to propose? Let's discuss them!