...

/

Choose an Appropriate Library

Choose an Appropriate Library

Define our criteria for choosing a library, look at the popular Python libraries available, and make our choice.

Before we start creating a client to consume REST services, we need to select the Python library that we’re going to use.

First of all, we need to define what we need the library to do. Then, after looking at the available Python libraries, we’ll be able to select the best match for our requirements. So, let’s first specify the selection criteria.

Press + to interact
Python
Python

Our criteria

There are many libraries in every language that can be used to access a service, ranging from low-level TCPTransmission Control Protocol access-based libraries at one end to very high-level libraries at the other end that abstract out all the connection-related details. So, let’s define our requirements and conditions for choosing a library. What we need is a library with the following features:

  1. It should abstract out the low-level connection details.
  2. It should allow us to directly access/use the lower HTTP layers if required.
  3. If point 2
...

Access this course and 1200+ top-rated courses and projects.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy