Giter VIP home page Giter VIP logo

imouto's Introduction

imōto(妹)

Build Status Completion Python Version License Platform release

Asynchronous Web API Framework based on asyncio
It only work on the version aboved 3.6

Introduction

I think it should like this:

import asyncio
from imouto.web import Application
from imouto.web import RequestHandler


class MainHandler(RequestHandler):

    async def get(self):
        await asyncio.sleep(0.1)
        self.response.write('俺は妹が大好きだ')


app = Application()
app.add_route('/', MainHandler)
app.run(debug=True)

Features

1) magic route

GET / '/' > hello   # it will match '/' call `hello`
POST / '/mahou' > shoujo  # it will match '/mahou' and call `shoujo` 

Documentation

...

TODO

  • basic functions
  • debug mode
  • unittest
  • add CI
  • documentation

Benchmark

➜  ~ wrk -t2 -c600 -d30s http://127.0.0.1:8080
Running 30s test @ http://127.0.0.1:8080
  2 threads and 600 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   262.48ms   64.72ms   1.82s    95.75%
    Req/Sec   703.67    264.06     1.66k    68.96%
  42054 requests in 30.03s, 3.53MB read
  Socket errors: connect 0, read 41976, write 0, timeout 37
Requests/sec:   1400.23
Transfer/sec:    120.33KB

License

This software is free to use under the BSD license. See the LICENSE file for license text and copyright information.

imouto's People

Contributors

hanaasagi avatar

Stargazers

Seiya SAKATA avatar Kebe avatar liyu avatar tuunalai(赖杰) avatar vtheno avatar latyas avatar Taine Zhao avatar 엘련(Jisu Kim) avatar

Watchers

James Cloos avatar  avatar  avatar

imouto's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.