xweb icon indicating copy to clipboard operation
xweb copied to clipboard

High performance async web framework.

logo

Build License Pypi Python

High performance web framework.

Installation

pip install xweb

Usage

from xweb import App, RESTController


class IndexController(RESTController):
    async def get(self):
        self.ctx.body = {"Hello": "World"}


app = App()
app.routes = {
    '/': IndexController
}

app.listen()