No project description provided
Project description
aiko is a base asyncio’s lightweight web application framework. It is designed to make koa api.
Installing
Install by code
$ git clone https://github.com/zeromake/aiko
$ cd aiko
$ python setup.py install
A Simple Example
import asyncio
from aiko import App
loop = asyncio.get_event_loop()
app = App(loop)
def hello(ctx, next_call):
return "Hello, World!"
app.use(hello)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
$ curl http://127.0.0.1:5000
Hello, World!
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiko-0.2.1.tar.gz
(8.8 kB
view hashes)
Built Distributions
aiko-0.2.1-py3.6.egg
(19.5 kB
view hashes)
aiko-0.2.1-py3-none-any.whl
(20.1 kB
view hashes)