The impossibly small web framework for MicroPython
Project description
microdot
“The impossibly small web framework for Python and MicroPython”
Microdot is a minimalistic Python web framework inspired by Flask. Given its small size, it can run on systems with limited resources such as microcontrollers. Both standard Python (CPython) and MicroPython are supported.
from microdot import Microdot
app = Microdot()
@app.route('/')
async def index(request):
return 'Hello, world!'
app.run()
Migrating to Microdot 2
Version 2 of Microdot incorporates feedback received from users of earlier releases, and attempts to improve and correct some design decisions that have proven to be problematic.
For this reason most applications built for earlier versions will need to be updated to work correctly with Microdot 2. The Migration Guide describes the backwards incompatible changes that were made.
Resources
- Change Log
- Documentation
Roadmap
The following features are planned for future releases of Microdot, both for MicroPython and CPython:
- Support for forms encoded in
multipart/form-data
format - Authentication support, similar to Flask-Login for Flask
- OpenAPI integration, similar to APIFairy for Flask
In addition to the above, the following extensions are also under consideration, but only for CPython:
- Database integration through SQLAlchemy
- Socket.IO support through python-socketio
Do you have other ideas to propose? Let's discuss them!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file microdot-2.0.7.tar.gz
.
File metadata
- Download URL: microdot-2.0.7.tar.gz
- Upload date:
- Size: 62.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 390ee84a85c6cd0637e545eb3c041c8b66aeba4216bad535ed59ea201d53ff05 |
|
MD5 | 1b95688f133d1d850c17cbb04caf90cb |
|
BLAKE2b-256 | 2547d3ddab8ecfee2587cbd46fffa19ff7070ee551a75f2e50b03076bdb73d24 |
File details
Details for the file microdot-2.0.7-py3-none-any.whl
.
File metadata
- Download URL: microdot-2.0.7-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5423a3d8e92a1a2d30072ac2525455a9dfe5b9dbf7618916aec678045eb5eddf |
|
MD5 | 3ea76998b8d34d70ee3b032430a14ba1 |
|
BLAKE2b-256 | 38e6446893be799712f3b79e2d0497f19799ef6d8bb98de8ff1184a87d68ad50 |