control-error-handler-0.1.3
توضیحات
Error handler for flask with sending exceptions to control service.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | control-error-handler-0.1.3 |
| نام | control-error-handler |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | 54origins |
| ایمیل نویسنده | opensource@54origins.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/control-error-handler/ |
| مجوز | MIT |
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})
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0 | flask |
| >=2.22.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.0, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.3.*, !=3.4.*, !=3.6.* | Python |
نحوه نصب
نصب پکیج whl control-error-handler-0.1.3:
pip install control-error-handler-0.1.3.whl
نصب پکیج tar.gz control-error-handler-0.1.3:
pip install control-error-handler-0.1.3.tar.gz