{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"}],"enrichment":{"capability":"Formats Python objects for readable output using the Wadler\u2013Lindig pretty-printing algorithm, which breaks lines more intelligently than the built-in pprint to consume less horizontal space.","skillfed_tags":["pretty-printing","debugging","formatting"],"use_cases":["Format error messages and debug output that fit within terminal width constraints without excessive line wrapping.","Create readable reprs for nested dataclasses or custom types by implementing the `__pdoc__` method.","Display NumPy arrays in concise form (e.g., `f64[2,3](numpy)`) rather than full element dumps.","Add ANSI escape codes to pretty-printed output for terminal-based debugging and logging.","Replace pprint in test assertions or logging where output readability and compactness are both important."],"what_it_does":"Wadler\u2013Lindig is a pretty-printer for Python objects that implements the Wadler\u2013Lindig algorithm, a layout algorithm that breaks lines more intelligently than the built-in pprint module. Instead of pprint's right-aligned continuation style, it produces vertically compact output that respects a target width and indentation level. The library has zero dependencies and is implemented in pure Python.\n\nIt is designed for two main use cases: replacing pprint in error messages and debug output where horizontal space matters, and creating custom pretty-printed representations for complex types like nested dataclasses or other tree-like structures. You can customize formatting either by adding a `__pdoc__` method to your class or by passing a `custom` formatter to the pprint call. It also supports ANSI escape codes and provides concise summaries for NumPy arrays and similar types.","worth_installing":"Yes. It is a lightweight, dependency-free tool with active maintenance and no known vulnerabilities. Install it if you need better-formatted object output than pprint in error messages, debug logs, or custom repr implementations. The Alpha status is not a blocker\u2014the algorithm itself is well-established\u2014but be aware the API may change in minor ways before 1.0."},"id":"wadler-lindig","links":{"html":"https://skillfed.io/packages/wadler-lindig","md":"https://skillfed.io/packages/wadler-lindig.md","pypi":"https://pypi.org/project/wadler-lindig/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-06-18","license_spdx":null,"license_treatment":"permissive","name":"wadler-lindig","python_support":"supports_current","summary":"A Wadler\u2013Lindig pretty-printer for Python."},"popularity":{"monthly_downloads":4850104,"position":2214,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.1.7"}
