$npx skillfedfor your agent

cheap-repr

Better version of repr/reprlib for short, cheap string representations.

With conditionsPyPI Software DevelopmentReleased Aug 2024268.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — cheap_repr-0.5.2-py2.py3-none-any.whl
v0.5.2 · released 2024-08-10

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Maintenance is dormant—last release was 2024-08-10 and no commits since then—but the repository remains active and the package is stable enough for production use if your needs haven't changed.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.

last release 2024-08-10 (734 days) · last repo commit 2024-08-10 · 26 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 268,099 downloads/mo, #8,283 on PyPI

Verify before relying

from cheap_repr import cheap_repr
result = cheap_repr(list(range(100)))
print(result)  # '[0, 1, 2, ..., 97, 98, 99]'
  • Whether pandas DataFrame and Series repr customization (max_rows, max_cols) works with current pandas versions
  • Performance improvement magnitude compared to reprlib on large nested structures
Same gist for agents: .md · .json

What it is and 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.

You 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.

Use it for

  • 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

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

cheap-repr on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance is dormant—last release was 2024-08-10 and no commits since then—but the repository remains active and the package is stable enough for production use if your needs haven't changed.

License in practice

MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.

Quickstart

from cheap_repr import cheap_repr
result = cheap_repr(list(range(100)))
print(result)  # '[0, 1, 2, ..., 97, 98, 99]'

Verify before relying

  • Whether pandas DataFrame and Series repr customization (max_rows, max_cols) works with current pandas versions
  • Performance improvement magnitude compared to reprlib on large nested structures

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 734 days since the last release
Last repo commit
First released
Downloads268,099 / month, #8,283 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: cheap_repr-0.5.2-py2.py3-none-any.whl

Tags

Capabilities
repr alternativestring representation truncationcustom repr registrationfast object reprrepr suppressionconfigurable repr outputreprlib replacement
Topics
debuggingrepr-customization

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 › “repr alternative”

  • cheap-reprProvides short, fast, configurable string representations as an…
  • renewGenerates reproducible string representations of Python objects that…
  • fieldsGenerates lightweight container classes with automatic `__repr__`,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also renew · pprintpp · sqlalchemy-repr · jsonconversion · ptpython · fastnumbers · objectory · shortuuid · pampy · eerepr