Python client for the Amon API
Project description
amonpy
Amonpy is the Python client for Amon
Installation
1. Install the package with pip install amonpy or alternatively you can download the tarball and run python setup.py install
Configuration
import amonpy amonpy.config.address = 'http://amonhost:port' amonpy.config.protocol = 'http|zeromq'
Usage
import amonpy amonpy.log(message) amonpy.log(message, ['list', 'of', 'tags']) data = { 'exception_class': '', 'url': '', 'backtrace': '', 'enviroment': '', 'data': '' } amonpy.exception(data)
Django
Using amonpy in Django is exactly the same as in every other python library. You can customize the config options by adding them somewhere in settings.py
# in settings.py import amonpy amon.config.address = 'http://amonhost:port'
To capture and log exceptions
MIDDLEWARE_CLASSES = ( ..... 'amonpy.adapters.DjangoExceptionMiddleware' )
Requirements
Python 2.6+
requests
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
amonpy-0.4.4.tar.gz
(5.3 kB
view details)
File details
Details for the file amonpy-0.4.4.tar.gz
.
File metadata
- Download URL: amonpy-0.4.4.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e637d7e456f5ec4b8d207bcce0399ded09d63905b16a81e2fef41a615446d8ef |
|
MD5 | 9af34717a2b1bb4478e79577ffe66e45 |
|
BLAKE2b-256 | d5ef9d802ad33f9b03a71de4f8172b06263cae3ea417f45a94f5e4f034f77a4b |