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
Release files for amonpy 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| amonpy-0.4.4.tar.gz | 5.3 kB | Details |
Release files / amonpy-0.4.4.tar.gz
| Download URL | amonpy-0.4.4.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e637d7e456f5ec4b8d207bcce0399ded09d63905b16a81e2fef41a615446d8ef
|
|
BLAKE2b-256 checksum How to use checksums |
d5ef9d802ad33f9b03a71de4f8172b06263cae3ea417f45a94f5e4f034f77a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |