Spice up those exceptions with cowexcept!
Project description
CowExcept
Spice up those exceptions with cowexcept!
______________________________________
< NameError: name 'baz' is not defined >
--------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Install
pip install cowexcept
Should you install this?
Probably not! This is a hastily hacked together project that does not do anything useful. It also does not do zesty and exciting things like have nicely formatted 3.10 syntax error messages. But! It might still spice up those error messages and make them a bit less draining to read.
Usage
All you have to do to get started is import cowexcept
and then any exceptions whenceforth will be in beautiful cowsay format:
>>> import cowexcept
>>> 1/0
_______________________________________
/ Traceback (most recent call last): \
| File "...", line 1, in ... |
\ ZeroDivisionError: division by zero /
---------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
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
cowexcept-1.2.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for cowexcept-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e3bbc8e9c7276d93536a06cdad69acd8cc8f3ca7d1fd9ca73e8e203f577786c |
|
MD5 | 9a48644707fc7a0876fe4603115b65a9 |
|
BLAKE2b-256 | ec41eeb826aa8a22e7c9e3b39050e40e1df14b67b2a4ae1bf2bbe6c113fcacaf |