The "impossibly small" Microdot web framework

https://news.ycombinator.com/rss Hits: 19
Summary

The Microdot web framework is quite small, as its name would imply; it supports both standard CPython and MicroPython, so it can be used on systems ranging from internet-of-things (IoT) devices all the way up to large, cloudy servers. It was developed by Miguel Grinberg, who gave a presentation about it at EuroPython 2025. His name may sound familiar from his well-known Flask Mega-Tutorial, which has introduced many to the Flask lightweight Python-based web framework. It should come as no surprise, then, that Microdot is inspired by its rather larger cousin, so Flask enthusiasts will find much to like in Microdot—and will come up to speed quickly should their needs turn toward smaller systems. We have looked at various pieces of this software stack along the way: Microdot itself in January 2024, MicroPython in 2023, and Flask as part of a look at Python microframeworks in 2019. Grinberg began his talk with an introduction. He has been living in Ireland for a few years and "I make stuff". That includes open-source projects, blog posts (on a Flask-based blog platform that he wrote), and "a bunch of books". He works for Elastic and is one of the maintainers of the Elasticsearch Python client, "so maybe you have used some of the things that I made for money". Why? With a chuckle, he asked: "Why do we need another web framework? We have so many already." The story starts with a move that he made to Ireland from the US in 2018; he rented a house with a "smart" heating controller and was excited to use it. There were two thermostats, one for each level of the house, and he was "really looking forward to the winter" to see the system in action. As might be guessed, he could set target temperatures in each thermostat; they would communicate with the controller that would turn the heating on and off as needed. In addition, the system had a web server that could be used to query various parameters or to start and stop the heaters. You could even send commands via SMS text mess...

First seen: 2025-09-07 08:39

Last seen: 2025-09-08 02:42