klen/muffin
소개
Muffin은 빠르고 간단한 비동기 Python 3 웹 프레임워크입니다
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMuffin

Fast, lightweight, asynchronous ASGI web framework for Python 3.11+. Documentation: https://klen.github.io/muffin
Why Muffin?
Muffin combines the simplicity of microframeworks with native ASGI performance, supporting multiple async libraries (Asyncio, Trio, Curio) out of the box. Its plugin ecosystem covers templating, databases, auth and more.
Key features:
- ASGI compatible
- Competitive performance
- Supports Asyncio, Trio and Curio
- Multiple response types: text, HTML, JSON, streams, files, SSE, WebSockets
- First-class plugin system
Installation
Muffin requires Python 3.11 or newer. We recommend using the latest stable Python.
$ pip install muffin
For the standard installation with gunicorn, uvicorn, uvloop and httptools:
$ pip install muffin[standard]
Dependencies installed automatically:
- ASGI-Tools: ASGI toolkit
- Modconfig: hierarchical configuration manager
Quickstart
Create a simple "Hello User" app:
import muffin
app = muffin.Application()
@app.route("/", "/hello/{name}")
async def hello(request):
name = request.path_params.get("name", "world")
return f"Hello, {name.title()}!"
Save this as example.py and run:
$ uvicorn example:app
Visit http://localhost:8000 or http://localhost:8000/hello/username in your browser.
Plugins
- muffin-jinja2: Jinja2 templates (asyncio/trio/curio)
- muffin-session: signed cookie-based HTTP sessions
- muffin-oauth: OAuth1/OAuth2 integration
- muffin-sentry: Sentry error tracking
- muffin-peewee-aio: Peewee ORM integration with async support
- muffin-babel: localization with Babel
- muffin-databases: async support for a range of databases
- muffin-mongo: MongoDB integration
- muffin-redis: Redis integration
- muffin-rest: REST helpers
- muffin-apiclient: support for external APIs
- muffin-grpc: gRPC support
- muffin-kafka: Kafka integration
- muffin-admin: admin interface
- muffin-prometheus: Prometheus metrics exporter
See each repo for usage and installation instructions.
Benchmarks
Performance comparisons are available at http://klen.github.io/py-frameworks-bench/.
Bug tracker
Found a bug or have a feature request? Please open an issue at https://github.com/klen/muffin/issues.
License
Muffin is licensed under the MIT license.
Credits
Muffin > 0.40 (completely rewritten on ASGI)
Muffin < 0.40 (based on AIOHTTP)
관련 프로젝트 살펴보기
불러오는 중…