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.3.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for Avenue-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c36036850664683f2b46cb2ce9849408111933c4ab054a2136d7f74708ff60c |
|
MD5 | 87a9636519d08d3f00441030ab644821 |
|
BLAKE2b-256 | 70afe9d58ae5ffeeefb6103b92624dcee3a0f711981bada8ea0e9b03a0e75da6 |