| 1 |
pytest
Frameworks
|
849,581,149 |
14,506 |
|
Frameworks
Testing
Developer Tools
|
→ |
|
A mature full-featured Python testing tool.
|
|
|
|
| 2 |
ruff
Linters and Formatters
|
294,406,788 |
49,638 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
An extremely fast Python linter and code formatter.
|
|
|
|
| 3 |
coverage
Code Coverage
|
287,344,465 |
3,412 |
|
Code Coverage
Testing
Developer Tools
|
→ |
|
Code coverage measurement.
|
|
|
|
| 4 |
sortedcontainers
Algorithms
|
226,168,124 |
3,982 |
|
Algorithms
Algorithms and Design Patterns
Developer Tools
|
→ |
|
Fast and pure-Python implementation of sorted collections.
|
|
|
|
| 5 |
pre-commit
Git Hooks
|
166,551,645 |
15,573 |
|
Git Hooks
Code Analysis
Developer Tools
|
→ |
|
A framework for managing and maintaining multi-language pre-commit hooks.
|
|
|
|
| 6 |
mypy
Type Checkers
|
165,431,265 |
20,640 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
Check variable types during compile time.
|
|
|
|
| 7 |
black
Linters and Formatters
|
131,148,464 |
41,844 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
The uncompromising Python code formatter.
|
|
|
|
| 8 |
ipython
Developer Tools
|
111,998,645 |
16,781 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
A powerful interactive Python shell, and the kernel behind Jupyter notebooks.
|
|
|
|
| 9 |
isort
Linters and Formatters
|
101,385,375 |
6,951 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A Python utility / library to sort imports.
|
|
|
|
| 10 |
playwright-python
Browser Automation
|
92,430,594 |
15,003 |
|
Browser Automation
Testing
Developer Tools
|
→ |
|
Python version of the Playwright testing and automation library.
|
|
|
|
| 11 |
faker
Fake Data
|
67,176,724 |
19,402 |
|
Fake Data
Testing
Developer Tools
|
→ |
|
A Python package that generates fake data.
|
|
|
|
| 12 |
invoke
Developer Tools
|
66,272,915 |
4,777 |
|
Build Tools
Developer Tools
|
→ |
|
A tool for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks.
|
|
|
|
| 13 |
responses
Mock
|
54,573,166 |
4,344 |
|
Mock
Testing
Developer Tools
|
→ |
|
A utility library for mocking out the requests Python library.
|
|
|
|
| 14 |
freezegun
Mock
|
50,050,689 |
4,524 |
|
Mock
Testing
Developer Tools
|
→ |
|
Travel through time by mocking the datetime module.
|
|
|
|
| 15 |
hypothesis
Frameworks
|
49,098,933 |
8,968 |
|
Frameworks
Testing
Developer Tools
|
→ |
|
Hypothesis is an advanced Quickcheck style property based testing library.
|
|
|
|
| 16 |
flake8
Linters and Formatters
|
42,953,131 |
3,823 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A wrapper around pycodestyle, pyflakes and McCabe.
|
|
|
|
| 17 |
pylint
Linters and Formatters
|
42,587,642 |
5,724 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A fully customizable source code analyzer.
|
|
|
|
| 18 |
ty
Type Checkers
|
38,994,443 |
19,694 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
An extremely fast Python type checker and language server.
|
|
|
|
| 19 |
pyright
Type Checkers
|
37,808,083 |
15,644 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
Full-featured static type checker for Python from Microsoft, the engine behind Pylance.
|
|
|
|
| 20 |
selenium
Browser Automation
|
37,032,385 |
34,492 |
|
Browser Automation
Testing
Developer Tools
|
→ |
|
Python bindings for Selenium WebDriver.
|
|
|
|
| 21 |
sphinx
Developer Tools
|
34,785,568 |
8,015 |
|
Documentation
Developer Tools
|
→ |
|
Python Documentation generator.
|
|
|
|
| 22 |
bandit
Linters and Formatters
|
25,589,963 |
8,260 |
|
Linters and Formatters
Code Analysis
Developer Tools
|
→ |
|
A tool designed to find common security issues in Python code.
|
|
|
|
| 23 |
vcrpy
Mock
|
24,501,840 |
3,009 |
|
Mock
Testing
Developer Tools
|
→ |
|
Record and replay HTTP interactions on your tests.
|
|
|
|
| 24 |
respx
Mock
|
22,357,410 |
836 |
|
Mock
Testing
Developer Tools
|
→ |
|
Mock HTTPX with awesome request patterns and response side effects.
|
|
|
|
| 25 |
py-spy
Profiler
|
21,492,335 |
15,502 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A sampling profiler for Python programs. Written in Rust.
|
|
|
|
| 26 |
factory_boy
Object Factories
|
20,980,716 |
3,806 |
|
Object Factories
Testing
Developer Tools
|
→ |
|
A test fixtures replacement for Python.
|
|
|
|
| 27 |
tox
Test Runners
|
18,320,784 |
3,933 |
|
Test Runners
Testing
Developer Tools
|
→ |
|
Auto builds and tests distributions in multiple Python versions
|
|
|
|
| 28 |
import-linter
Code Analysis
|
16,768,530 |
1,177 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
A linter that enforces architectural constraints on imports between Python modules.
|
|
|
|
| 29 |
ipdb
pdb-like Debugger
|
14,393,822 |
1,974 |
|
pdb-like Debugger
Debugging Tools
Developer Tools
|
→ |
|
|
|
|
|
| 30 |
mkdocs-material
Developer Tools
|
13,898,400 |
27,441 |
|
Documentation
Developer Tools
|
→ |
|
A documentation framework and Material Design theme built on MkDocs.
|
|
|
|
| 31 |
vulture
Code Analysis
|
13,871,404 |
4,810 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
A tool for finding and analyzing dead Python code.
|
|
|
|
| 32 |
jupyter
Developer Tools
|
13,617,427 |
13,342 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
A rich toolkit to help you make the most out of using Python interactively.
|
|
|
|
| 33 |
memray
Profiler
|
11,434,691 |
15,232 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A memory profiler that tracks allocations in Python code, native extensions, and the interpreter itself.
|
|
|
|
| 34 |
locust
Load Testing
|
10,997,212 |
28,157 |
|
Load Testing
Testing
Developer Tools
|
→ |
|
Scalable user load testing tool written in Python.
|
|
|
|
| 35 |
polyfactory
Object Factories
|
10,264,021 |
1,506 |
|
Object Factories
Testing
Developer Tools
|
→ |
|
mock data generation library with support to classes (continuation of pydantic-factories)
|
|
|
|
| 36 |
pyinstrument
Profiler
|
9,984,640 |
8,008 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A statistical wall-clock profiler with low overhead and readable call-tree output.
|
|
|
|
| 37 |
django-debug-toolbar
Others
|
8,064,122 |
8,379 |
|
Others
Debugging Tools
Developer Tools
|
→ |
|
Display various debug information for Django.
|
|
|
|
| 38 |
pyrefly
Type Checkers
|
7,571,932 |
6,967 |
|
Type Checkers
Code Analysis
Developer Tools
|
→ |
|
A fast type checker and language server for Python.
|
|
|
|
| 39 |
nox
Test Runners
|
4,403,320 |
1,559 |
|
Test Runners
Testing
Developer Tools
|
→ |
|
Flexible test automation for Python.
|
|
|
|
| 40 |
robotframework
Frameworks
|
4,285,722 |
11,884 |
|
Frameworks
Testing
Developer Tools
|
→ |
|
A generic test automation framework.
|
|
|
|
| 41 |
schemathesis
API Testing
|
3,497,727 |
3,599 |
|
API Testing
Testing
Developer Tools
|
→ |
|
A tool for automatic property-based testing of web applications built with Open API / Swagger specifications.
|
|
|
|
| 42 |
transitions
Design Patterns
|
2,788,032 |
6,590 |
|
Design Patterns
Algorithms and Design Patterns
Developer Tools
|
→ |
|
A lightweight, object-oriented finite state machine implementation.
|
|
|
|
| 43 |
diagrams
Developer Tools
|
2,577,786 |
42,618 |
|
Documentation
Developer Tools
|
→ |
|
Diagram as Code.
|
|
|
|
| 44 |
marimo
Developer Tools
|
2,482,711 |
22,778 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
Transform data and train models, feels like a next-gen notebook, stored as Git-friendly Python.
|
|
|
|
| 45 |
mimesis
Fake Data
|
2,301,199 |
4,842 |
|
Fake Data
Testing
Developer Tools
|
→ |
|
is a Python library that help you generate fake data.
|
|
|
|
| 46 |
seleniumbase
Browser Automation
|
2,071,459 |
13,014 |
|
Browser Automation
Testing
Developer Tools
|
→ |
|
Python framework for web automation & testing, with stealth options.
|
|
|
|
| 47 |
pdoc
Developer Tools
|
2,000,178 |
2,513 |
|
Documentation
Developer Tools
|
→ |
|
Epydoc replacement to auto generate API documentation for Python libraries.
|
|
|
|
| 48 |
pudb
pdb-like Debugger
|
1,563,745 |
3,248 |
|
pdb-like Debugger
Debugging Tools
Developer Tools
|
→ |
|
A full-screen, console-based Python debugger.
|
|
|
|
| 49 |
ptpython
Developer Tools
|
1,479,157 |
5,450 |
|
Interactive Interpreter
Developer Tools
|
→ |
|
Advanced Python REPL built on top of the python-prompt-toolkit.
|
|
|
|
| 50 |
rope
Refactoring
|
1,476,667 |
2,236 |
|
Refactoring
Code Analysis
Developer Tools
|
→ |
|
Rope is a python refactoring library.
|
|
|
|
| 51 |
zensical
Developer Tools
|
1,364,466 |
5,711 |
|
Documentation
Developer Tools
|
→ |
|
A modern static site generator for technical documentation.
|
|
|
|
| 52 |
python-statemachine
Design Patterns
|
1,345,278 |
1,310 |
|
Design Patterns
Algorithms and Design Patterns
Developer Tools
|
→ |
|
Expressive statecharts and finite state machines with a declarative API, in sync and async codebases.
|
|
|
|
| 53 |
icecream
Others
|
1,336,737 |
10,108 |
|
Others
Debugging Tools
Developer Tools
|
→ |
|
Inspect variables, expressions, and program execution with a single, simple function call.
|
|
|
|
| 54 |
flask-debugtoolbar
Others
|
1,234,630 |
978 |
|
Others
Debugging Tools
Developer Tools
|
→ |
|
A port of the django-debug-toolbar to flask.
|
|
|
|
| 55 |
hunter
Tracing
|
1,084,916 |
872 |
|
Tracing
Debugging Tools
Developer Tools
|
→ |
|
A flexible code tracing toolkit.
|
|
|
|
| 56 |
complexipy
Code Analysis
|
931,289 |
850 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
Cognitive complexity analysis for Python code, written in Rust.
|
|
|
|
| 57 |
scons
Developer Tools
|
708,635 |
2,419 |
|
Build Tools
Developer Tools
|
→ |
|
A software construction tool.
|
|
|
|
| 58 |
doit
Developer Tools
|
560,797 |
2,084 |
|
Build Tools
Developer Tools
|
→ |
|
A task runner and build tool.
|
|
|
|
| 59 |
scalene
Profiler
|
394,713 |
13,501 |
|
Profiler
Debugging Tools
Developer Tools
|
→ |
|
A high-performance, high-precision CPU, GPU, and memory profiler for Python.
|
|
|
|
| 60 |
monkeytype
Type Annotations Generators
|
386,225 |
5,002 |
|
Type Annotations Generators
Code Analysis
Developer Tools
|
→ |
|
A system for Python that generates static type annotations by collecting runtime types.
|
|
|
|
| 61 |
prospector
Code Analysis
|
370,671 |
2,084 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
A tool to analyze Python code.
|
|
|
|
| 62 |
repowise
Code Analysis
|
20,525 |
6,658 |
|
Code Analysis
Code Analysis
Developer Tools
|
→ |
|
Codebase intelligence that indexes repos into dependency graphs, git history, and auto-generated docs with dead code detection.
|
|
|
|
| 63 |
algorithms
Algorithms
|
2,507 |
25,546 |
|
Algorithms
Algorithms and Design Patterns
Developer Tools
|
→ |
|
Minimal examples of data structures and algorithms.
|
|
|
|
| 64 |
thealgorithms
Algorithms
|
Not on PyPI |
224,602 |
|
Algorithms
Algorithms and Design Patterns
Developer Tools
|
→ |
|
All Algorithms implemented in Python.
|
|
|
|
| 65 |
mock
Mock
|
Stdlib |
77,177 |
|
Mock
Testing
Developer Tools
Stdlib
|
→ |
|
(Python standard library) A mocking and patching library.
|
|
|
|
| 66 |
python-patterns
Design Patterns
|
Not on PyPI |
42,984 |
|
Design Patterns
Algorithms and Design Patterns
Developer Tools
|
→ |
|
A collection of design patterns in Python.
|
|
|
|