coverage
Code coverage measurement for Python
Install
coverage on PyPI
pip
pip install coverageuv
uv add coveragepoetry
poetry add coveragePackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 7 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: coverage-7.15.4-py3-none-any.whl
Keywords: code, coverage, testing
About coverage
from the package's own PyPI description — quoted content, verbatim
.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 .. For details: https://github.com/coveragepy/coveragepy/blob/main/NOTICE.txt
=========== Coverage.py ===========
Code coverage measurement for Python.
.. image:: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg :target: https://vshymanskyy.github.io/StandWithUkraine :alt: Stand with Ukraine
| |kit| |license| |versions| | |test-status| |quality-status| |docs| |metacov| | |tidelift| |sponsor| |stars| |mastodon-coveragepy| |mastodon-nedbat| |bluesky-nedbat|
Coverage.py measures code coverage, typically during test execution. It uses the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which have been executed.
Coverage.py runs on these versions of Python:
.. PYVERSIONS
- Python 3.10 through 3.15 rc1, including free-threading.
- PyPy3 versions 3.10 and 3.11.
Documentation is on Read the Docs. Code repository and issue tracker are on
GitHub.
.. _Read the Docs: https://coverage.readthedocs.io/en/7.15.4/ .. _GitHub:...
Read as markdown · JSON record · Source repository · Homepage · Docs
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
Coverage.py measures which lines of Python code are executed during test runs, using standard library tracing to identify executable and covered code paths.
Installation is straightforward with no runtime dependencies. The package is actively maintained with a release 7 days old, and supports Python 3.10 through 3.15 including free-threading.
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Usage
pip install coverage
import coverage
cov = coverage.Coverage()
cov.start()
# ... run your code ...
cov.stop()
cov.report()
Requires Python 3.10 or later.
Verdict: Coverage.py is a mature, actively maintained code coverage tool with zero known vulnerabilities, low install friction, and permissive licensing. It is well-suited for integration into test pipelines across modern Python versions.
Needs verification
- Whether the package includes optional compiled extensions that might affect install time on some platforms.
- Performance characteristics when measuring coverage on large codebases or with complex tracing requirements.
Similar packages
permissive · top 1,000 on PyPI
ninjapermissive · top 1,000 on PyPI
jaraco.functoolspermissive · top 1,000 on PyPI
importlib-resourcespermissive · top 1,000 on PyPI
importlib-metadatapermissive · top 100 on PyPI
psutilpermissive · top 1,000 on PyPI
zipppermissive · top 100 on PyPI
pytest-runnerpermissive · top 1,000 on PyPI
pytest-covpermissive · top 1,000 on PyPI
snowplow-trackerpermissive · top 1,000 on PyPI