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

93.3M 2K 156
lundberg
respx

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

15M 795 55
patrys
httmock

A mocking library for requests

2.6M 472 58
lk-geimfari
mimesis

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

1.7M 5K 359
gabrielfalcao
httpretty

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

1.6M 2K 279
Samsung
bluezoo

BlueZ D-Bus API mock running entirely in user space

412K 3 0
miki725
alchemy-mock

SQLAlchemy mock helpers.

313K 83 15
nivbend
mock-open

A better mock for file I/O

194K 7 4
h2non
pook

HTTP traffic mocking and testing made easy in Python

160K 373 49
tekumara
fakesnow

Run, mock and test fake Snowflake databases locally.

135K 193 33
mindflayer
mocket

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

113K 308 51
carletes
mock-ssh-server

Python mock SSH server for testing purposes

86K 57 33
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

36K 54 4
vrcmarcos
elasticmock

Python Elasticsearch Mock for test purposes

24K 115 65
ezequielramos
http-server-mock

Python 3 library to mock a http server using Flask

22K 12 3
mcous
decoy

๐Ÿฆ† Opinionated mocking library for Python

21K 34 4
haarcuba
testix

Mocking framework for Python with *exact* Scenarios

19K 7 3
ncouture
mockssh

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

16K 130 25
pilagod
nextmock

NextMock is an enhanced mock for unittest.mock.Mock

10K 18 1
joellefkowitz
mock-file-tree

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

6K 1 0
codenio
mock-gpio

Mock Library for RPI.GPIO python Library

6K 35 16
ollipa
chainmock

Mocking library for Python

4K 11 0
google
pytruth

Assertion framework for Python unit tests

4K 158 19
    • Data from PyPI, GitHub, ClickHouse, and BigQuery