Error handler for flask with sending exceptions to control service.
Project description
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})
Build package
$ python setup.py bdist_wheel
Upload to PYPI
$ twine upload dist/*
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
Built Distribution
Close
Hashes for control_error_handler-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d88a1a257ff00e247f269eae6b9dfd408092133ba081c23140fe9792637f1442 |
|
MD5 | bf6a43e297934153498634f097b16bf7 |
|
BLAKE2b-256 | 6f79589217e44758c75568d64db26354ff0541279f79d262b081725832e56293 |
Close
Hashes for control_error_handler-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0cc218221c8146027dac5ce58800363e2061882b3887a66c9efba1c8b6dd79e |
|
MD5 | 4c4ff790a48659de6eecffeb62495136 |
|
BLAKE2b-256 | 0efe3601c3bdd83022599e05fe23c4305b4f972ea5da9d479c6f98c3820fa080 |