{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/10"}],"enrichment":{"capability":"Provides short, fast, configurable string representations as an alternative to the standard library's repr, with built-in handling for common types and an API for registering custom repr functions.","skillfed_tags":["debugging","repr-customization"],"use_cases":["Debug logging of large data structures without truncating manually or waiting for slow repr computations","REPL and interactive environments where long object representations clutter the output","Custom repr registration for domain-specific types to control how they appear in logs and error messages","Preventing performance issues in exception handlers or debuggers that call repr on many objects","Nested data structure inspection where you want to limit depth and width of the output"],"what_it_does":"cheap_repr is a drop-in replacement for Python's built-in repr() that produces shorter, faster string representations of objects. It truncates long outputs intelligently, handles nesting depth limits, and suppresses expensive repr computations for classes that produce very long strings. The library comes with built-in handlers for common types like lists, dicts, and strings, and lets you register custom repr functions for your own classes.\n\nYou use it by calling cheap_repr(obj) instead of repr(obj). It respects a configurable suppression threshold (default 300 characters) and max nesting level (default 3), making it useful in debugging, logging, and REPL contexts where repr output can become unwieldy. You can tune behavior globally or per-function, and it catches exceptions in repr functions to prevent crashes.","worth_installing":"Yes, if you work with large or deeply nested data structures and want faster, more readable repr output. The package is stable, has no dependencies, and carries no security vulnerabilities. Maintenance is dormant but the code is mature; install it if your use case matches, but don't expect active feature development."},"id":"cheap-repr","links":{"html":"https://skillfed.io/packages/cheap-repr","md":"https://skillfed.io/packages/cheap-repr.md","pypi":"https://pypi.org/project/cheap-repr/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-08-10","license_spdx":null,"license_treatment":"permissive","name":"cheap-repr","python_support":"unspecified","summary":"Better version of repr/reprlib for short, cheap string representations."},"popularity":{"monthly_downloads":268099,"position":8283,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.2"}
