skip to navigation
skip to content

Not Logged In

pyramid_ratchet 0.2

Ratchet.io notifier plugin for Pyramid

Latest Version: 0.3.4

pyramid_ratchet is a simple middleware for reporting errors from Pyramid apps to Ratchet.io.

Requirements

pyramid_ratchet requires:

  • Python 2.6 or 2.7
  • Pyramid 1.2+
  • requests 0.12+
  • a Ratchet.io error reporting account

Installation

Install using pip:

pip install pyramid_ratchet

Configuration

Add pyramid_ratchet to the beginning of your pyramid.includes:

[app:main]
pyramid.includes =
    pyramid_ratchet
    pyramid_debugtoolbar

Add the bare minimum configuration variables:

[app:main]
ratchet.access_token = 32charactertoken

Most users will want a few extra settings to take advantage of more features:

[app:main]
ratchet.access_token = 32charactertoken
ratchet.environment = production
ratchet.branch = master
ratchet.root = %(here)s

Here's the full list of configuration variables:

access_token
Access token from your Ratchet.io project
handler

One of:

  • blocking -- runs in main thread
  • thread -- spawns a new thread
  • agent -- writes messages to a log file for consumption by ratchet-agent

default: thread

environment
Environment name. Any string up to 255 chars is OK. For best results, use "production" for your production environment.
root
Absolute path to the root of your application, not including the final /. %(here)s is probably what you want.
branch

Name of the checked-out branch.

default: master

agent.log_file
If handler is agent, the path to the log file. Filename must end in .ratchet
allow_test

When true, adds a hook to send a test error report (but not interrupt the request in any other way) whenever the query string contains pyramid_ratchet_test=true.

default: true

endpoint

URL items are posted to.

default: https://submit.ratchet.io/api/1/item/

Contributing

Contributions are welcome. The project is hosted on github at http://github.com/brianr/pyramid_ratchet

Additional Help

If you have any questions, feedback, etc., drop me a line at brian@ratchet.io

 
File Type Py Version Uploaded on Size
pyramid_ratchet-0.2.tar.gz (md5) Source 2012-07-06 2KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 209 downloads in the last week
  • 1141 downloads in the last month