Python Mock

Open-source Python projects categorized as Mock

Top 23 Python Mock Projects

  1. Moto

    A library that allows you to easily mock out tests based on AWS infrastructure.

    Project mention: Testando código que chama serviços da AWS | dev.to | 2025-02-04
  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Mimesis

    Mimesis is a robust data generator for Python that can produce a wide range of fake data in multiple languages.

    Project mention: Mimesis: The Fake Data Generator That Will Blow Your Mind! | dev.to | 2025-05-08

    View the Project on GitHub

  4. freezegun

    Let your Python tests travel through time

  5. responses

    A utility for mocking out the Python Requests library.

  6. VCR.py

    Automatically mock your HTTP interactions to simplify and speed up testing

  7. httpretty

    Intercept HTTP requests at the Python socket level. Fakes the whole socket module (by gabrielfalcao)

  8. time-machine

    Travel through time in your tests.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. respx

    Mock HTTPX with awesome request patterns and response side effects 🦋

  11. betamax

    A VCR imitation designed only for python-requests.

  12. mock

    The Python mock library (by testing-cabal)

  13. httmock

    A mocking library for requests

  14. fakeredis-py

    Implementation of Redis API in python without having a server running. Fully compatible with using redis-py.

  15. Mocket

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

  16. mockintosh

    Mocks for microservice environments

  17. cornell

    Cornell - record & replay mock server (by hiredscorelabs)

  18. fakesnow

    Run, mock and test fake Snowflake databases locally.

  19. python-libfaketime

    A fast time mocking alternative to freezegun that wraps libfaketime.

  20. apyr

    API mocking with Python.

  21. mock-ssh-server

    Python mock SSH server for testing purposes

  22. mockafka-py

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

  23. Mock Generator

    A tool to auto generate the basic mocks and asserts for faster unit testing

  24. megamock

    The developer experience (DevX) upgrade for Python mocking

  25. pytest-mock-generator

    A pytest fixture wrapper for https://pypi.org/project/mock-generator

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Mock discussion

Log in or Post with

Python Mock related posts

  • 6 Ways To Supercharge Your Node.js Serverless Workflow

    2 projects | dev.to | 23 Apr 2025
  • Testando código que chama serviços da AWS

    4 projects | dev.to | 4 Feb 2025
  • From Idea To Development: My Journey Completing the Cloud Resume Challenge AWS

    6 projects | dev.to | 8 Jan 2025
  • About time: how to unit test code that depends on time

    3 projects | news.ycombinator.com | 19 Dec 2023
  • Class Credentials does not exist

    1 project | /r/PHPhelp | 9 Jul 2023
  • Please recommend a good API Mocking tool

    2 projects | /r/django | 16 May 2023
  • What is the development enviroment for AWS?

    3 projects | /r/aws | 28 Apr 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 19 May 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Mock projects in Python? This list will help you:

# Project Stars
1 Moto 7,863
2 Mimesis 4,566
3 freezegun 4,347
4 responses 4,249
5 VCR.py 2,790
6 httpretty 2,125
7 time-machine 841
8 respx 687
9 betamax 573
10 mock 538
11 httmock 466
12 fakeredis-py 340
13 Mocket 293
14 mockintosh 176
15 cornell 140
16 fakesnow 132
17 python-libfaketime 76
18 apyr 58
19 mock-ssh-server 57
20 mockafka-py 52
21 Mock Generator 38
22 megamock 36
23 pytest-mock-generator 31

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?