Microdot – lightweight web framework for Python and MicroPython

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
FlaskHugely popular microframework based on Werkzeug and Jinja2
FastAPIWeb framework for building APIs
StarletteLightweight ASGI framework/toolkit
aiohttpAsynchronous HTTP client/server for asyncio and Python
SanicWeb server and web framework
FalconBuild cloud APIs, smart proxies, and app backends
QuartWeb microframework based on Asyncio
web.pyMinimalist Python web framework for building simple web apps
PyramidStart small, finish big, stay finished framework
LitestarPowerful, lightweight, and flexible ASGI framework
BottleFast, simple and lightweight WSGI micro web framework
RobynPython web framework designed for high performance
ChalicePython Serverless Microframework for AWS
CherryPyMature, minimalist, Python object-oriented web framework
TurboGearsHybrid framework acting as a Full Stack framework or Microframework
MicrodotSmall web framework for Python and MicroPython
FastHTMLHTML-first Python framework for interactive web applications
BlackSheepAsynchronous Python web framework
APIFlaskFlask-based API framework with validation and OpenAPI docs
MuffinLightweight asynchronous ASGI framework for Python web apps
QuixoteAimed at sites where complex programming is required
KleinMicro-framework for developing production-ready web services with Python
circuitsLightweight event driven application framework
MicroPieUltra-micro ASGI Python web framework
ClasticFunctional web framework

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted