icecream
Never use print() to debug again: inspect variables, expressions, and program execution with a single, simple function call.
Decision gist · record as of 2026-08-14
Yes. IceCream is actively maintained, permissively licensed, has no known vulnerabilities, and low install friction. It genuinely improves the print-debugging workflow for developers who already use that pattern. Install it if you debug with print statements; skip it only if you use a dedicated debugger exclusively.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with four lightweight runtime dependencies (colorama, pygments, executing, asttokens).
- Actively maintained with recent releases; last commit 2026-08-10 and 10105 repository stars indicate ongoing support.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute icecream freely in commercial and private projects with minimal restrictions.
last release 2026-04-03 (133 days) · last repo commit 2026-08-10 · 10,105 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,953,600 downloads/mo, #3,412 on PyPI
Alternatives
Verify before relying
from icecream import ic
def foo(i):
return i + 333
ic(foo(123))
# Output: ic| foo(123): 456- Whether the 60% typing speed improvement claim is measurable in typical workflows
- Performance overhead of syntax highlighting and AST inspection during debugging sessions
What it is and what it does
IceCream is a debugging utility that replaces manual print() statements with a smarter ic() function. When called with arguments, ic() prints both the expression and its evaluated value; when called without arguments, it prints the filename, line number, and parent function name. The output is automatically syntax highlighted and pretty-printed, making it faster and clearer than writing print("var:", var) by hand.
The package depends on colorama for cross-platform terminal colors, pygments for syntax highlighting, executing to introspect the calling code, and asttokens to map AST nodes back to source text. It supports Python 3 and PyPy3, integrates into builtins for global availability, and can be configured to redirect output to logging systems or custom handlers. The function returns its arguments, so ic() can be inserted into existing expressions without breaking them.
Use it for
- Quickly inspect variable values during development without typing verbose print statements with labels
- Trace execution flow by inserting ic() calls to see which code paths run and in what order
- Debug complex expressions by wrapping them in ic() to see both the code and result with syntax highlighting
- Integrate debugging output with logging systems using ic.configureOutput() and ic.format()
- Temporarily disable all debug output with ic.disable() and ic.enable() without removing ic() calls
- Inspect nested data structures with automatic pretty-printing instead of manually formatting them
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
IceCream is actively maintained, permissively licensed, has no known vulnerabilities, and low install friction. It genuinely improves the print-debugging workflow for developers who already use that pattern. Install it if you debug with print statements; skip it only if you use a dedicated debugger exclusively.
Install
icecream on PyPI
Before you install
Low friction: pure Python wheel with four lightweight runtime dependencies (colorama, pygments, executing, asttokens). Actively maintained with recent releases; last commit 2026-08-10 and 10105 repository stars indicate ongoing support.
License in practice
MIT license (permissive) means you can use, modify, and distribute icecream freely in commercial and private projects with minimal restrictions.
Quickstart
from icecream import ic
def foo(i):
return i + 333
ic(foo(123))
# Output: ic| foo(123): 456
Verify before relying
- Whether the 60% typing speed improvement claim is measurable in typical workflows
- Performance overhead of syntax highlighting and AST inspection during debugging sessions
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagescoloramapygmentsexecutingasttokens |
| Maintenance | Actively maintained 133 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,953,600 / month, #3,412 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries |
Evidence: icecream-2.2.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 › “inspect variables and expressions”
- icecreamIceCream provides a drop-in replacement for print() debugging that…
- common-expression-languageEvaluates Google's Common Expression Language (CEL) expressions in…
- PySnooperPySnooper is a decorator-based debugging tool that logs function…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also snoop · objprint · pykdebugparser · executing · colored-traceback · varname · PySnooper · py-expression-eval · devtools · tracerite