Skip to content

elliotgao2/xweb

Repository files navigation

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