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.0.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for Avenue-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77e0c133087f1d206a3cb5c1dd5cd67ac8140cbf9075f743a42c436c0c7f328 |
|
MD5 | 9b62a9d0270570c265368295e27cc873 |
|
BLAKE2b-256 | 52746961cfaaf36e7a3e12e70acf6c0ca90a99db1f6396f7c7e22cc27f6a3ed8 |