O'Reilly logo

Python Requests Essentials by Bala Subrahmanyam Varanasi, Rakesh Vidya Chandra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing HTTPretty

We can install HTTPretty effortlessly from Python Package Index (PyPi).

pip install HTTPretty

We will be learning many more things with examples in this process of getting used to HTTPretty; And in this course of journey we will be using libraries like mock, sure and obviously Requests. Here we go, with those installations:

>>> pip install requests sure mock

Let us take a peek at what exactly those packages deal with:

  • mock: It is a testing library which allows us to replace parts of the system under test with mock objects
  • sure: It is a Python library which is used to make assertions

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required