{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"}],"enrichment":{"capability":"Syntax-highlighted, declarative pretty printer for Python that formats complex data structures and custom objects with readable output, replacing the standard library pprint with a Wadler-Leijen layout algorithm.","skillfed_tags":["debugging","repl-tools","formatting"],"use_cases":["Replace pprint in REPL sessions and debugging to get syntax-highlighted, readable output for complex nested data structures.","Register custom pretty printers for your dataclasses or attrs classes to see them formatted nicely in logs and debugging output.","Pretty-print Django model instances and querysets in development and testing without writing custom __repr__ methods.","Format numpy arrays and requests library objects with explicit type information for clearer inspection during development.","Integrate into Jupyter notebooks or IPython shells to improve the readability of cell output for nested or custom objects."],"what_it_does":"Prettyprinter is a drop-in replacement for Python's standard library pprint that formats data structures with syntax highlighting and readable indentation. It uses a modified Wadler-Leijen layout algorithm to optimize formatting of nested dictionaries, lists, and other common types. The package also provides a declarative interface for registering custom pretty printers for your own classes, so you can define how instances should be displayed without manual string formatting.\n\nThe package comes with built-in formatters for datetime, enum, and pytz objects (enabled by default), and optional extras for dataclasses, attrs, django models, numpy arrays, and requests objects. You can install these extras to automatically pretty-print instances of those types. It works by registering type handlers that the printer consults when rendering output, making it easy to extend for domain-specific types.","worth_installing":"Yes, if you are working with Python 3.5 or 3.6 and want better REPL output formatting without dependencies. No, if you need active maintenance or compatibility with modern Python versions\u2014the package is dormant (last release June 2019, no commits since December 2023) and its classifiers suggest it was never updated beyond Python 3.6. Consider it only for legacy projects or as a reference implementation; for new projects, verify that optional extras work with current library versions."},"id":"prettyprinter","links":{"html":"https://skillfed.io/packages/prettyprinter","md":"https://skillfed.io/packages/prettyprinter.md","pypi":"https://pypi.org/project/prettyprinter/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2019-06-22","license_spdx":null,"license_treatment":"permissive","name":"prettyprinter","python_support":"unspecified","summary":"Syntax-highlighting, declarative and composable pretty printer for Python 3.5+"},"popularity":{"monthly_downloads":830388,"position":4949,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.18.0"}
