A pyramid plugin that provides de-centralized hierarchical object dispatch.
Project description
# pyramid_controllers
The pyramid_controllers package is a pyramid plugin that provides de-centralized hierarchical object dispatch, similar to how the standard TurboGears request dispatch works.
IMPORTANT: in all of the examples below, simple strings are used as responses. There is nothing in pyramid_controllers that forbids the use of, or even makes it difficult to use, templating engines. In fact, this is encouraged but for simplicity has been omitted here.
## Installation
You can manually install it by running pip install pyramid_controllers. However, a better approach is to use standard python distribution utilities, and add pyramid_controllers as a dependency in your project’s install_requires parameter in your setup.py. Then run a python setup.py develop.
## Usage
First, enable the package either in your INI file via:
pyramid.includes = pyramid_controllers
or in code in your package’s application initialization via:
def main(global_config, **settings): # ... config.include('pyramid_controllers') # ...
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
Hashes for pyramid_controllers-0.3.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a41a097d01dc131be5934be24d262e2c9592abc1f1fb0ef5211f28ad267b8c62 |
|
MD5 | cd89db938dab19a4eafdea85c1cf8dc9 |
|
BLAKE2b-256 | b5abd92d6fe903cb6856a52fbbce9bc288c7c462dc2ca72620dfacc9ac76dabe |