项目作者: nongiach

项目描述 :
Exall is an exception manager based on decorator/context/callback
高级语言: Python
项目地址: git://github.com/nongiach/exall.git
创建时间: 2018-03-18T23:59:28Z
项目社区:https://github.com/nongiach/exall

开源协议:Other

下载


Exall

Ease exception handling in python.

Except them All

Exall is an exception manager based on decorator/context/callback.
Exall separates code logic from error handling, this reduces code duplication and ease development.

Examples

Exall easily creates rules to associate Exceptions with callbacks using decorators.

With Exall Without Exall
Alt Text Alt Text

Install

  1. pip install exall

Callbacks

You are encouraged to create your own callbacks but here are the default callback output.

Warning (print_warning)

Alt Text

Error and exit (print_error)

Alt Text


By @chaign_c #HexpressoTeam.