Skip to main content

nurgle

https://img.shields.io/pypi/v/nurgle.svg https://img.shields.io/travis/@Herout/nurgle.svg Documentation Status

Decorator based error handling for Python, all props to merry by Miguel Grinberg. This is a naive extension of merry, and should not be used in production. Us on your own risk. Nurgle can be used in batch processing, where you need to be informed of the first run with failure and/or first run that recovered from failure.

Features

For basic information about its use case, please see original README

Nurgle is a drop-in replacement of Merry. On top of parameters provided by Merry, Nurgle object can be constructed as follows:

from nurgle import Nurgle
nurgle = Nurgle(slack_token="<your-slack-token>", slack_channel="<channel-to-write-to>", state_file="/path/to/a-file.nurgle.state")

If decorated code throws an exception

Nurgle looks for state_file in order to determine, if previous run failed as well.

  • If the file does not exist, previous run did not fail, and the exception is sent into the Slack channel.

  • If the file does exist, content is read and compared to stringified current exception. If the exception is not the same, we failed for different reason, and the exception is sent into the Slack channel.

Otherwise, exception is not sent.

If decorated code does not throw an exception

Nurgle looks for state_file in order to determine, if previous run failed or not.

  • If the file does not exist, previous run also did not fail, and nothing is sent to the Slack channel.

  • If the file does exists, previous run failed:
    • “recovery” message is sent to the Slack channel.

    • afterwards, state_file is deleted.

History

0.1.1 (2020-09-08)

  • Docs updates.

0.1.0 (2020-09-08)

  • First release on PyPI.

Metadata

Release files for nurgle 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nurgle 0.1.2
File Size Uploaded Provenance Actions
nurgle-0.1.2.tar.gz 12.1 kB Without provenance Details for nurgle-0.1.2.tar.gz

Release files / nurgle-0.1.2.tar.gz

Download URL nurgle-0.1.2.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f8ceb2c6b045487c022b43c6b57c619e3bff081ba854586427588303e8800d63
BLAKE2b-256 checksum
How to use checksums
e6d8169e99c67ed29344d53ac2381e02697ef18aed4e2f5933ae1adfba15fa22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

Security for nurgle 0.1.2

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