Skip to main content

The impossibly small web framework for MicroPython

Project description

microdot

Build status codecov

“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()

Resources

The following links are for version 1 of Microdot:

Note that version 1 is no longer maintained, so you should consider migrating to version 2. See the migration notes for help.

Roadmap

The following features are planned for future releases of Microdot, both for MicroPython and CPython:

  • Authentication support, similar to Flask-Login for Flask (Added in version 2.1)
  • Support for forms encoded in multipart/form-data format (Added in version 2.2)
  • CSRF protection extension (Added in version 2.5)
  • Type hints (Added in version 2.6)
  • Pub/sub mini-framework for WebSocket and SSE
  • OpenAPI integration, similar to APIFairy for Flask

Do you have other ideas to propose? Let's discuss them!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microdot-2.6.1.tar.gz (90.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microdot-2.6.1-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file microdot-2.6.1.tar.gz.

File metadata

  • Download URL: microdot-2.6.1.tar.gz
  • Upload date:
  • Size: 90.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for microdot-2.6.1.tar.gz
Algorithm Hash digest
SHA256 d56824f4510e628dac711c86121957894ceaf833298e4d25f06c29d2b19a1721
MD5 6da76364ae6e0fa59c1cd78ecfb367c8
BLAKE2b-256 4f89a2cf4a4fe6f5380cd7b11310061d91fa73f975f86ff6bd644b3c895cc4a0

See more details on using hashes here.

File details

Details for the file microdot-2.6.1-py3-none-any.whl.

File metadata

  • Download URL: microdot-2.6.1-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for microdot-2.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba8bab39ae52bca08ee7024dfc71afb7cff089f0b6611d2a1f617abfcee749c
MD5 84d7c7a7439a1ab2e001be6d99805eaf
BLAKE2b-256 d73e44cc0939301cd5c7895a2a59cb51a0f5d965b9dfe6460f1a7a08073072e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page