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

84.1M 2K 180
lundberg
respx

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

24.6M 838 66
lk-geimfari
mimesis

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

1.9M 5K 365
gabrielfalcao
httpretty

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

806K 2K 285
patrys
httmock

A mocking library for requests

602K 472 56
nivbend
mock-open

A better mock for file I/O

407K 7 4
h2non
pook

HTTP traffic mocking and testing made easy in Python

337K 375 52
carletes
mock-ssh-server

Python mock SSH server for testing purposes

310K 57 33
tekumara
fakesnow

Run, mock and test fake Snowflake databases locally.

305K 211 42
mindflayer
mocket

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

235K 311 52
Samsung
bluezoo

BlueZ D-Bus API mock running entirely in user space

216K 3 1
angryfoxx
httpx2-pytest

pytest fixture to mock HTTPX2

74K 8 1
mountaingod2
aioresponses-ng

Maintained fork of aioresponses with aiohttp compatibility fixes

59K 4 0
miki725
alchemy-mock

SQLAlchemy mock helpers.

55K 83 15
alm0ra
mockafka-py

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

40K 66 18
mcous
decoy

๐Ÿฆ† Opinionated mocking library for Python

31K 36 4
vrcmarcos
elasticmock

Python Elasticsearch Mock for test purposes

26K 115 64
mharrisb1
openai-responses

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

25K 55 4
ncouture
mockssh

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

22K 129 25
ezequielramos
http-server-mock

Python 3 library to mock a http server using Flask

12K 11 3
google
pytruth

Assertion framework for Python unit tests

11K 159 19
SilentHacks
simcord

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

9K 12 0
haarcuba
testix

Mocking framework for Python with *exact* Scenarios

8K 7 3
joellefkowitz
mock-file-tree

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

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