MicroPie ASGI Web Framework¶
MicroPie is a small, asynchronous web framework built on top of the ASGI specification. It is designed to be simple to learn and easy to extend while still providing the features necessary to build modern web applications. MicroPie offers automatic URL routing, pluggable session back‑ends, middleware hooks, WebSocket support and optional template rendering. Its focus on minimalism makes it a good choice for lightweight services, APIs and educational projects.
Core features¶
Convention over configuration. Public methods on your
Appsubclass automatically become routes so you can ship a prototype with only a handful of lines of code.Async‑first request handling. MicroPie speaks ASGI fluently and embraces
async/awaitfor HTTP and WebSocket handlers while keeping synchronous handlers ergonomic.Built‑in sessions and middleware. A pluggable session backend and request/response middleware hooks make it easy to add authentication, analytics and other cross‑cutting concerns.
Optional batteries included. Extras for templating, fast JSON and multipart parsing allow you to scale capabilities without bloating the core package.
Learning path¶
New to MicroPie? Follow this recommended progression:
Quick start – install the framework and serve your first response.
Routing and handlers – understand how method names map to URL paths and how handler arguments are populated.
WebSocket support – build a live, bidirectional endpoint.
How‑to guides – explore recipes for common tasks like sessions, templating and streaming.
API reference – deep dive into class and function definitions when you need the authoritative contract.
Explanations – read about the philosophy behind the design to better understand trade‑offs and extension points.
This documentation is organized according to the Diátaxis documentation framework. That framework separates documentation into four distinct types:
Tutorials – step‑by‑step introductions that teach you how to accomplish a task. Tutorials should avoid deep explanations and help you get started quickly.
How‑to guides – recipes focused on solving a particular problem. Guides assume you already know the basics and want to apply MicroPie to a concrete task.
Reference – authoritative descriptions of classes, functions and modules. These documents are factual and concise.
Explanation – discussions that explore the rationale behind design choices and deeper concepts in MicroPie.
In addition to these four types, a small glossary collects terminology used throughout the framework. Quick links to other helpful resources:
Glossary – definitions of common MicroPie and ASGI terms.
What’s new in MicroPie – highlights from recent releases and upgrade tips.
Project README – the high-level project overview from the source repository.