A set of simple defaults for pyramid routing
You can use the simple router as a decorator:
from tomb_routes import simple_route
from pyramid.response import Response
@simple_route('/hello/{name}')
def my_route(request, name):
return Response('Hello %s' % name)
or you can use it from the configurator:
config.include('tomb_routes')
config.add_simple_route(
'/hello/{name}', view_callable,
renderer='json'
)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tomb_routes-0.0.1.tar.gz
(3.5 kB
view details)
File details
Details for the file tomb_routes-0.0.1.tar.gz.
File metadata
- Download URL: tomb_routes-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88cc96f2268bb462be8157d9478cb13f6ea5376f046a105efdd514fad9640176
|
|
| MD5 |
08c36bd3d0348747969e9bd1bb1cf19d
|
|
| BLAKE2b-256 |
6e308962fc45c8096052c5d277f589bccba798c38e41c10e17e3ed1fd41abdab
|