Skip to main content

exception_details

Get nicely formated exception details.

Content

  • Installation

  • Usage

Installation

pip install exception-details

Usage

  • print_exception_details(exception: Exception)

    Print the exception details.

    Usage:

      `try: ...`  
    
      `except Exception as e: print_exception_details(e)`  
    

    Contains:

    • function name

    • filepath

    • line

    • code snippet

    • species of the exception

    • message

    Args:

      exception (Exception): Your Exception
    
  • get_exception_details_dict(exception: Exception)

    Get the exception details as a dictionary.

    Usage:

      `try: ... `  
    
      `except Exception as e: details = get_exception_details_dict(e)`  
    

    Contains:

    • 'function' -> function name

    • 'path' -> filepath

    • 'line' -> line

    • 'code' -> code snippet

    • 'species' -> species of the exception

    • 'message' -> message

    Args:

      exception (Exception): Your Exception
    

    Returns:

      dict: Exception details as a dictionary with the keys: "function", "path", "line", "code", "species", "message"
    
  • get_exception_details_str(exception: Exception, colored=True)

    Print the exception details.

    Usage:

      `try: ... `  
    
      `except Exception as e: details = get_exception_details_str(e)`  
    

    Contains:

    • function name

    • filepath

    • line

    • code snippet

    • species of the exception

    • message

    Args:

      exception (Exception): Your Exception
    
      colored (boolean): The string has coloreds parts if True.
    

    Returns:

      str: Exception details as a string."
    

GitHub | PyPI

Metadata

Release files for exception-details 0.0.3

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

Source distribution (sdist)

Source distribution for exception-details 0.0.3
File Size Uploaded Provenance Actions
exception_details-0.0.3.tar.gz 23.9 kB Without provenance Details for exception_details-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exception-details 0.0.3
File Interpreter ABI Platform Actions
exception_details-0.0.3-py3-none-any.whl Python 3 none any Details for exception_details-0.0.3-py3-none-any.whl

Total release size: 30.0 kB

Release files / exception_details-0.0.3.tar.gz

Download URL exception_details-0.0.3.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
226c0e3a76c60d68f3337d6cfb3fa366730ba10dd695259c6d6afc1f13f38364
BLAKE2b-256 checksum
How to use checksums
8636d119a71fd240faaf924a4d491b46f7b31e11db53511501ed8fe5c1eaab42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Release files / exception_details-0.0.3-py3-none-any.whl

Download URL exception_details-0.0.3-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0de15b028b8512a006b1749dfa0547ada45d6c7bbc6ee3b1677f0b6f9fa64afb
BLAKE2b-256 checksum
How to use checksums
e33c58a715bc915cbcb622a770076e155a3be85d9c9ef93c0f55266e8de859af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Security for exception-details 0.0.3

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.

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