Skip to content
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

13.8M 3K 455
mongomock
mongomock

Small library for mocking pymongo collection objects for testing purposes

9.6M 1K 362
pnuckowski
aioresponses

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

5.4M 556 106
pytest-dev
pyfakefs

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

3.1M 758 114
gabrielfalcao
httpretty

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

716K 2K 286
Kludex
cassetter

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

559K 27 2
h2non
pook

HTTP traffic mocking and testing made easy in Python

386K 376 52
stphivos
django-mock-queries

A library for mocking django queryset functions in memory for testing

284K 324 55
Xion
callee

Argument matchers for unittest.mock

179K 90 12
rajivsarvepalli
mock-alchemy

SQLAlchemy mock helpers.

161K 80 11
mindflayer
mocket

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

147K 314 53
flexmock
flexmock

Mock/stub/spy library for Python

125K 65 21
idlesign
pytest-stub

Stub packages, modules and attributes.

107K 9 1
matthewdeanmartin
openmock

Python Opensearch Mock for test purposes (fork of elasticmock)

46K 20 19
mdomke
pytest-mongodb

pytest plugin for mocking MongoDB with fixtures

40K 66 20
davidlatwe
montydb

Monty, Mongo tinified. MongoDB implemented in Python !

39K 618 37
jharibo
pookx

HTTP traffic mocking and testing made easy in Python. Maintained fork of h2non/pook, published on PyPI as pookx.

31K 4 0
exasol
exasol-udf-mock-python

This projects provides a mock runner for Exasol Python3 UDFs which allows you to test your UDFs locally without a database.

28K 1 2
ollipa
chainmock

Mocking library for Python

18K 12 0
kajaste
pychoir

A Simple Unit Test Matcher Library for Python 3.6+

16K 23 2
zhukovgreen
pytest-when

Pytest plugin for more readable mocking

14K 25 2
leynos
cmd-mox

Python-native command mocking

12K 0 0
eerimoq
nala

🦁 Nala - A delightful test framework for C projects.

11K 68 6
dmayo3
mocksafe

A mocking library developed to enable static and runtime type checking of your mocks to keep them in sync with production code.

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