aiko
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
- [ ] method
[ ] accepts
[ ] acceptsEncodings -> accepts_encodings
[ ] acceptsCharsets -> accepts_charsets
[ ] acceptsLanguages -> accepts_languages
[ ] is
[x] get
- [ ] getter, setter
- [x] header
[x] getter
[ ] setter
- [x] headers
[x] getter
[ ] setter
[x] url
[x] origin
[x] href
[x] method
[x] path
[x] query
[x] querystring
[x] search
- [ ] getter
[x] host
[x] hostname
[ ] URL
[x] fresh
[x] stale
[x] idempotent
[x] socket
[x] charset
[x] length
[x] protocol
[x] secure
[x] ips
[ ] subdomains
[x] type
[x] originalUrl -> original_url
[x] ip
[ ] response api like koa
[x] proxy class property attr and method
[x] like fresh method
Metadata
Release files for aiko 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiko-0.2.3.tar.gz | 15.6 kB | Without provenance | Details for aiko-0.2.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiko-0.2.3-py3.6.egg | Legacy Egg format | - | - | Details for aiko-0.2.3-py3.6.egg |
| aiko-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for aiko-0.2.3-py3-none-any.whl |
Total release size: 70.6 kB
Release files / aiko-0.2.3.tar.gz
| Download URL | aiko-0.2.3.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09854d6004cc29dbb14c73309bf71688673f637a350033e7409e826bb3daf7ae
|
|
BLAKE2b-256 checksum How to use checksums |
f3339c40e4ed08c9b5fcc05b8bac40f23478a97f97f2f74910573d9e87231b17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aiko-0.2.3-py3.6.egg
| Download URL | aiko-0.2.3-py3.6.egg |
|---|---|
| Size | 27.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
8edd0626c7eeaf818917df7ffdb7c9c6f9421fca2a3f35f83adc496a83133319
|
|
BLAKE2b-256 checksum How to use checksums |
8595bddf29531d8dc9f253f757eac564644083b13efc250b7d14fbe88ad78d73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aiko-0.2.3-py3-none-any.whl
| Download URL | aiko-0.2.3-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7292c8e3d7be43597d11568888f8c43051ef02ab5fb8bf73f5e0c90c7a366ed4
|
|
BLAKE2b-256 checksum How to use checksums |
5e5cecbda4f451745b2ab4f141b4ce753adaa8144d2db23dde9962e7ea6f4932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aiko 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.