pytest-csv
CSV output for pytest.
Decision gist · record as of 2026-08-14
Yes, if you have a stable test suite and need CSV output for reporting or data analysis. No, if you require ongoing maintenance, compatibility with the latest pytest versions, or support for new features—the project is abandoned (last release April 2021) and shows no signs of active development. Evaluate whether your pytest version and Python environment are compatible before committing to it in a new project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with only two runtime dependencies (pytest and six).
- However, the package is abandoned—last release was 2021-04-22, over 1940 days ago, with no recent commits.
- Use only if your test infrastructure is stable and you do not expect ongoing maintenance or compatibility updates.
License · maintenance · safety
GPLv3 (copyleft) — Licensed under GPLv3 (copyleft). Any project that uses this plugin must comply with GPLv3 terms, including making source code available under the same license if distributed. This is a significant constraint for proprietary or closed-source projects.
last release 2021-04-22 (1940 days) · last repo commit 2023-01-11 · 21 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 551,864 downloads/mo, #6,046 on PyPI
Alternatives
Verify before relying
pip install pytest-csv
py.test --csv tests.csv
# With custom columns:
py.test --csv results.csv --csv-columns host,function,status,duration- Whether the plugin remains compatible with pytest versions released after 2021-04-22, particularly recent major versions.
- Whether the six dependency is still necessary or if it can be removed for modern Python 3 environments.
What it is and what it does
pytest-csv is a pytest plugin that captures test execution results and writes them to a CSV file instead of (or in addition to) the standard pytest output. It provides fine-grained control over which test metadata columns to include—such as test name, status, duration, markers, parameters, and system information—and allows customization of CSV formatting options like delimiter and quote character.
The plugin is useful for test result aggregation, reporting, and analysis workflows where you need structured data rather than human-readable console output. It integrates directly into pytest's execution model via command-line flags and supports dynamic column generation through conftest.py hooks, allowing you to record custom properties from individual tests.
Use it for
- Export test results to CSV for import into spreadsheets or data analysis tools for trend analysis and reporting.
- Capture test execution metrics (duration, status, parameters) in a structured format for CI/CD pipeline integration.
- Generate test reports that include system and environment information (host, Python version, OS) alongside test outcomes.
- Record custom test properties and markers as separate CSV columns for detailed test categorization and filtering.
- Automate test result aggregation across multiple test runs for historical tracking and performance monitoring.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a stable test suite and need CSV output for reporting or data analysis.
No, if you require ongoing maintenance, compatibility with the latest pytest versions, or support for new features—the project is abandoned (last release April 2021) and shows no signs of active development. Evaluate whether your pytest version and Python environment are compatible before committing to it in a new project.
Install
pytest-csv on PyPI
Before you install
Low install friction with only two runtime dependencies (pytest and six). However, the package is abandoned—last release was 2021-04-22, over 1940 days ago, with no recent commits. Use only if your test infrastructure is stable and you do not expect ongoing maintenance or compatibility updates.
License in practice
Licensed under GPLv3 (copyleft). Any project that uses this plugin must comply with GPLv3 terms, including making source code available under the same license if distributed. This is a significant constraint for proprietary or closed-source projects.
Quickstart
pip install pytest-csv
py.test --csv tests.csv
# With custom columns:
py.test --csv results.csv --csv-columns host,function,status,duration
Verify before relying
- Whether the plugin remains compatible with pytest versions released after 2021-04-22, particularly recent major versions.
- Whether the six dependency is still necessary or if it can be removed for modern Python 3 environments.
Package facts
| License | GPLv3 copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespytestsix |
| Maintenance | Abandoned 1,940 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 551,864 / month, #6,046 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: PytestLicense :: OSI Approved :: GNU General Public License (GPL)Operating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: pytest_csv-3.0.0-py2.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 csv export”
- pytest-csvA pytest plugin that exports test results to CSV format with…
- pytest-reporterA pytest plugin that generates customizable test reports from…
- django-admin-csvexportAdds a Django admin action that exports selected model instances from…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
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.
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.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
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.
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.
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.
See also pytest-reportlog · pytest-md · pytest-md-report · detect-delimiter · pytest-durations · pytest-excel · csv-diff · pytest-progress · pyexcel-io · pytest-fail-slow