{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/5"}],"enrichment":{"capability":"objprint provides functions to print Python objects in human-readable format, with support for custom formatting, filtering attributes, and JSON serialization.","skillfed_tags":["debugging","object-inspection","pretty-printing"],"use_cases":["Debug complex object state during development by printing nested class instances with all their attributes visible","Add structured __str__ methods to custom classes using the @add_objprint decorator for cleaner repr output","Serialize Python objects to JSON format for logging or API responses using objjson","Inline object inspection in function calls by wrapping arguments with op() to see their values without extra variables","Filter object output to show only specific attributes using include/exclude patterns or regex matching","Register custom formatters for domain types (e.g., hex for integers, rounded floats) to standardize debug output"],"what_it_does":"objprint is a debugging and inspection library that replaces Python's standard print with a function that formats objects in a readable, structured way. It shows object attributes with their values, handles nested objects, and can display method signatures. The library works on Python 3.9 through 3.13 and has no external runtime dependencies, making it lightweight to add to any project.\n\nBeyond basic printing, objprint offers several modes: it can serialize objects to JSON-compatible format, filter which attributes to display, register custom formatters for specific types, add a __str__ method to classes via a decorator, and retrieve the string representation without printing. You can also enable or disable printing globally or per-call, add execution context (file, line number, function name), and print argument expressions inline.","worth_installing":"Yes. objprint is a low-friction debugging tool with no dependencies, permissive licensing, and broad Python version support (3.9\u20133.13). It solves a real problem\u2014making object inspection readable during development\u2014and the fact that it returns the object it prints allows inline use. The package is aging but actively maintained, with no known vulnerabilities. Install it if you debug Python objects frequently."},"id":"objprint","links":{"html":"https://skillfed.io/packages/objprint","md":"https://skillfed.io/packages/objprint.md","pypi":"https://pypi.org/project/objprint/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-11-09","license_spdx":null,"license_treatment":"permissive","name":"objprint","python_support":"supports_current","summary":"A library that can print Python objects in human readable format"},"popularity":{"monthly_downloads":1232882,"position":4181,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
