MicroPie – lightweight asynchronous ASGI web framework

MicroPie is a compact asynchronous web framework built around the ASGI interface. It provides facilities for developing HTTP applications, APIs and real-time services while keeping the core framework small.

The framework uses an object-oriented application model in which methods can be exposed as HTTP endpoints. URL paths are automatically mapped to handler methods, reducing the need to register every route individually.

MicroPie supports a range of application requirements, including request parsing, sessions and asynchronous communication. Its optional integrations allow developers to introduce templating and other functionality when needed.

The framework is suitable for lightweight services and applications that need direct control over request handling without a large collection of mandatory dependencies.

This is free and open source software.

Key Features

  • ASGI-compatible asynchronous HTTP request handling.
  • Automatic mapping of URL paths to application methods.
  • Dynamic path parameters and automatic argument binding from requests.
  • Request utilities for accessing query parameters, form fields and JSON bodies.
  • Support for multipart form uploads and configurable request body size limits.
  • WebSocket handlers for bidirectional communication.
  • Streaming HTTP responses using asynchronous generators.
  • Cookie-based sessions with pluggable session storage backends.
  • Middleware hooks for processing requests and responses.
  • Optional Jinja2 template rendering for dynamic HTML content.
  • Application startup and shutdown handlers using ASGI lifespan events.
  • Support for JSON responses with optional accelerated serialization.
  • Custom HTTP error handling and response headers.
  • Integration with ASGI-compatible libraries and application servers.
  • Testing facilities and example applications demonstrating common web development tasks.

Website: github.com/patx/micropie
Support:
Developer: Harrison Erd
License: BSD 3-Clause ‘New’ or ‘Revised’ License

MicroPie 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
PyramidStart small, finish big, stay finished framework
BottleFast, simple and lightweight WSGI micro web framework
ChalicePython Serverless Microframework for AWS
CherryPyMature, minimalist, Python object-oriented web framework
TurboGearsHybrid framework acting as a Full Stack framework or Microframework
QuixoteAimed at sites where complex programming is required
KleinMicro-framework for developing production-ready web services with Python
circuitsLightweight event driven application framework
ClasticFunctional web framework
HugMake developing Python driven APIs as simple as possible
MicroPieUltra-micro ASGI Python web framework
LitestarPowerful, lightweight, and flexible ASGI framework
BlackSheepAsynchronous Python web framework
RobynPython web framework designed for high performance
MicrodotSmall web framework for Python and MicroPython

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