Skip to main content

Module for colorful printing and error handling.

pip install exceptdrucker

Tested against Windows 10 / Python 3.11 / Anaconda

    Module for colorful printing and error handling.
    Handle and display errors in a customizable format.

    Args:
        *args: Variable length argument list.
        **kwargs: Arbitrary keyword arguments.
            debug (bool): Indicates whether debugging is enabled. Defaults to True.
            symbol_top (str): Symbol to print at the top of the error message. Defaults to "╦".
            symbol_bottom (str): Symbol to print at the bottom of the error message. Defaults to "╩".
            len_top (str): Length of the top symbol line. Defaults to "60".
            len_bottom (str): Length of the bottom symbol line. Defaults to "60".
            color_top (str): Color of the top symbol line. Defaults to "YELLOW_DARK".
            color_bottom (str): Color of the bottom symbol line. Defaults to "RED_DARK".
            print_to_stderr (bool): Whether to print to stderr. Defaults to False.
            color_exception (str): Color of the exception message. Defaults to "CYAN".

    Example:
        from exceptdrucker import errwrite, config

        try:
            print("hello" / 2)
        except Exception:
            errwrite()

        try:
            print("hello" / 2)
        except Exception:
            errwrite(
                debug=True,
                symbol_top="V",
                symbol_bottom="A",
                len_top="40",
                len_bottom="40",
                color_top="YELLOW",
                color_bottom="RED",
                choosen_color="BLUE",
                print_to_stderr=False,
                color_exception="WHITE",
            )

        try:
            print("hello" / 2)
        except Exception:
            errwrite(
                debug=False,
            )

        config.debug = False
        try:
            print("hello" / 2)
        except Exception:
            print("nothing")
            errwrite()

Metadata

Release files for exceptdrucker 0.10

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

Source distribution (sdist)

Source distribution for exceptdrucker 0.10
File Size Uploaded Provenance Actions
exceptdrucker-0.10.tar.gz 4.3 kB Without provenance Details for exceptdrucker-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exceptdrucker 0.10
File Interpreter ABI Platform Actions
exceptdrucker-0.10-py3-none-any.whl Python 3 none any Details for exceptdrucker-0.10-py3-none-any.whl

Total release size: 9.9 kB

Release files / exceptdrucker-0.10.tar.gz

Download URL exceptdrucker-0.10.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb817acc109ec654f7a8a863adaaa83452fbb7cd6cae8436d8af779924025416
BLAKE2b-256 checksum
How to use checksums
a4a22a7ef51fa4f560545387175c52394324119a615f75a79edc94ab65ee6e6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / exceptdrucker-0.10-py3-none-any.whl

Download URL exceptdrucker-0.10-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
472d86fc4352498100d12d47cb4a3a4a3c256e4548eaa950e1a3de6a8d7f1740
BLAKE2b-256 checksum
How to use checksums
e157a6895761f3f2d81af5003080ca5227f16b4e2d0cf27b3ddb215a0f56a35a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for exceptdrucker 0.10

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.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

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