Skip to main content

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 views.foo.bar.baz:AView and the root_module is views automatic path to view will be genereated as /foo/bar/baz/aview

Installation

  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

Metadata

Release files for pyramid-autoroute 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyramid-autoroute 1.2.0
File Size Uploaded
pyramid_autoroute-1.2.0.tar.gz 3.4 kB Details

Release files / pyramid_autoroute-1.2.0.tar.gz

Download URL pyramid_autoroute-1.2.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a12d89a6f017c76fc5bfc3479c651bcfda3f62c3471ba4cd69911037448c467e
BLAKE2b-256 checksum
How to use checksums
d5c3dab4c8be2ff5d9da4b6d37259fb84d5afaa6d17a50568993724bf7520022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release 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