Metadata-Version: 1.2
Name: control-error-handler
Version: 0.1
Summary: Error handler for flask with sending exceptions to control service.
Home-page: UNKNOWN
Author: 54origins
Author-email: opensource@54origins.com
License: MIT
Description: 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})
        
        
        Build package
        -------------
        ::
        
            $ python setup.py bdist_wheel
        
        Upload to PYPI
        --------------
        ::
        
            $ twine upload dist/*
Keywords: flask,control service,exception,error_handler,54origins
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Text Processing :: Linguistic
Requires-Python: >=3.0, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.3.*, !=3.4.*, !=3.6.*
