Skip to main content

flexible and robust python error handling framework

Project description

Gufo Err

Gufo Err is the flexible and robust python error handling framework..

PyPi version Downloads Python Versions License Build codecov Sponsors Ruff

Documentation: https://docs.gufolabs.com/gufo_err/

Source Code: https://github.com/gufolabs/gufo_err/


Python Error Handling

Errors are in human nature - so any modern software may face errors. Software may contain errors itself, may be affected by third-party libraries' mistakes, or may weirdly use third-party libraries. Computers, operation systems, and networks also may fail. So proper error handling is the key component to building reliable and robust software.

Proper error handling consists of the stages:

  • Collecting - we must catch the error for further processing.
  • Reporting - we must log the error.
  • Mitigation - we must restart software if an error is unrecoverable (fail-fast behavior) or try to fix it on-fly.
  • Reporting - we must report the error to the developers to allow them to fix it.
  • Fixing - developers should fix the error.

Gufo Err is the final solution for Python exception handling and introduces the middleware-based approach. Middleware uses clean API for stack frame analysis and source code extraction.

Virtues

  • Clean API to extract execution frames.
  • Global Python exception hook.
  • Endless recursion detection (to be done).
  • Local error reporting.
  • Configurable fail-fast behavior.
  • Configurable error-reporting formats.
  • Error fingerprinting.
  • Traceback serialization.
  • CLI tool for tracebacks analysis.
  • Seamless Sentry integration.
  • Built with security in mind.

On Gufo Stack

This product is a part of Gufo Stack - the collaborative effort led by Gufo Labs. Our goal is to create a robust and flexible set of tools to create network management software and automate routine administration tasks.

To do this, we extract the key technologies that have proven themselves in the NOC and bring them as separate packages. Then we work on API, performance tuning, documentation, and testing. The NOC uses the final result as the external dependencies.

Gufo Stack makes the NOC better, and this is our primary task. But other products can benefit from Gufo Stack too. So we believe that our effort will make the other network management products better.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gufo_err-0.6.0.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gufo_err-0.6.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file gufo_err-0.6.0.tar.gz.

File metadata

  • Download URL: gufo_err-0.6.0.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gufo_err-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d8c6dd1e0e4cd8a7569defbd45006b123f820eddb47990c6994ccca5237a3351
MD5 ce4a9b34b31d7315db91a83362164a58
BLAKE2b-256 7166934f2cb85b95f78cdc5bab0e377180a4458e583b0b167436baca50187731

See more details on using hashes here.

Provenance

The following attestation bundles were made for gufo_err-0.6.0.tar.gz:

Publisher: py-tests.yml on gufolabs/gufo_err

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gufo_err-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: gufo_err-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gufo_err-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0edda96e6813f93d6a1255e40bbf266e1c865061dc68c5b068ebe0a152b990f5
MD5 1f2e1597a4d3b0834d6346bd0e11865c
BLAKE2b-256 93b58046a12f4958edcf70a3798a4f5813ae6c356d44cf43cbbac83997ef20dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for gufo_err-0.6.0-py3-none-any.whl:

Publisher: py-tests.yml on gufolabs/gufo_err

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page