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 ...