Uiro framework documentation

le Web framework.

A simple Uiro application will be like this.

from wsgiref.simple_server import make_server
from matcha import Matching, make_wsgi_app
from uiro.controller import BaseController
from uiro.view import view_config

class Controller(BaseController):
    def get_view(self, request, context):
        return 'Hello {name}!'.format(**request.matched_dict)

 matching = Matching('/hello/{name}', Controller())

if __name__ == '__main__':
    app = make_wsgi_app(matching)
    server = make_server('', 8888, app)

And setup.

pip install uiro
python hello.py

Now, you can visit http://localhost:8888/hello/world in a browser, you will see the text ‘Hello world!’.

Table Of Contents

Next topic

Starting your first package