error_cat
A fun way to display python errors.
Do you find long python error tracebacks annoying? Personally, they make me painfully aware of the fact that I don't know what I'm doing. And while that is certainly the case, sometimes I'd like that news to be delivered to me in a nicer way. For that, there is error_cat.
Installation
pip install error_cat
Usage
error_cat python <name of your favorite python script>.py
If <name of your favorite python script>.py runs successfully, you will see a fun, reassuring message from error_cat:
________________________
/ \
| Everything worked! |
\ ______________________/
/ /
,_ _ / /
|\\_,-~/ /'
/ _ _ | ,--.
( @ @ ) / ,-'
\ _T_/-._( (
/ `. \
| _ \ |
\ \ , / |
|| |-_\__ /
((_/`(____,-'
On the other hand, if <name of your favorite python script>.py produces an error, error_cat will break the news to you. Here is an example script that will lead to an error:
fake_error.py
def func():
func2()
def func2():
print(5 + "5")
func()
Here is what error_cat will tell you:
$ error_cat python fake_error.py
_________________________________________________________________
/ \
| File "fake_error.py", line 5, in func2 |
| TypeError: unsupported operand types for +: 'int' and 'str' |
\ _______________________________________________________________/
/ /
,_ _ / /
|\\_,-~/ /'
/ _ _ | ,--.
( @ @ ) / ,-'
\ _T_/-._( (
/ `. \
| _ \ |
\ \ , / |
|| |-_\__ /
((_/`(____,-'
Artwork Credit
All ascii artwork is from the ASCII Art Archive. Individual artworks are credited to the artist (if known) in the comments of error_cat/characters.py. A big thank you to the following artists whose art has been incorporated into error_cat:
- Morfina
- Joan G. Stark
Metadata
Release files for error-cat 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| error_cat-0.5-py3-none-any.whl | Python 3 | none | any | Details for error_cat-0.5-py3-none-any.whl |
| error_cat-0.5-py2-none-any.whl | Python 2 | none | any | Details for error_cat-0.5-py2-none-any.whl |
Total release size: 10.3 kB
Release files / error_cat-0.5-py3-none-any.whl
| Download URL | error_cat-0.5-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86ca6ae0d431de87360b88fba27f363c4bdc61f535c9369a0ec9b787ef244ff0
|
|
BLAKE2b-256 checksum How to use checksums |
968627f2f2976d892b10423d400640c4cd632f6e3665a4b05d502c3c9162c5cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.1
|
Release files / error_cat-0.5-py2-none-any.whl
| Download URL | error_cat-0.5-py2-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
8368e475c59b1fcc8697a7e09b1ac91d35b9a1bec0c5adb93e904803a9e24e5e
|
|
BLAKE2b-256 checksum How to use checksums |
b1bff11fb0407a98847192527e91df5d236fd4a722e7ff5fd0fd46baf976eb71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.1
|
Security for error-cat 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.