PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Mocking Python Packages

Python packages with the GitHub topic mocking. Sorted by monthly downloads, with stars and forks.
kevin1024
vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing

21.3M 3K 444
mongomock
mongomock

Small library for mocking pymongo collection objects for testing purposes

7.7M 1K 360
pnuckowski
aioresponses

Aioresponses is a helper for mock/fake web requests in python aiohttp package.

5.3M 556 105
pytest-dev
pyfakefs

Provides a fake file system that mocks the Python file system modules.

3.2M 753 106
gabrielfalcao
httpretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module

806K 2K 285
Kludex
cassetter

Rust-powered HTTP cassette recorder for Python tests. Safe by default.

409K 22 3
h2non
pook

HTTP traffic mocking and testing made easy in Python

337K 375 52
stphivos
django-mock-queries

A library for mocking django queryset functions in memory for testing

241K 324 56
mindflayer
mocket

a socket mock framework - for all kinds of socket animals, web-clients included

235K 311 52
Xion
callee

Argument matchers for unittest.mock

181K 90 12
rajivsarvepalli
mock-alchemy

SQLAlchemy mock helpers.

144K 80 11
flexmock
flexmock

Mock/stub/spy library for Python

108K 65 18
matthewdeanmartin
openmock

Python Opensearch Mock for test purposes (fork of elasticmock)

40K 20 19
mdomke
pytest-mongodb

pytest plugin for mocking MongoDB with fixtures

33K 66 20
davidlatwe
montydb

Monty, Mongo tinified. MongoDB implemented in Python !

29K 618 37
kajaste
pychoir

A Simple Unit Test Matcher Library for Python 3.6+

22K 22 2
zhukovgreen
pytest-when

Pytest plugin for more readable mocking

17K 25 2
leynos
cmd-mox

Python-native command mocking

8K 0 0
eerimoq
nala

🦁 Nala - A delightful test framework for C projects.

5K 68 6
ivancrneto
pymox

Pymox - Python mocking on steroids

5K 14 6
promptromp
mockstack

An API mocking workhorse 🐎

3K 2 0
dmayo3
mocksafe

Type-safe mocking for Python.

3K 13 2
beyhangl
evalcraft

Deterministic $0 pytest assertions for AI agents — catch the agent that quietly stopped calling its tools, and cost blowups, offline in CI.

3K 4 2
ollipa
chainmock

Mocking library for Python

2K 12 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology