objprint
A library that can print Python objects in human readable format
Decision gist · record as of 2026-08-14
Yes. objprint is a low-friction debugging tool with no dependencies, permissive licensing, and broad Python version support (3.9–3.13). It solves a real problem—making object inspection readable during development—and 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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no runtime dependencies.
- The package is in Beta status and has aged since its last release, though the repository remains active with recent commits.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache License 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
last release 2024-11-09 (643 days) · last repo commit 2025-04-02 · 713 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,232,882 downloads/mo, #4,181 on PyPI
Alternatives
Verify before relying
pip install objprint
from objprint import op
class Player:
def __init__(self):
self.name = "Alice"
self.age = 18
op(Player())- Performance characteristics when printing very large or deeply nested object graphs
- Compatibility with dataclasses, NamedTuple, and other special Python types beyond standard classes
What it is and 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.
Beyond 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.
Use it for
- 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
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
objprint is a low-friction debugging tool with no dependencies, permissive licensing, and broad Python version support (3.9–3.13). It solves a real problem—making object inspection readable during development—and 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.
Install
objprint on PyPI
Before you install
Installation is straightforward with no runtime dependencies. The package is in Beta status and has aged since its last release, though the repository remains active with recent commits.
License in practice
Licensed under Apache License 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
Quickstart
pip install objprint
from objprint import op
class Player:
def __init__(self):
self.name = "Alice"
self.age = 18
op(Player())
Verify before relying
- Performance characteristics when printing very large or deeply nested object graphs
- Compatibility with dataclasses, NamedTuple, and other special Python types beyond standard classes
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 643 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,232,882 / month, #4,181 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: objprint-0.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “debug object inspection”
- objprintobjprint provides functions to print Python objects in human-readable…
- freertos-gdbA GDB Python plugin that adds commands to inspect and display…
- curlifyConverts a Python requests request object into an equivalent cURL…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also astpretty · compact-json · icecream · xmlformatter · stringparser · dprint-py · singleton-decorator · cssbeautifier · pytest-print · prettyprinter