-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Allow to pass requests session #413
Copy link
Copy link
Closed
Labels
triage meI really want to be triaged.I really want to be triaged.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
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)If it sounds good, I can have tiny PR for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triage meI really want to be triaged.I really want to be triaged.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.