© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
M. ZadkaDevOps in Pythonhttps://doi.org/10.1007/978-1-4842-7996-0_7

7. HTTPX

Moshe Zadka1  
(1)
Belmont, CA, USA
 

Many systems expose a web-based API. The httpx library is useful for automating web-based APIs. It is designed to be easy to use while still exposing many powerful features.

Note that httpx does not support Python 2. If this is a concern, there are alternatives. It is important to remember that Python 2 is not getting security updates, so it is dangerous to use with a library designed to connect to websites.

Using httpx is almost always better than using Pythons standard library HTTP client facilities. It supports flexible authentication, internally ...

Get DevOps in Python: Infrastructure as Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.