Catalog PyPI
PACKAGE EXPLORERView in registry

aiko

PyPI
Versions collected1
Direct dependencies1From release 0.2.3
Last observed21 Oct, 11:07 UTC

README

Version 0.2.3 documentation
aiko
======

.. image:: https://www.travis-ci.org/zeromake/aiko.svg?branch=master
    :target: https://www.travis-ci.org/zeromake/aiko
    :alt: travis

.. image:: https://codecov.io/gh/zeromake/aiko/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/zeromake/aiko
    :alt: codecov

.. image:: https://badge.fury.io/py/aiko.svg
    :target: https://badge.fury.io/py/aiko
    :alt: Latest Version

.. image:: https://img.shields.io/pypi/l/aiko.svg
    :target: https://github.com/zeromake/aiko/blob/master/LICENSE
    :alt: PyPI - License

.. image:: https://img.shields.io/pypi/format/aiko.svg
    :target: https://pypi.org/project/aiko/#files
    :alt: PyPI - Format

.. image:: https://img.shields.io/pypi/pyversions/aiko.svg
    :alt: PyPI - PyVersions

aiko is a base asyncio's lightweight web application framework.
It is designed to make `koa`_ api.

Installing
----------

Install by code

.. code-block:: text

    $ git clone https://github.com/zeromake/aiko
    $ cd aiko
    $ python setup.py install

A Simple Example
----------------

.. code-block:: python

    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)

.. code-block:: text

    $ curl http://127.0.0.1:5000
    Hello, World!

Links
-----

.. _koa: https://github.com/koajs/koa

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 <https://github.com/jshttp/fresh>`_ method


Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.310 May 20181

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
zeromake/aiko

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:2489244d1b6cf218a3054bbf282412993c957d5b6c645357cd02e70879bd7053