Currently, some requests params could be passed thru requests_kwargs. However, it's still limited while we need to adapt requests session. For instance, session may required customized adapter for multi-threading, which's common requirement for calling googlemaps.
import requests.adapters
session = requests.Session()
adapter = requests.adapters.HTTPAdapter(pool_connections=100, pool_maxsize=100)
session.mount('http://', adapter)
Ref: https://stackoverflow.com/questions/18466079/can-i-change-the-connection-pool-size-for-pythons-requests-module
If it sounds good, I can have tiny PR for this issue.
Currently, some requests params could be passed thru
requests_kwargs. However, it's still limited while we need to adapt requests session. For instance,sessionmay required customized adapter for multi-threading, which's common requirement for callinggooglemaps.Ref: https://stackoverflow.com/questions/18466079/can-i-change-the-connection-pool-size-for-pythons-requests-module
If it sounds good, I can have tiny PR for this issue.