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 details)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

File details

Details for the file aiko-0.2.3.tar.gz.

File metadata

  • Download URL: aiko-0.2.3.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiko-0.2.3.tar.gz
Algorithm Hash digest
SHA256 09854d6004cc29dbb14c73309bf71688673f637a350033e7409e826bb3daf7ae
MD5 88f5201edc2a41ff7f4dc2f98aec5938
BLAKE2b-256 f3339c40e4ed08c9b5fcc05b8bac40f23478a97f97f2f74910573d9e87231b17

See more details on using hashes here.

File details

Details for the file aiko-0.2.3-py3.6.egg.

File metadata

  • Download URL: aiko-0.2.3-py3.6.egg
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiko-0.2.3-py3.6.egg
Algorithm Hash digest
SHA256 8edd0626c7eeaf818917df7ffdb7c9c6f9421fca2a3f35f83adc496a83133319
MD5 87e22b7bd901f89e7b769b5b68780ddf
BLAKE2b-256 8595bddf29531d8dc9f253f757eac564644083b13efc250b7d14fbe88ad78d73

See more details on using hashes here.

File details

Details for the file aiko-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for aiko-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7292c8e3d7be43597d11568888f8c43051ef02ab5fb8bf73f5e0c90c7a366ed4
MD5 542ac2532138bd0c4f672bb65d5f9cec
BLAKE2b-256 5e5cecbda4f451745b2ab4f141b4ce753adaa8144d2db23dde9962e7ea6f4932

See more details on using hashes here.

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