Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
In addition to great Python HTTP client tools such as Requests and HTTPX, the standard library itself supplies the necessary ingredients to make a working HTTP client for API calls. This tutorial shares how to construct and customize such a tool for your own scripts.
You are certainly welcome to copy and use the above function, or browse or clone the Github repo.
Of course, a custom class will work, or attrs, or whatever container works for you.
urllib3 is the dependency for many other tools, including requests. By itself, urllib3 is quite usable. It may be all you need.
pycurl is less popular as a Python library, but interfaces with the well-known libcurl.