pytest-parametrization
Simpler PyTest parametrization
What it is and what it does
pytest-parametrization is a decorator-based wrapper around pytest's parametrization feature, designed to reduce boilerplate when writing parameterized tests. Instead of using pytest.mark.parametrize with tuples or lists, you stack decorators to define test cases with named parameters and optional auto-detection of parameter names from the test function signature. It also supports default parameter values and custom name factories to generate test case names from argument values.
The package has been abandoned since mid-2022 and targets Python versions that are now end-of-life (2.7, 3.4–3.6). While it carries no known vulnerabilities and uses a permissive MIT license, the lack of maintenance means it will not receive updates for modern Python compatibility issues or pytest API changes. For new projects, pytest's native parametrization or actively maintained alternatives are likely safer choices.
Use it for:
- Simplify test code when you have many test cases with the same assertions but different inputs and expected outputs.
- Use auto-detection to avoid repeating parameter names in both decorators and function signatures.
- Generate descriptive test case names dynamically from argument values using a name factory function.
- Define default values for optional parameters across multiple test cases to reduce repetition.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides decorator-based parametrization for pytest test functions, allowing you to define multiple test cases with different inputs and expected outputs in a cleaner syntax than pytest's built-in parametrize.
No. The package is abandoned (last update 2022-05-22, no commits since 2023-08-01) and targets obsolete Python versions (2.7, 3.4–3.6). Modern pytest versions have native parametrization that covers the same use cases. Install only if you are maintaining legacy code already using this package; for new projects, use pytest's built-in parametrize decorator instead.
Install
pytest-parametrization on PyPI
pip
pip install pytest-parametrizationuv
uv add pytest-parametrizationpoetry
poetry add pytest-parametrizationInstalling pytest-parametrization
Before you install
High install friction and abandoned maintenance status. Last release was 2022-05-22 with no updates since; repo shows 49 stars and last commit on 2023-08-01. The package targets Python 2.7 through 3.6, which are now end-of-life. Consider whether pytest's native parametrization or active alternatives better suit your current Python version.
License in practice
MIT License (permissive) places no restrictions on use, modification, or distribution. You can safely use this in commercial or proprietary projects without licensing obligations.
Quickstart
pip install pytest-parametrization
from parametrization import Parametrization
@Parametrization.parameters("actual", "expected")
@Parametrization.case(name="test_1", actual=1, expected=1)
@Parametrization.case("test_2", 2, 2)
def test_example(actual, expected):
assert actual == expected
Package targets Python 2.7 and 3.4–3.6; compatibility with Python 3.7+ is untested and unsupported by the maintainers.
Verify before relying
- Whether this package works reliably with modern Python versions (3.8+) despite classifier claims only up to 3.6.
- Whether pytest's native parametrize decorator (available since pytest 2.3) now covers all use cases this package was designed to simplify.
- Active maintenance status or community forks that may have continued development.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*) |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,545 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 114,571/month — #12,288 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest-parametrization-2022.2.1.tar.gz
Keywords: pytest, parametrize, parametrization, singular
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
parameter-decoratorsProvides decorators that automatically convert…
copyleft · top 15,000 on PyPI
pytest-casespytest-cases lets you separate test case data…
permissive · top 5,000 on PyPI
pytest-lazy-fixtureAllows you to use pytest fixtures directly as…
permissive · top 15,000 on PyPI
unittest-parametrizeAdds parametrization support to unittest…
permissive · top 15,000 on PyPI
parametrizeProvides a `@parametrize` decorator that works…
permissive · top 15,000 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
pytest-deepassertA pytest plugin that replaces standard…
permissive · top 15,000 on PyPI
pytest-factoryboyIntegrates factory_boy with pytest to register…
permissive · top 5,000 on PyPI
pytest-embeddedA pytest plugin that provides fixtures and…
permissive · top 15,000 on PyPI
pytest-lazy-fixturesAllows you to reference pytest fixtures…
permissive · top 5,000 on PyPI