From c872fe3c78bbc4c7fef8773a8ca3d4a8b4e9e5a6 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 26 Oct 2018 11:08:37 -0400 Subject: [PATCH] image --- README.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/README.md b/README.md index c5a3212..d5f45c4 100644 --- a/README.md +++ b/README.md @@ -9,18 +9,7 @@ [![](https://github.com/kennethreitz/responder/raw/master/ext/small.jpg)](http://python-responder.org/) -```python -import responder - -api = responder.API() - -@api.route("/{greeting}") -async def greet_world(req, resp, *, greeting): - resp.text = f"{greeting}, world!" - -if __name__ == '__main__': - api.run() -``` +![](https://farm2.staticflickr.com/1959/43750081370_a4e20752de_o_d.png) Powered by [Starlette](https://www.starlette.io/). That `async` declaration is optional. [View documentation](http://python-responder.org).