Replace dependency requests
with httpx
#12732
Labels
dependencies
Pull requests that update a dependency file
enhancement
This PR modified some existing files
good first issue
help wanted
Feature description
https://pypi.org/project/requests is becoming less popular.
https://pypi.org/project/httpx is a next-generation HTTP client for Python.
Edit the file
requirements.txt
to removerequests
and addhttpx
. Keep the file sorted alphabetically.Python/requirements.txt
Line 11 in 485f688
Edit the file
.pre-commit-config.yaml
to removeadditional_dependencies: [types-requests]
Python/.pre-commit-config.yaml
Line 58 in 485f688
Modify the 36 Python files that
import requests
to use httpx instead.If an algorithm does multiple
httpx
calls, consider if theAsyncClient
should be used.Add PEP723 headers to allow the scripts to be run standalone.
The text was updated successfully, but these errors were encountered: