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

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.3.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distributions

aiko-0.2.3-py3.6.egg (27.2 kB view hashes)

Uploaded Source

aiko-0.2.3-py3-none-any.whl (27.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page