Skip to main content

No project description provided

Project description

travis codecov Latest Version PyPI - License PyPI - Format PyPI - PyVersions

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!

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiko, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size aiko-0.2.3-py3.6.egg (27.2 kB) File type Egg Python version 3.6 Upload date Hashes View hashes
Filename, size aiko-0.2.3-py3-none-any.whl (27.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size aiko-0.2.3.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page