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
Todo
- [ ] request api like koa
[ ] url
[ ] path
[ ] query
[ ] querystring
[ ] search
[ ] originalUrl -> original_url
[ ] href
[x] origin
[x] protocol
[x] host
[x] hostname
[x] ips
[x] ip
[x] proxy
[x] secure
[x] charset
[x] type
[x] header
[x] headers
[x] socket
[x] set
[x] get
[ ] response api like koa
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.2.tar.gz
(12.4 kB
view details)
Built Distributions
aiko-0.2.2-py3.6.egg
(23.8 kB
view details)
aiko-0.2.2-py3-none-any.whl
(24.5 kB
view details)
File details
Details for the file aiko-0.2.2.tar.gz
.
File metadata
- Download URL: aiko-0.2.2.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b885ed3323e09bc932b8ee7606ce1953c9fb423a25bf6a54549daaa80ba119 |
|
MD5 | c19efbd52c78a32b5ee706fc24dd028d |
|
BLAKE2b-256 | 871a7f9bb2dfdadd5a8111aa329e6cd715e23335acf0f1058196a4a556fb89df |
Provenance
File details
Details for the file aiko-0.2.2-py3.6.egg
.
File metadata
- Download URL: aiko-0.2.2-py3.6.egg
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a946ee8721abf8a05fe5359e627970b9041e56af8b19aa10f75c5a0db3b74e6d |
|
MD5 | d2d966339bff29c7b93b49f5879d0241 |
|
BLAKE2b-256 | 9b1a87541a18adbf6d435ef50db5788d2f991152fb8ef13391f492cd53dd1a56 |
Provenance
File details
Details for the file aiko-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: aiko-0.2.2-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 908fe743ae62ae0e89afeccdf034909c4cb4c6af4fba80648e50c2b190f7c209 |
|
MD5 | 2c9c6f5aff968f62169630acb2890210 |
|
BLAKE2b-256 | e00e0fa4fd62fad6998662440f40e2b7f396e3e3a357f2f0b405288911c7e97f |