$npx skillfedfor your agent

pytest-astropy-header

pytest plugin to add diagnostic information to the header of the test output

With conditionsPyPI TestingReleased Sep 2022314.2K downloads / moBSD 3-Clause LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_astropy_header-0.2.2-py3-none-any.whl
v0.2.2 · released 2022-09-06 · Python >=3.7 · 1 runtime deps: pytest

Yes, if you run pytest and need environment diagnostics in test output. The plugin is lightweight, has no complex dependencies, and is actively maintained. Install it when you want test logs to automatically capture system and package version context without manual logging code.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction installation as a pure-Python wheel with only pytest as a runtime dependency.
  • Active maintenance with a recent commit on 2026-08-03, though the latest release was in 2022-09-06.

License · maintenance · safety

BSD 3-Clause License (permissive) — BSD 3-Clause License (permissive) allows use in most projects without restriction, including commercial and proprietary software.

last release 2022-09-06 (1438 days) · last repo commit 2026-08-03 · 8 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 314,167 downloads/mo, #7,705 on PyPI

Verify before relying

pip install pytest-astropy-header

# In conftest.py:
def pytest_configure(config):
    config.option.astropy_header = True
  • Whether the plugin works with pytest versions beyond those tested in the fact sheet
  • Performance impact when displaying many custom package versions
Same gist for agents: .md · .json

What it is and what it does

pytest-astropy-header is a pytest plugin that injects diagnostic metadata into test output headers. When enabled, it displays the current date, platform, Python version, encoding details, and versions of selected dependencies before tests run. This helps developers and CI systems quickly understand the environment in which tests executed, making it easier to reproduce issues or debug environment-specific failures.

The plugin is designed primarily for Astropy-affiliated projects but works with any pytest-based test suite. It can be enabled via conftest.py or setup.cfg, and supports customization of which packages appear in the header and what additional text to append. The single runtime dependency is pytest itself, making installation straightforward.

Use it for

  • Include system and dependency versions in CI/CD test logs for reproducibility and debugging
  • Display Python environment details in test output when running tests locally or in containers
  • Customize which package versions appear in test headers for Astropy-related projects
  • Append custom diagnostic text to pytest output headers for project-specific metadata

Worth the install?

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

With conditions

Yes, if you run pytest and need environment diagnostics in test output.

The plugin is lightweight, has no complex dependencies, and is actively maintained. Install it when you want test logs to automatically capture system and package version context without manual logging code.

Install

pytest-astropy-header on PyPI

Before you install

Low friction installation as a pure-Python wheel with only pytest as a runtime dependency. Active maintenance with a recent commit on 2026-08-03, though the latest release was in 2022-09-06.

License in practice

BSD 3-Clause License (permissive) allows use in most projects without restriction, including commercial and proprietary software.

Quickstart

pip install pytest-astropy-header

# In conftest.py:
def pytest_configure(config):
    config.option.astropy_header = True

Verify before relying

  • Whether the plugin works with pytest versions beyond those tested in the fact sheet
  • Performance impact when displaying many custom package versions

Package facts

LicenseBSD 3-Clause License permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceActively maintained 1,438 days since the last release
Last repo commit
First released
Downloads314,167 / month, #7,705 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: pytest_astropy_header-0.2.2-py3-none-any.whl

Tags

Capabilities
pytest header diagnostic informationtest output system informationpytest plugin version reportingtest environment diagnosticspytest dependency versions displayastropy test header pluginpytest configuration header
Topics
pytest-plugintest-diagnosticsastropy-ecosystem

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 header diagnostic information”

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

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

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.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pytest-astropy · pytest-remotedata · pytest-filter-subpackage · pytest-mypy · asdf-astropy · pytest-helpers-namespace · PyAVM · pytest-beartype-tests · pytest-json