Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Fuyukai/Kyoukai
[OLD] A fully async web framework for Python3.5+ using asyncio
https://github.com/Fuyukai/Kyoukai
asyncio
Last synced: 13 days ago
JSON representation
[OLD] A fully async web framework for Python3.5+ using asyncio
- Host: GitHub
- URL: https://github.com/Fuyukai/Kyoukai
- Owner: Fuyukai
- License: mit
- Archived: true
- Created: 2016-05-09T15:31:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T01:03:48.000Z (almost 7 years ago)
- Last Synced: 2024-10-22T16:42:45.027Z (22 days ago)
- Topics: asyncio
- Language: Python
- Homepage: https://mirai.veriny.tf
- Size: 1.7 MB
- Stars: 298
- Watchers: 16
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Kyōkai (境界)
**This project will not be getting any more updates.**
[![Coverage](https://codecov.io/github/SunDwarf/Kyoukai/coverage.svg)](https://codecov.io/gh/SunDwarf/Kyoukai)
[![CircleCI](https://img.shields.io/circleci/project/SunDwarf/Kyoukai.svg?maxAge=2592000)](https://circleci.com/gh/SunDwarf/Kyoukai/)Kyōkai is a fast asynchronous Python server-side web framework. It is built upon
[asyncio](https://docs.python.org/3/library/asyncio.html) and the
[Asphalt](https://github.com/asphalt-framework/asphalt) framework for an extremely fast web server.Setting up a Kyōkai app is incredibly simple. Here's a simple server that echoes your client's headers:
```python
import json
from kyoukai import Kyoukai, HTTPRequestContextkyk = Kyoukai("example_app")
@kyk.route("/")
async def index(ctx: HTTPRequestContext):
return json.dumps(dict(ctx.request.headers)), 200, {"Content-Type": "application/json"}
kyk.run()
```For more information, see the docs at https://mirai.veriny.tf.