PyPI Stats
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About
Home

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

92.7M 2K 156
lundberg
respx

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

12.8M 793 55
patrys
httmock

A mocking library for requests

2.9M 472 58
lk-geimfari
mimesis

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

1.9M 5K 359
gabrielfalcao
httpretty

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

1.5M 2K 279
Samsung
bluezoo

BlueZ D-Bus API mock running entirely in user space

401K 3 0
miki725
alchemy-mock

SQLAlchemy mock helpers.

341K 83 15
nivbend
mock-open

A better mock for file I/O

195K 7 4
h2non
pook

HTTP traffic mocking and testing made easy in Python

170K 372 48
tekumara
fakesnow

Run, mock and test fake Snowflake databases locally.

114K 191 33
carletes
mock-ssh-server

Python mock SSH server for testing purposes

106K 57 33
mindflayer
mocket

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

103K 308 50
alm0ra
mockafka-py

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

41K 64 17
mharrisb1
openai-responses

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

40K 54 4
ncouture
mockssh

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

28K 130 25
mcous
decoy

๐Ÿฆ† Opinionated mocking library for Python

23K 34 4
ezequielramos
http-server-mock

Python 3 library to mock a http server using Flask

19K 12 3
haarcuba
testix

Mocking framework for Python with *exact* Scenarios

19K 7 3
vrcmarcos
elasticmock

Python Elasticsearch Mock for test purposes

18K 115 65
pilagod
nextmock

NextMock is an enhanced mock for unittest.mock.Mock

8K 18 1
joellefkowitz
mock-file-tree

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

6K 1 0
google
pytruth

Assertion framework for Python unit tests

5K 158 19
ollipa
chainmock

Mocking library for Python

5K 11 0
codenio
mock-gpio

Mock Library for RPI.GPIO python Library

5K 35 16
    • Data from PyPI, GitHub, ClickHouse, and BigQuery