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

Metadata

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 Provenance Actions
amonpy-0.4.4.tar.gz 5.3 kB Without provenance Details for amonpy-0.4.4.tar.gz

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

Security for amonpy 0.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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