How To Install python3-httpretty on Fedora 36

In this tutorial we learn how to install python3-httpretty in Fedora 36. python3-httpretty is HTTP request mock tool for Python 3

Introduction

In this tutorial we learn how to install python3-httpretty on Fedora 36.

What is python3-httpretty

Once upon a time a python developer wanted to use a RESTful API, everything was fine but until the day he needed to test the code that hits the RESTful API what if the API server is down? What if its content has changed? Don’t worry, HTTPretty is here for you.

We can use yum or dnf to install python3-httpretty on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-httpretty.

Install python3-httpretty on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-httpretty using dnf by running the following command:

sudo dnf -y install python3-httpretty

Install python3-httpretty on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-httpretty using yum by running the following command:

sudo yum -y install python3-httpretty

How To Uninstall python3-httpretty on Fedora 36

To uninstall only the python3-httpretty package we can use the following command:

sudo dnf remove python3-httpretty

python3-httpretty Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/httpretty
/usr/lib/python3.10/site-packages/httpretty-1.1.4-py3.10.egg-info
/usr/lib/python3.10/site-packages/httpretty-1.1.4-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/httpretty-1.1.4-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/httpretty-1.1.4-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/httpretty-1.1.4-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/httpretty-1.1.4-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/httpretty/__init__.py
/usr/lib/python3.10/site-packages/httpretty/__pycache__
/usr/lib/python3.10/site-packages/httpretty/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/core.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/core.cpython-310.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/errors.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/errors.cpython-310.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/http.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/http.cpython-310.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/httpretty/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/httpretty/compat.py
/usr/lib/python3.10/site-packages/httpretty/core.py
/usr/lib/python3.10/site-packages/httpretty/errors.py
/usr/lib/python3.10/site-packages/httpretty/http.py
/usr/lib/python3.10/site-packages/httpretty/utils.py
/usr/lib/python3.10/site-packages/httpretty/version.py
/usr/share/doc/python3-httpretty
/usr/share/doc/python3-httpretty/README.rst
/usr/share/licenses/python3-httpretty
/usr/share/licenses/python3-httpretty/COPYING

References

Summary

In this tutorial we learn how to install python3-httpretty on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).