# Lemon : Koa 风格的 Python 异步 Web 框架

DevFeed: [Lemon : Koa 风格的 Python 异步 Web 框架](<https://devfeed.tech/articles/lemon-koa-python-web-40998.md>)

Original publisher: [Read original article](<https://blog.joway.io/posts/lemon-overview/>)

Author: Joway

Published: 2018-01-08T00:00:00Z

Content type: tutorial

Language: zh

Sources: [Random Thoughts](<https://devfeed.tech/sources/random-thoughts.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Koa](<https://devfeed.tech/topics/koa.md>), [middleware](<https://devfeed.tech/topics/middleware.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [middleware](<https://devfeed.tech/tags/middleware.md>), [python](<https://devfeed.tech/tags/python.md>), [tech](<https://devfeed.tech/tags/tech.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

The article introduces Lemon, a Python asynchronous web framework designed with a Koa-style middleware model. It explains the distinction between server and application responsibilities, discusses ASGI-compatible servers such as uvicorn, and describes Lemon's routing and context design.

## Source excerpt

前段时间想要写一些简短高效的 API ，背后的工作无非就是一些计算和数据处理，但是可能并发量会比较高。当我在 Python 的生态里去搜寻一些靠谱的 Web 框架时，很难找到一个设计优秀且运行效率高的框架。尤其是当我已经习惯了 NodeJS 的 Koa 那种简洁明了的设计时，很难再喜欢上像 Flask 那种装饰器的写法和各种概念拢杂在一起的设计。最后实在没有办法，就自己写了个符合我个人审美的框架 Lemon 。