Skip to main content

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)

Source distribution for amonpy 0.4.4
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

Release history Release notifications | RSS feed

This release

0.4.4 This release

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page