Avenue: Highway routing.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
src/avenue
tests
.coveragerc
.gitignore
AUTHORS.rst
CHANGELOG.rst
LICENSE
MANIFEST.in
README.rst
requirements-dev.txt
requirements.txt
setup.cfg
setup.py
tox.ini

README.rst

Avenue: Highway routing.

Avenue is a very extensible, but lightweight, 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!'