Avenue: Highway routing.
Project description
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!'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Avenue-0.2.1.tar.gz
(13.2 kB
view hashes)
Built Distribution
Close
Hashes for Avenue-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6e19fb87858f44f3cd54fe42c4a3b2c23d44f4afe612663c6fe56e3730ec02d |
|
MD5 | 75ee3052af7b8fb2a2e3fc62270ed7d3 |
|
BLAKE2b-256 | 953e32bba408d380bfca98a47533fd18d4e7e75b0b8688cacd9302393ea83a98 |