Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aiko

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiko

  • 0.2.3
  • PyPI
  • Socket score

Maintainers
1

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!

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

Todo

  • request api like koa
    • method
      • accepts
      • acceptsEncodings -> accepts_encodings
      • acceptsCharsets -> accepts_charsets
      • acceptsLanguages -> accepts_languages
      • is
      • get
    • getter, setter
      • header
        • getter
        • setter
      • headers
        • getter
        • setter
      • url
      • origin
      • href
      • method
      • path
      • query
      • querystring
      • search
    • getter
      • host
      • hostname
      • URL
      • fresh
      • stale
      • idempotent
      • socket
      • charset
      • length
      • protocol
      • secure
      • ips
      • subdomains
      • type
      • originalUrl -> original_url
      • ip
  • response api like koa
  • proxy class property attr and method
  • like fresh <https://github.com/jshttp/fresh>_ method

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc