Skip to main content

Pyramid addon to auto detects views

Project description

pyramid_autoroute is a package for generating pyramid routes for URL Dispath base on view location in python packages starting from predefined root module.

i.e. if a view is located in and the root_module is views automatic path to view will be genereated as /foo/bar/baz/aview


  1. install egg using pip or easy_install
  2. in your application’s configuration you must add config.include(‘pyramid_autoroute’) before config.scan()
  3. in configuration .ini file you have to add views root module:

[app:myapp] pyramid.autoroute.root_module = myapp.views

  1. after launching application you will see i.e.:

Auto generated routes:

Name Path

add3 /myview home3 /my_view add /abc/myview home /abc/my_view home2 /abc/my_view2 home5 /test_aaa/my_view

1.2.0: - Python 3 compatibility

1.1.1: - omit None values for query string params in url_for

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyramid-autoroute, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pyramid_autoroute-1.2.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page