Microdot is apparently a Python web framework that runs on both CPython and MicroPython.
It is a single 765-line file with routing, JSON handling, cookies, streaming, and TLS. Created to provide a web server for IoT devices.
Microdot is apparently a Python web framework that runs on both CPython and MicroPython.
It is a single 765-line file with routing, JSON handling, cookies, streaming, and TLS. Created to provide a web server for IoT devices.
It’s great on esp32 with MicroPython. Even has support for server sent events (SSE). Paired with htmx, SSE gives some fun intetactive web experience for iot devices - instant GPIO status indicators etc. Loved tinkering with it. The source code is very readable too.
https://github.com/miguelgrinberg/microdot with MIT license