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.5.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for Avenue-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f7554d2b036ff78792577bda39ce97d8e246d34733e5637ca91fe994726f36b |
|
MD5 | 1dbb0cb2ab1b3fc34110a7a82c61eb56 |
|
BLAKE2b-256 | e7be61f20826b874b681ec97bacff720dae192a2dfad2341ab2fb02e6c911c26 |