MicroPie – ultra-micro ASGI Python web framework

MicroPie is a fast, lightweight, modern Python web framework built on ASGI for asynchronous web applications.

Designed for flexibility and simplicity, it enables high-concurrency web apps with built-in WebSockets, session management, middleware, lifecycle event handling, and optional template rendering.

This is free and open source software.

Key Features

  • Routing: Automatic mapping of URLs to functions with support for dynamic and query parameters.
  • Sessions: Simple, pluggable session management using cookies.
  • Templates: Jinja2, if installed, for rendering dynamic HTML pages.
  • Middleware: Support for custom request middleware enabling functions like rate limiting, authentication, logging, and more.
  • Real-Time Communication: Built-in WebSocket support for real-time, bidirectional communication.
  • ASGI-Powered: Built with asynchronous support for modern web servers like Uvicorn, Hypercorn, and Daphne, enabling high concurrency.
  • Lightweight Design: Only optional dependencies for flexibility and faster development/deployment.
  • Lifecycle Events: ASGI lifespan event handling for startup and shutdown tasks (e.g., database initialization).
  • Competitive Performance: Check out how MicroPie compares to other popular ASGI frameworks below!

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

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Know a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments