Hasty Briefsbeta

The "impossibly small" Microdot web framework

3 days ago
  • #web-framework
  • #IoT
  • #MicroPython
  • Microdot is a small web framework supporting both CPython and MicroPython, suitable for IoT devices to large servers.
  • Developed by Miguel Grinberg, inspired by Flask, making it familiar for Flask users.
  • Originated from Grinberg's need to control his home heating system in Ireland, leading to the creation of a web framework for MicroPython.
  • Microdot is fully asynchronous, uses Flask-style route decorators, and supports features like cookies, static files, and TLS.
  • Designed with a 'no dark magic' principle, explicitly passing request objects to route functions.
  • Core framework is extremely lightweight (765 lines of code), with extensions available for additional functionalities like WebSocket and authentication.
  • Documentation is comprehensive, with 100% test coverage and numerous examples.
  • Performance is limited on small devices, but optimized for minimal memory usage.