Skip to main content

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


Download files

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

Source Distribution

pyramid_controllers-0.3.5.tar.gz (34.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page