Skip to main content

Control error handler

Error handler for flask with sending exceptions to control service.

Installing

From pypi:

$ pip install control_error_handler

or from source:

$ python setup.py install

Quick start

Add to flask app.configs:

CONTROL_EXCEPTION_URL = 'http://localhost:5000/api/monitoring/send-exception/'
SEND_EXCEPTION_TO_CONTROL = True

Init control handler in __init__.py on flask project:

from flask import Flask
from control_error_handler.error_handler import ControlHandler

app = Flask(__name__)

ControlHandler(app)

Use ES54Exception:

from control_error_handler.exceptions import ES54Exception

raise ES54Exception('Some error...', ext_data={'any_action': True})

Metadata

Release files for control-error-handler 0.1.3

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

Built distribution (wheel)

Table of built distributions (wheels) for control-error-handler 0.1.3
File Interpreter ABI Platform Actions
control_error_handler-0.1.3-py3-none-any.whl Python 3 none any Details for control_error_handler-0.1.3-py3-none-any.whl

Release files / control_error_handler-0.1.3-py3-none-any.whl

Download URL control_error_handler-0.1.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0764b2f9087f4c989b88a7a8a5fc948edbfa00d6c5901029684e60d1bb9eaa7a
BLAKE2b-256 checksum
How to use checksums
aaaa4d3fe08b9a28b58434e3b583d1803b3b9e7ec7053eb237f023c2a677c89a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Security for control-error-handler 0.1.3

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