10 Best Python Mocking Libraries

List hand-picked by Openbase Experts
Learn More

fak

Faker

Faker is a Python package that generates fake data for you.

License Icon
License: MIT License
User RatingN/A
Top Feedback
N/A
GitHub Stars
13K
Weekly Downloads
0
Last Commit
1mo ago
mim

mimesis

Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
0
Last Commit
1mo ago

responses

A utility for mocking out the Python Requests library.

License Icon
License: Apache 2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
0
Last Commit
2mos ago
htt

httpretty

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

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
0
Last Commit
2mos ago
moc

mocket

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

License Icon
License: BSD
User RatingN/A
Top Feedback
N/A
GitHub Stars
222
Weekly Downloads
0
Last Commit
2mos ago
aio

aioresponses

Aioresponses is a helper for mock/fake web requests in python aiohttp package.

License Icon
License: Unknown
User RatingN/A
Top Feedback
N/A
GitHub Stars
318
Weekly Downloads
0
Last Commit
2mos ago
fre

freezegun

Let your Python tests travel through time

License Icon
License: Apache 2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
0
Last Commit
5mos ago
vcr

vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
0
Last Commit
2mos ago
moc

mock

Rolling backport of unittest.mock for all Pythons

License Icon
License: Unknown
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
N/A

aresponses

Asyncio http mocking. Similar to the responses library used for 'requests'

License Icon
License: Unknown
User RatingN/A
Top Feedback
N/A
GitHub Stars
79
Weekly Downloads
0
Last Commit
1yr ago
fak

fake2db

create custom test databases that are populated with fake data

License Icon
License: Unknown
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
0
Last Commit
2yrs ago
dou

doublex

Python test doubles

License Icon
License: GPLv3
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
N/A
aio

aiomock

a version of pythons unittest.Mock with async methods

License Icon
License: MIT
User RatingN/A
Top Feedback
N/A
GitHub Stars
23
Weekly Downloads
0
Last Commit
5yrs ago
rad

radar

Generate random date(time) in Python.

License Icon
License: GPL 2.0/LGPL 2.1
User RatingN/A
Top Feedback
N/A
GitHub Stars
7
Weekly Downloads
0
Last Commit
8yrs ago
htt

httmock

A mocking library for requests

License Icon
License: Apache-2.0
User RatingN/A
Top Feedback
N/A
GitHub Stars
431
Weekly Downloads
0
Last Commit
1yr ago