Microdot is a small web framework designed for HTTP applications running on standard computers and resource-constrained devices. Its compact implementation allows it to operate in environments where larger web frameworks would require too much memory or supporting infrastructure.
The framework adopts a familiar route-based application model inspired by Flask. Developers associate functions with URL paths and return content directly from request handlers.
Microdot supports standard Python and MicroPython environments, making it useful for embedded devices, small web interfaces, local APIs and services running on conventional computers.
Its optional extensions provide additional functionality for applications that require templates, persistent sessions or real-time communication.
This is free and open source software.
Key Features
- HTTP request routing with dynamic URL parameters and method restrictions.
- Support for CPython and MicroPython environments.
- Asynchronous request handlers for non-blocking application operations.
- Request and response objects for HTTP headers, query parameters, forms and JSON data.
- Cookie handling and configurable session management.
- WebSocket extension for bidirectional communication.
- Server-Sent Events support for streaming application updates.
- Template rendering through optional Jinja and uTemplate integrations.
- Authentication and user session helper extensions.
- Cross-Origin Resource Sharing and Cross-Site Request Forgery protection extensions.
- Multipart form handling and file upload processing.
- Request hooks and custom HTTP error handlers.
- Application testing through an integrated test client.
- ASGI and WSGI integration for use with external application servers.
- Small framework footprint suitable for microcontrollers and other constrained environments.
Website: github.com/miguelgrinberg/microdot
Support:
Developer: Miguel Grinberg
License: MIT License
Microdot is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Best Python Micro Frameworks | |
|---|---|
| Flask | Hugely popular microframework based on Werkzeug and Jinja2 |
| FastAPI | Web framework for building APIs |
| Starlette | Lightweight ASGI framework/toolkit |
| aiohttp | Asynchronous HTTP client/server for asyncio and Python |
| Sanic | Web server and web framework |
| Falcon | Build cloud APIs, smart proxies, and app backends |
| Quart | Web microframework based on Asyncio |
| web.py | Minimalist Python web framework for building simple web apps |
| Pyramid | Start small, finish big, stay finished framework |
| Litestar | Powerful, lightweight, and flexible ASGI framework |
| Bottle | Fast, simple and lightweight WSGI micro web framework |
| Robyn | Python web framework designed for high performance |
| Chalice | Python Serverless Microframework for AWS |
| CherryPy | Mature, minimalist, Python object-oriented web framework |
| TurboGears | Hybrid framework acting as a Full Stack framework or Microframework |
| Microdot | Small web framework for Python and MicroPython |
| FastHTML | HTML-first Python framework for interactive web applications |
| BlackSheep | Asynchronous Python web framework |
| APIFlask | Flask-based API framework with validation and OpenAPI docs |
| Muffin | Lightweight asynchronous ASGI framework for Python web apps |
| Quixote | Aimed at sites where complex programming is required |
| Klein | Micro-framework for developing production-ready web services with Python |
| circuits | Lightweight event driven application framework |
| MicroPie | Ultra-micro ASGI Python web framework |
| Clastic | Functional web framework |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.