Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Hoptoad notifier for Python.
branch: master

This branch is 14 commits behind attachmentsme:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
pytoad
tests
.gitignore
README.textile
setup.py

README.textile

Pytoad: A Hoptoad Notifier for Python

Pytoad is a lightweight Hoptoad notifier for Python.

Configuration

Copy config/environment.default.json to config/environment.json and modify the values to match your project.

Using the Decorator

from pytoad import pytoad_decorator
@pytoad_decorator()
def foobar():
	raise Exception('banana')

Or catch specific types of exceptions

@pytoad_decorator(monitored_exceptions=[StandardError, LookupError])
def foo():
	raise StandardError('banana')

Usage Without Decorator

from pytoad import Connection
connection = Connection()
connection.send_to_hoptoad(Exception('banana'))
Something went wrong with that request. Please try again.