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

Mock Python Packages

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

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

103.4M 2K 157
lundberg
respx

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

18.8M 813 61
lk-geimfari
mimesis

Mimesis is a fast Python library for generating fake data in multiple languages.

2.3M 5K 359
patrys
httmock

A mocking library for requests

2.1M 472 58
gabrielfalcao
httpretty

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

1.8M 2K 279
tekumara
fakesnow

Run, mock and test fake Snowflake databases locally.

1.3M 199 36
Samsung
bluezoo

BlueZ D-Bus API mock running entirely in user space

346K 3 0
miki725
alchemy-mock

SQLAlchemy mock helpers.

275K 83 15
h2non
pook

HTTP traffic mocking and testing made easy in Python

261K 373 49
mindflayer
mocket

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

227K 309 51
nivbend
mock-open

A better mock for file I/O

226K 7 4
carletes
mock-ssh-server

Python mock SSH server for testing purposes

112K 57 33
alm0ra
mockafka-py

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

43K 64 17
mharrisb1
openai-responses

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

42K 55 4
pilagod
nextmock

NextMock is an enhanced mock for unittest.mock.Mock

35K 18 1
mcous
decoy

๐Ÿฆ† Opinionated mocking library for Python

26K 34 4
haarcuba
testix

Mocking framework for Python with *exact* Scenarios

24K 7 3
ncouture
mockssh

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

22K 130 25
vrcmarcos
elasticmock

Python Elasticsearch Mock for test purposes

20K 115 65
ezequielramos
http-server-mock

Python 3 library to mock a http server using Flask

12K 12 3
0x12th
niquests-mock

Mocking library for Niquests (a requests fork).

8K 3 0
SilentHacks
simcord

Offline testing framework for discord.py bots โ€” run your real bot against a virtual in-memory Discord. No network, no tokens.

8K 9 0
joellefkowitz
mock-file-tree

A simple interface to mock the os module with a virtual file tree.

6K 1 0
ulamlabs
celery-mock

Easy way to defer celery tasks in tests

5K 4 1
    • Data from PyPI, GitHub, ClickHouse, and BigQuery