Skip to main content

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)

Uploaded Source

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

Hashes for tomb_routes-0.0.1.tar.gz
Algorithm Hash digest
SHA256 88cc96f2268bb462be8157d9478cb13f6ea5376f046a105efdd514fad9640176
MD5 08c36bd3d0348747969e9bd1bb1cf19d
BLAKE2b-256 6e308962fc45c8096052c5d277f589bccba798c38e41c10e17e3ed1fd41abdab

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.2

1 file

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page