Problem.
Both requests>=2.31.0 and httpx>=0.27.0 are required. Two HTTP stacks = two connection pools, two TLS contexts, two sets of retry semantics.
Actions.
Acceptance:
rg 'import requests' hackagent/ returns nothing; requests removed from pyproject.toml.
Problem.
Both
requests>=2.31.0andhttpx>=0.27.0are required. Two HTTP stacks = two connection pools, two TLS contexts, two sets of retry semantics.Actions.
httpx(sync + async with one API).requestsusage:rg -n 'import requests|from requests' hackagent/.requests.Sessionadapters andrequests.exceptions.*catches.requestsfromdependencies(keep transitively if needed).Acceptance:
rg 'import requests' hackagent/returns nothing;requestsremoved frompyproject.toml.