httpretty VS httmock

Compare httpretty vs httmock and see what are their differences.

httpretty

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

httmock

A mocking library for requests (by patrys)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
httpretty httmock
- -
2,092 463
- -
0.0 0.0
29 days ago 7 months ago
Python Python
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

httpretty

Posts with mentions or reviews of httpretty. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning httpretty yet.
Tracking mentions began in Dec 2020.

httmock

Posts with mentions or reviews of httmock. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning httmock yet.
Tracking mentions began in Dec 2020.

What are some alternatives?

When comparing httpretty and httmock you can also consider the following projects:

responses - A utility for mocking out the Python Requests library.

VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing

mock - The Python mock library

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

freezegun - Let your Python tests travel through time

callee - Argument matchers for unittest.mock

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

doublex

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