Tiny Errors that remove the clutter
Project description
TinyErr
TinyErr (pronounced tinier) provides tiny errors that get straight to the point.
Project is still in early Alpha – significant changes are expected and features are limited
Install
pip install tinyerr
While TinyErr is in alpha, it may be best to install directly from GitHub for the latest changes:
pip install git+https://github.com/James-Ansley/tinyerr.git
Example
main.py
:
def foo(x, y):
return bar(x, y)
def bar(x, y):
return x + y
result = foo(5, "Hello")
print(result)
Running tinyerr main.py
produces:
File "main.py", line 9, in <module>
result = foo(5, "Hello")
^^^^^^^^^^^^^^^
File "main.py", line 2, in foo
return bar(x, y)
^^^^^^^^^
File "main.py", line 6, in bar
return x + y
~~^~~
TypeError: cannot do `<int> + <str>`
By default, the traceback limit is set to 0 (the entire stack). This can be
configured with the -tb
or --traceback
command line option.
e.g. tinyerr -tb 1 main.py
will yield:
File "main.py", line 6, in bar
return x + y
~~^~~
TypeError: cannot do `<int> + <str>`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tinyerr-0.0.1a1.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for tinyerr-0.0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59cb98b9d9fef488ae0d16090cc6c8f5ccaf89dffed38c6f9f43f3fd333429d |
|
MD5 | 770ef19ef1da513709f2068c887ac6db |
|
BLAKE2b-256 | 53bfc3649b022846597910431f660b81a4405ddc816c181ce91680ae9f4eb154 |