| 1 |
pytest
Frameworks
|
1,046,171,354 |
14,424 |
|
Frameworks
Testing
Developer Tools
|
→ |
|
A mature full-featured Python testing tool.
|
|
|
|
| 2 |
coverage
Code Coverage
|
316,775,442 |
3,409 |
|
Code Coverage
Testing
Developer Tools
|
→ |
|
Code coverage measurement.
|
|
|
|
| 3 |
ruff
Linters and Formatters
|
312,934,903 |
49,234 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
An extremely fast Python linter and code formatter.
|
|
|
|
| 4 |
sortedcontainers
Algorithms
|
266,093,650 |
3,973 |
|
Algorithms
Algorithms and Design Patterns
Developer Tools
|
→ |
|
Fast and pure-Python implementation of sorted collections.
|
|
|
|
| 5 |
mypy
Type Checkers
|
202,454,660 |
20,598 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
Check variable types during compile time.
|
|
|
|
| 6 |
pre-commit
Git Hooks
|
190,216,617 |
15,506 |
|
Git Hooks
Code Analysis
Developer Tools
|
→ |
|
A framework for managing and maintaining multi-language pre-commit hooks.
|
|
|
|
| 7 |
black
Linters and Formatters
|
174,207,086 |
41,803 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
The uncompromising Python code formatter.
|
|
|
|
| 8 |
ipython
Developer Tools
|
169,967,456 |
16,771 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
A powerful interactive Python shell, and the kernel behind Jupyter notebooks.
|
|
|
|
| 9 |
isort
Linters and Formatters
|
134,882,750 |
6,949 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A Python utility / library to sort imports.
|
|
|
|
| 10 |
playwright-python
Browser Automation
|
101,807,691 |
14,918 |
|
Browser Automation
Testing
Developer Tools
|
→ |
|
Python version of the Playwright testing and automation library.
|
|
|
|
| 11 |
sphinx
Developer Tools
|
81,236,567 |
7,977 |
|
Documentation
Developer Tools
|
→ |
|
Python Documentation generator.
|
|
|
|
| 12 |
invoke
Developer Tools
|
81,171,400 |
4,767 |
|
Build Tools
Developer Tools
|
→ |
|
A tool for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks.
|
|
|
|
| 13 |
faker
Fake Data
|
77,228,436 |
19,369 |
|
Fake Data
Testing
Developer Tools
|
→ |
|
A Python package that generates fake data.
|
|
|
|
| 14 |
responses
Mock
|
66,843,457 |
4,344 |
|
Mock
Testing
Developer Tools
|
→ |
|
A utility library for mocking out the requests Python library.
|
|
|
|
| 15 |
pylint
Linters and Formatters
|
62,167,628 |
5,712 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A fully customizable source code analyzer.
|
|
|
|
| 16 |
freezegun
Mock
|
57,422,727 |
4,522 |
|
Mock
Testing
Developer Tools
|
→ |
|
Travel through time by mocking the datetime module.
|
|
|
|
| 17 |
selenium
Browser Automation
|
54,572,951 |
34,372 |
|
Browser Automation
Testing
Developer Tools
|
→ |
|
Python bindings for Selenium WebDriver.
|
|
|
|
| 18 |
flake8
Linters and Formatters
|
53,893,856 |
3,814 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A wrapper around pycodestyle, pyflakes and McCabe.
|
|
|
|
| 19 |
hypothesis
Frameworks
|
49,419,052 |
8,894 |
|
Frameworks
Testing
Developer Tools
|
→ |
|
Hypothesis is an advanced Quickcheck style property based testing library.
|
|
|
|
| 20 |
ty
Type Checkers
|
40,089,865 |
19,479 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
An extremely fast Python type checker and language server.
|
|
|
|
| 21 |
pyright
Type Checkers
|
37,932,628 |
15,589 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
Full-featured static type checker for Python from Microsoft, the engine behind Pylance.
|
|
|
|
| 22 |
tox
Test Runners
|
33,033,599 |
3,922 |
|
Test Runners
Testing
Developer Tools
|
→ |
|
Auto builds and tests distributions in multiple Python versions
|
|
|
|
| 23 |
bandit
Linters and Formatters
|
27,925,517 |
8,221 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A tool designed to find common security issues in Python code.
|
|
|
|
| 24 |
py-spy
Profiler
|
27,432,805 |
15,436 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A sampling profiler for Python programs. Written in Rust.
|
|
|
|
| 25 |
vcrpy
Mock
|
25,197,645 |
2,982 |
|
Mock
Testing
Developer Tools
|
→ |
|
Record and replay HTTP interactions on your tests.
|
|
|
|
| 26 |
respx
Mock
|
22,183,623 |
829 |
|
Mock
Testing
Developer Tools
|
→ |
|
Mock HTTPX with awesome request patterns and response side effects.
|
|
|
|
| 27 |
factory_boy
Object Factories
|
21,524,632 |
3,806 |
|
Object Factories
Testing
Developer Tools
|
→ |
|
A test fixtures replacement for Python.
|
|
|
|
| 28 |
mkdocs-material
Developer Tools
|
16,915,235 |
27,277 |
|
Documentation
Developer Tools
|
→ |
|
A documentation framework and Material Design theme built on MkDocs.
|
|
|
|
| 29 |
ipdb
pdb-like Debugger
|
16,800,562 |
1,976 |
|
pdb-like Debugger
Debugging Tools
Developer Tools
|
→ |
|
|
|
|
|
| 30 |
mkdocs
Developer Tools
|
16,787,496 |
22,350 |
|
Documentation
Developer Tools
|
→ |
|
Markdown friendly documentation generator.
|
|
|
|
| 31 |
jupyter
Developer Tools
|
16,413,995 |
13,302 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
A rich toolkit to help you make the most out of using Python interactively.
|
|
|
|
| 32 |
memray
Profiler
|
15,005,598 |
15,188 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A memory profiler that tracks allocations in Python code, native extensions, and the interpreter itself.
|
|
|
|
| 33 |
locust
Load Testing
|
13,427,154 |
28,076 |
|
Load Testing
Testing
Developer Tools
|
→ |
|
Scalable user load testing tool written in Python.
|
|
|
|
| 34 |
vulture
Code Analysis
|
11,860,357 |
4,766 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
A tool for finding and analyzing dead Python code.
|
|
|
|
| 35 |
polyfactory
Object Factories
|
10,959,033 |
1,501 |
|
Object Factories
Testing
Developer Tools
|
→ |
|
mock data generation library with support to classes (continuation of pydantic-factories)
|
|
|
|
| 36 |
pyinstrument
Profiler
|
10,119,442 |
8,000 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A statistical wall-clock profiler with low overhead and readable call-tree output.
|
|
|
|
| 37 |
django-debug-toolbar
Others
|
8,619,083 |
8,378 |
|
Others
Debugging Tools
Developer Tools
|
→ |
|
Display various debug information for Django.
|
|
|
|
| 38 |
pyrefly
Type Checkers
|
7,234,863 |
6,892 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
A fast type checker and language server for Python.
|
|
|
|
| 39 |
diagrams
Developer Tools
|
6,492,875 |
42,521 |
|
Documentation
Developer Tools
|
→ |
|
Diagram as Code.
|
|
|
|
| 40 |
schemathesis
API Testing
|
6,240,612 |
3,536 |
|
API Testing
Testing
Developer Tools
|
→ |
|
A tool for automatic property-based testing of web applications built with Open API / Swagger specifications.
|
|
|
|
| 41 |
nox
Test Runners
|
5,697,633 |
1,552 |
|
Test Runners
Testing
Developer Tools
|
→ |
|
Flexible test automation for Python.
|
|
|
|
| 42 |
robotframework
Frameworks
|
4,677,771 |
11,823 |
|
Frameworks
Testing
Developer Tools
|
→ |
|
A generic test automation framework.
|
|
|
|
| 43 |
seleniumbase
Browser Automation
|
3,026,575 |
12,933 |
|
Browser Automation
Testing
Developer Tools
|
→ |
|
Python framework for web automation & testing, with stealth options.
|
|
|
|
| 44 |
transitions
Design Patterns
|
2,753,956 |
6,580 |
|
Design Patterns
Algorithms and Design Patterns
Developer Tools
|
→ |
|
A lightweight, object-oriented finite state machine implementation.
|
|
|
|
| 45 |
marimo
Developer Tools
|
2,491,233 |
22,373 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
Transform data and train models, feels like a next-gen notebook, stored as Git-friendly Python.
|
|
|
|
| 46 |
mimesis
Fake Data
|
2,285,918 |
4,840 |
|
Fake Data
Testing
Developer Tools
|
→ |
|
is a Python library that help you generate fake data.
|
|
|
|
| 47 |
rope
Refactoring
|
1,926,132 |
2,232 |
|
Refactoring
Code Analysis
Developer Tools
|
→ |
|
Rope is a python refactoring library.
|
|
|
|
| 48 |
pdoc
Developer Tools
|
1,910,547 |
2,511 |
|
Documentation
Developer Tools
|
→ |
|
Epydoc replacement to auto generate API documentation for Python libraries.
|
|
|
|
| 49 |
icecream
Others
|
1,877,889 |
10,105 |
|
Others
Debugging Tools
Developer Tools
|
→ |
|
Inspect variables, expressions, and program execution with a single, simple function call.
|
|
|
|
| 50 |
ptpython
Developer Tools
|
1,812,685 |
5,446 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
Advanced Python REPL built on top of the python-prompt-toolkit.
|
|
|
|
| 51 |
pudb
pdb-like Debugger
|
1,303,065 |
3,251 |
|
pdb-like Debugger
Debugging Tools
Developer Tools
|
→ |
|
A full-screen, console-based Python debugger.
|
|
|
|
| 52 |
flask-debugtoolbar
Others
|
1,114,933 |
978 |
|
Others
Debugging Tools
Developer Tools
|
→ |
|
A port of the django-debug-toolbar to flask.
|
|
|
|
| 53 |
hunter
Tracing
|
911,237 |
872 |
|
Tracing
Debugging Tools
Developer Tools
|
→ |
|
A flexible code tracing toolkit.
|
|
|
|
| 54 |
scons
Developer Tools
|
877,634 |
2,413 |
|
Build Tools
Developer Tools
|
→ |
|
A software construction tool.
|
|
|
|
| 55 |
doit
Developer Tools
|
764,570 |
2,079 |
|
Build Tools
Developer Tools
|
→ |
|
A task runner and build tool.
|
|
|
|
| 56 |
prospector
Code Analysis
|
447,932 |
2,085 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
A tool to analyze Python code.
|
|
|
|
| 57 |
scalene
Profiler
|
372,092 |
13,492 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A high-performance, high-precision CPU, GPU, and memory profiler for Python.
|
|
|
|
| 58 |
monkeytype
Type Annotations Generators
|
354,688 |
5,000 |
|
Type Annotations Generators
Code Analysis
Developer Tools
|
→ |
|
A system for Python that generates static type annotations by collecting runtime types.
|
|
|
|
| 59 |
repowise
Code Analysis
|
31,647 |
5,970 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
Codebase intelligence that indexes repos into dependency graphs, git history, and auto-generated docs with dead code detection.
|
|
|
|
| 60 |
algorithms
Algorithms
|
1,547 |
25,538 |
|
Algorithms
Algorithms and Design Patterns
Developer Tools
|
→ |
|
Minimal examples of data structures and algorithms.
|
|
|
|
| 61 |
thealgorithms
Algorithms
|
Not on PyPI |
223,820 |
|
Algorithms
Algorithms and Design Patterns
Developer Tools
|
→ |
|
All Algorithms implemented in Python.
|
|
|
|
| 62 |
mock
Mock
|
Not on PyPI |
74,339 |
|
Mock
Testing
Developer Tools
Built-in
|
→ |
|
(Python standard library) A mocking and patching library.
|
|
|
|
| 63 |
python-patterns
Design Patterns
|
Not on PyPI |
42,927 |
|
Design Patterns
Algorithms and Design Patterns
Developer Tools
|
→ |
|
A collection of design patterns in Python.
|
|
|
|