Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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>`

Metadata

Release files for tinyerr 0.0.1a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinyerr 0.0.1a2
File Size Uploaded
tinyerr-0.0.1a2.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tinyerr 0.0.1a2
File Interpreter ABI Platform
tinyerr-0.0.1a2-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / tinyerr-0.0.1a2.tar.gz

Download URL tinyerr-0.0.1a2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d6b74d6e9435a782efad2058f8f945588cde2e3440bc063d8fc61fd53019c4b2
BLAKE2b-256 checksum
How to use checksums
f72cfc3f12bd1b6309db61d740ba3b9e8ba6e5b317bb04f077d19017204c12e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / tinyerr-0.0.1a2-py3-none-any.whl

Download URL tinyerr-0.0.1a2-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e480708896220e9b3a717888e4e9d515b74d82096042c2628b9b685a0047375
BLAKE2b-256 checksum
How to use checksums
b89a4882aee8d499869dd33d3b219ecba05204380fa398a29457611618bf3bc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page