I just realized that I have never written on this blog about Microdot, my very own web framework for Python. I have released Microdot 2.0 a few days ago, so I guess this is a good time to make a belated announcement, and tell you why this world needs yet another Python web framework.
But before I tell you about the reasons and the history of Microdot, let me share some of its features:
- Flask-like syntax, but without the magical/obscure parts (no application/request contexts)
- Small enough to work with MicroPython, while also being compatible with CPython
- Fully compatible with asyncio
- Websocket support
- Server-Sent Events (SSE) support
- Templating support with Jinja (CPython) and uTemplate (MicroPython)
- Cross-Origin Request Sharing (CORS) support
- User sessions stored on cryptographically signed cookies
- Uses its own minimal web server on MicroPython, and integrates with any ASGI or WSGI web servers on CPython
- Included test client to use in unit tests
Interested? Keep reading to learn more about Microdot.