skillfed

coverage

Code coverage measurement for Python

coverage Permissive license Apache-2.0 Active 3,407 v7.15.4 released

Install

coverage on PyPI

pip

pip install coverage

uv

uv add coverage

poetry

poetry add coverage

Package 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.16Programming Language :: Python :: Free Threading :: 3 - StableProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: 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.
code coverage measurement pythontest coverage analysispython code coverage toolline coverage trackingtest suite coverage reporting

Similar packages