pytest-metadata
pytest plugin for test session metadata
Install
pytest-metadata on PyPI
pip
pip install pytest-metadatauv
uv add pytest-metadatapoetry
poetry add pytest-metadataPackage facts
| License | not declared (copyleft) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pytest |
| Maintenance | actively maintained — 913 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: pytest_metadata-3.1.1-py3-none-any.whl
Keywords: metadata, pytest
About pytest-metadata
from the package's own PyPI description — quoted content, verbatim
pytest-metadata
pytest-metadata is a plugin for pytest <http://pytest.org>_ that provides
access to test session metadata.
.. image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg :target: https://github.com/pytest-dev/pytest-metadata/blob/master/LICENSE :alt: License .. image:: https://img.shields.io/pypi/v/pytest-metadata.svg :target: https://pypi.python.org/pypi/pytest-metadata/ :alt: PyPI .. image:: https://img.shields.io/travis/pytest-dev/pytest-metadata.svg :target: https://travis-ci.org/pytest-dev/pytest-metadata/ .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black :alt: Travis .. image:: https://img.shields.io/github/issues-raw/pytest-dev/pytest-metadata.svg :target: https://github.com/pytest-dev/pytest-metadata/issues :alt: Issues .. image:: https://img.shields.io/requires/github/pytest-dev/pytest-metadata.svg :target: https://requires.io/github/pytest-dev/pytest-metadata/requirements/?branch=master :alt: Requirements
Requirements
You will need the following in order to use pytest-metadata:
- Python 3.8+ or...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
A pytest plugin that captures and exposes test session metadata—including Python version, platform, installed packages, and CI environment details—for use in test reports and custom test logic.
Low friction: pure Python wheel with only pytest as a runtime dependency. Actively maintained (last commit 2026-05-25, status active) and production-stable since 2017.
Licensed under Mozilla Public License 2.0 (MPL 2.0), a copyleft license requiring derivative works to disclose source and license under the same terms; permissible for most internal and open-source use but requires careful review in proprietary contexts.
Usage
pip install pytest-metadata
# In a test file:
import pytest
def test_check_metadata(metadata):
assert 'Python' in metadata
assert 'Platform' in metadata
Requires Python 3.8 or later (including PyPy3).
Verdict: A mature, actively maintained pytest plugin with zero known vulnerabilities and low install friction. The MPL 2.0 copyleft license is permissive for open-source and most internal projects but requires legal review for proprietary redistribution. Suitable for any pytest-based test suite needing session metadata capture and reporting.
Needs verification
- Whether the copyleft requirement applies to code that merely imports and uses the plugin versus code that modifies or redistributes it.
- Performance impact when gathering CI environment metadata across multiple CI providers in large test suites.
Similar packages
copyleft · top 1,000 on PyPI
pytest-djangopermissive · top 1,000 on PyPI
pytest-timeoutpermissive · top 1,000 on PyPI
giturlparsepermissive · top 1,000 on PyPI
pytest-mockpermissive · top 1,000 on PyPI
pluggypermissive · top 100 on PyPI
cfn-lintpermissive · top 1,000 on PyPI
mockpermissive · top 1,000 on PyPI
outcomepermissive · top 1,000 on PyPI
pytestpermissive · top 100 on PyPI