Ian Cordasco has written a few API client libraries and works on Requests - Python HTTP library and shares overlapping knowledge in this article.
Article outlines some good practices for using Requests in order to get best performance for you API client. Author suggests using:
- Requests Connection Pooling - Cruise Control for Better Performance
- Requests Adapters - Fine Tuning Your HTTP Experience
- and example code how to use them in efficient way all together
The example code allows users who know what they need to configure to do so and for the library to provide defaults that it deems necessary when the user doesn’t specify things.
[Read More]