pytest-print
pytest-print adds the printer fixture you can use to print messages to the user (directly to the pytest runner, not stdout)
Decision gist · record as of 2026-08-14
Yes. Low install friction, active maintenance, permissive license, no known vulnerabilities, and a single stable dependency (pytest). Useful for any test suite that needs visible progress reporting or debug output during long-running or hard-to-debug tests.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with only pytest as a runtime dependency.
- Actively maintained with a recent release 24 days ago and steady repository activity.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-07-21 (24 days) · last repo commit 2026-08-10 · 81 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 196,546 downloads/mo, #9,782 on PyPI
Alternatives
Verify before relying
pip install pytest-print
import pytest
def test_example(printer):
printer("Test step 1")
printer("Test step 2")- Whether the package works with pytest versions older than the minimum tested version in the classifiers.
- Performance impact when printing large volumes of messages in long-running test suites.
What it is and what it does
pytest-print is a pytest plugin that provides fixtures for printing messages directly to test output without being captured by pytest's output suppression. It solves the problem of communicating test progress or debug information when you cannot attach a debugger—letting end users see that a test is still running rather than appearing frozen.
The package offers three main fixtures: a basic printer for simple messages, a pretty_printer with hierarchical formatting and elapsed-time display, and a factory for custom formatters. Messages appear in pytest's standard output even when tests pass, and the plugin can be controlled via CLI flags (`--print`, `--print-relative-time`) to show output at different verbosity levels.
Use it for
- Report sub-steps in long-running tests to show progress and prevent timeout confusion.
- Print debug information when you cannot use a debugger, helping users confirm tests are not deadlocked.
- Create hierarchical, indented output for nested test operations with custom icons and timing.
- Add elapsed-time tracking to test output to identify performance bottlenecks.
- Customize message formatting with different indentation, icons, and timer formats per test.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, active maintenance, permissive license, no known vulnerabilities, and a single stable dependency (pytest). Useful for any test suite that needs visible progress reporting or debug output during long-running or hard-to-debug tests.
Install
pytest-print on PyPI
Before you install
Low friction: pure Python wheel with only pytest as a runtime dependency. Actively maintained with a recent release 24 days ago and steady repository activity.
Requires Python 3.10 or later.
License in practice
MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pytest-print
import pytest
def test_example(printer):
printer("Test step 1")
printer("Test step 2")
Verify before relying
- Whether the package works with pytest versions older than the minimum tested version in the classifiers.
- Performance impact when printing large volumes of messages in long-running test suites.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepytest |
| Maintenance | Actively maintained 24 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 196,546 / month, #9,782 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 LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pytest_print-1.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 › “pytest output capture bypass”
- pytest-printAdds fixtures to pytest that print messages directly to test output,…
- seleniumbaseSeleniumBase is a browser automation framework that combines Selenium…
- pytest-catchlogA pytest plugin that automatically captures log messages during test…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pytest-lazy-fixtures · pytest-unused-fixtures · pytest-lazy-fixture · pytest-harvest · pytest-deadfixtures · pytest-docker · pytest-cases · pytest-redis · pylint-pytest · pytest-rng