Welcome to Muffin

Muffin: A web-framework based on Asyncio stack

Welcome to Muffin’s documentation.

Muffin is a web-framework based on aiohttp, asyncio (PEP 3156).

Example “Hello World” with the Muffin:

import muffin


app = muffin.Application('example')


@app.register('/', '/hello/{name}')
def hello(request):
    name = request.match_info.get('name', 'anonymous')
    return 'Hello %s!' % name

if __name__ == '__main__':
    app.manage()