skip to navigation
skip to content

Not Logged In

ratchet 0.1.4

Ratchet.io generic python library

Latest Version: 0.4.1

pyratchet is a generic library for reporting exceptions and other messages to Ratchet.io.

Requirements

pyratchet requires:

  • Python 2.6 or 2.7
  • requests 0.12+
  • a Ratchet.io account

Installation

Install using pip:

pip install ratchet

Configuration

Somewhere in your initialization code, call ratchet.init() with your access_token:

ratchet.init('YOUR_ACCESS_TOKEN_HERE', environment='production')

Other options can be passed as keyword arguments. See the reference below for all options.

Usage

Call pyratchet.report_exc_info() to report an exception, or pyratchet.report_message() to report an arbitrary string message. See the docstrings for more info.

Configuration reference

access_token
Access token from your Ratchet.io project
handler

One of:

  • blocking -- runs in main thread
  • thread -- spawns a new thread

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 /.
branch

Name of the checked-out branch.

default: master

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/ratchetio/pyratchet

Additional Help

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

 
File Type Py Version Uploaded on Size
ratchet-0.1.4.tar.gz (md5) Source 2012-08-12 4KB
  • Downloads (All Versions):
  • 27 downloads in the last day
  • 228 downloads in the last week
  • 1365 downloads in the last month