PyPI StatsPyPI Stats
DiscoverCompareTrendingDashboard
PyPI Stats — Download analytics for Python packages
APIGitHubPrivacyTerms

Sign in to subscribe to our weekly trending newsletter.

Download data sourced from BigQuery (Google). Counts may include CI/CD and mirror traffic.
Inspired by and built upon the work of pypistats.org
Discover/Testing
🧪

Best Python Testing Libraries

Tools for unit testing, integration testing, mocking, and code quality assurance.

24 packages · ranked by health score & downloads

Trending this week

↑ virtualenv↑ pexpect↑ uv↑ beartype↑ playwright
#1pluggyv1.6.0
85

plugin and hook calling mechanisms for python

693.7M/moMIT
#2pytestv9.0.2
88

pytest: simple powerful testing with Python

549.8M/mo★ 13.7K
#3virtualenvv21.1.0↑
82

Virtual Python Environment builder

343.2M/mo★ 5.0K
#4coveragev7.13.4
83

Code coverage measurement for Python

217.6M/moApache-2.0
#5pexpectv4.9.0↑
86

Pexpect allows easy control of interactive console applications.

164.3M/moISC license★ 2.8K
#6ruffv0.15.4
82

An extremely fast Python linter and code formatter, written in Rust.

174.2M/mo★ 46.7K
#7uvv0.10.8↑
87

An extremely fast Python package and project manager, written in Rust.

126.0M/mo★ 82.2K
#8pytest-covv7.0.0
81

Pytest plugin for measuring coverage.

156.6M/mo★ 2.0K
#9pytest-asynciov1.3.0↓
77

Pytest support for asyncio

145.9M/mo★ 1.6K
#10blackv26.1.0
78

The uncompromising code formatter.

111.9M/mo★ 41.4K
#11beartypev0.22.9↑
83

Unbearably fast near-real-time pure-Python runtime-static type-checker.

76.6M/moMIT★ 3.4K
#12pytest-xdistv3.8.0
76

pytest xdist plugin for distributed testing, most importantly across multiple CPUs

97.7M/mo★ 1.8K
#13pytest-mockv3.15.1↓
79

Thin-wrapper around the mock package for easier use with pytest

83.1M/moMIT★ 2.0K
#14Fakerv40.8.0↓
85

Faker is a Python package that generates fake data for you.

62.6M/moMIT License★ 19.2K
#15mccabev0.7.0
80

McCabe checker, plugin for flake8

78.3M/moExpat license★ 675
#16pyv1.11.0
83

library with cross-python path, ini-parsing, io, code, log facilities

60.8M/moMIT license
#17playwrightv1.58.0↑
88

A high-level API to automate web browsers

46.3M/mo★ 14.4K
#18seleniumv4.41.0
85

Official Python bindings for Selenium WebDriver

50.7M/moApache-2.0
#19semgrepv1.153.1↑
87

Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

42.2M/mo★ 14.6K
#20flake8v7.3.0
83

the modular source code checker: pep8 pyflakes and co

50.5M/moMIT
#21pytest-timeoutv2.4.0↓
78

pytest plugin to abort hanging tests

49.0M/moMIT★ 248
#22great-expectationsv1.13.1↓
90

Always know what to expect from your data.

27.3M/moApache-2.0★ 11.3K
#23motov5.1.21↓
83

A library that allows you to easily mock out tests based on AWS infrastructure

35.9M/moApache-2.0★ 8.4K
#24pylintv4.0.5
75

python code static checker

48.0M/mo★ 5.7K
← All categoriesSearch testing packages →