nongiach / exall

Exall is an exception manager based on decorator/context/callback

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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.

About

Exall is an exception manager based on decorator/context/callback

License:Other


Languages

Language:Python 100.0%