A set of sane routing defaults for the Pyramid web framework
Project description
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'
)
Project details
Release history Release notifications | RSS feed
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 hashes)