Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Mock Python Packages

Python packages with the GitHub topic mock. Sorted by monthly downloads, with stars and forks.
pytest-dev
pytest-mock

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

89.5M 2K 188
lundberg
respx

Mock HTTPX with awesome request patterns and response side effects ๐Ÿฆ‹

32.7M 847 71
lk-geimfari
mimesis

Mimesis is a Python library for generating fake but realistic data in multiple languages and locales.

2.5M 5K 374
gabrielfalcao
httpretty

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

716K 2K 286
nivbend
mock-open

A better mock for file I/O

603K 6 4
patrys
httmock

A mocking library for requests

511K 471 60
tekumara
fakesnow

Run, mock and test fake Snowflake databases locally.

404K 220 54
h2non
pook

HTTP traffic mocking and testing made easy in Python

386K 376 52
carletes
mock-ssh-server

Python mock SSH server for testing purposes

149K 57 32
mindflayer
mocket

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

147K 314 53
angryfoxx
httpx2-pytest

pytest fixture to mock HTTPX2

136K 8 1
Samsung
bluezoo

BlueZ D-Bus API mock running entirely in user space

113K 3 1
pilagod
nextmock

NextMock is an enhanced mock for unittest.mock.Mock

80K 18 1
mountaingod2
aioresponses-ng

Maintained fork of aioresponses with aiohttp compatibility fixes

75K 4 0
miki725
alchemy-mock

SQLAlchemy mock helpers.

65K 83 15
pact-foundation
pact-python-cli

๐Ÿ”— Pact in a single binary - Mock/Stub Server, Provider Verifier, Broker Client & Plugin CLI

61K 3 2
alm0ra
mockafka-py

Mockafka-py is a Python library designed for in-memory mocking of Kafka.[aiokafka - confluence-kafka-python]

53K 66 18
jharibo
pookx

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

31K 4 0
mharrisb1
openai-responses

๐Ÿงช๐Ÿค– Pytest plugin for OpenAI requests

29K 55 4
0x12th
niquests-mock

Mocking library for Niquests (a requests fork).

19K 5 0
ollipa
chainmock

Mocking library for Python

18K 12 0
vrcmarcos
elasticmock

Python Elasticsearch Mock for test purposes

17K 115 64
ncouture
mockssh

Mock an SSH server and define all commands it supports (Python, Twisted)

17K 130 25
mcous
decoy

๐Ÿฆ† Opinionated mocking library for Python

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