Ratchet.io plugin for pyramid
Project description
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 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 ratchet.github.account = youraccount ratchet.github.repo = yourrepo
Here’s the full list of configuration variables:
- access_token
Access token from your Ratchet.io project
- endpoint
URL items are posted to.
default: http://submit.ratchet.io/api/item/
- 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; should be production, staging, or development.
- root
Absolute path to the root of your application, not including the final /. If your manage.py is in /home/brian/www/coolapp/manage.py, then this should be set to /home/brian/www/coolapp . Required for Github integration.
- github.account
Github account name for your github repo. Required for Github integration.
- github.repo
Github repo name. Required for Github integration.
- branch
Name of the checked-out branch. Required for Github integration.
- agent.log_file
If handler is agent, the path to the log file. Filename must end in .ratchet
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
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
File details
Details for the file pyramid_ratchet-0.1.2.tar.gz.
File metadata
- Download URL: pyramid_ratchet-0.1.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c5b7064f353c81a9780524d45b36b259057e3afe87af969514f5aef83b77848
|
|
| MD5 |
1a41f48209be455ea6e00119062c0c26
|
|
| BLAKE2b-256 |
e462db00c9cecbf7f6a7ab3885f3f45dedf58bf94da117a192d383cd4950c3d9
|