Avenue: Highway routing.¶
Release v0.2.0 (What’s new?).
Avenue
is an MIT-licensed Python package with a very extensible,
but light weight, routing system.
A quick example:
from avenue import Avenue
router = Avenue()
@router.attach(path='/', method='GET')
def hello_world():
return 'Hallo world!'
route = {
'path': '/',
'method': 'GET,
}
assert router.solve(**route) == 'Hallo world!'