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, } path, match = router.match(**route) assert path.func(**match) == '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.1.4.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for Avenue-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdf4ee9c2ca8c0d7a526c427598caf6730e111b139dedc65dacf38cadbb4069 |
|
MD5 | 4598f51a9927f205d6171f438c164197 |
|
BLAKE2b-256 | c3ce79507e0861dbdc719aef7ef481b57a04b3fcfc388672bc245a22f82a5824 |