Creating Beautiful Tracebacks with Python's Exception Hooks

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • infi.traceback

    better tracebacks

  • printing local variables from each frame

  • py_better_exchook

    nice Python exception hook replacement

  • printing relevant info for each frame (referenced variables)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • better-exceptions

    Pretty and useful exceptions in Python, automatically.

  • # https://github.com/Qix-/better-exceptions # pip install better_exceptions # export BETTER_EXCEPTIONS=1 import better_exceptions better_exceptions.MAX_LENGTH = None # Check if you TERM variable is set to `xterm`, if not set below variable - https://github.com/Qix-/better-exceptions/issues/8 better_exceptions.SUPPORTS_COLOR = True better_exceptions.hook() do_stuff() # Raises ValueError

  • PrettyErrors

    Prettify Python exception output to make it legible.

  • # https://github.com/onelivesleft/PrettyErrors/ # pip install pretty_errors import pretty_errors # `configure` can be omitted if you're satisfied with default settings pretty_errors.configure( filename_display = pretty_errors.FILENAME_EXTENDED, line_number_first = True, display_link = True, line_color = pretty_errors.RED + '> ' + pretty_errors.default_config.line_color, code_color = ' ' + pretty_errors.default_config.line_color, truncate_code = True, display_locals = True ) do_stuff()

  • stackprinter

    Debugging-friendly exceptions for Python

  • # https://github.com/cknd/stackprinter # pip install stackprinter import stackprinter stackprinter.set_excepthook(style='darkbg2') do_stuff()

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Monitor Postgres replication slot growth via Slack

    1 project | news.ycombinator.com | 1 May 2024
  • Fourier Kolmogorov-Arnold Networks

    1 project | news.ycombinator.com | 1 May 2024
  • Emulation of Nintendo Game Boy (DMG-01) (2016) [pdf]

    1 project | news.ycombinator.com | 1 May 2024
  • Show HN: I made ComfyUI nodes for virtual try-on using IDM-VTON

    1 project | news.ycombinator.com | 1 May 2024
  • Add Thumbnails to your project links for better SEO

    2 projects | dev.to | 1 May 2024