Skip to content
This repository has been archived by the owner on Mar 1, 2018. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 1.03 KB

README.rst

File metadata and controls

32 lines (22 loc) · 1.03 KB

Kyōkai (境界)

Coverage CircleCI

Kyōkai is a fast asynchronous Python server-side web framework. It is built upon asyncio and the 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:

import json
from kyoukai import Kyoukai, HTTPRequestContext

kyk = Kyoukai("example_app")

@kyk.route("/")
async def index(ctx: HTTPRequestContext):
    return json.dumps(request.headers), 200, {"Content-Type": "application/json"}

kyk.run()

For more information, see the docs at https://mirai.veriny.tf.