-
-
Notifications
You must be signed in to change notification settings - Fork 47.1k
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency fileenhancementThis PR modified some existing filesThis PR modified some existing filesgood first issuehelp wanted
Description
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 remove requests
and add httpx
. Keep the file sorted alphabetically.
Line 11 in 485f688
requests |
Edit the file .pre-commit-config.yaml
to remove additional_dependencies: [types-requests]
Python/.pre-commit-config.yaml
Line 58 in 485f688
additional_dependencies: [types-requests] |
Modify the 36 Python files that import requests
to use httpx instead.
If an algorithm does multiple httpx
calls, consider if the AsyncClient
should be used.
Add PEP723 headers to allow the scripts to be run standalone.
+ # /// script
+ # requires-python = ">=3.13"
+ # dependencies = [
+ # "httpx",
+ # ]
+ # ///
Metadata
Metadata
Assignees
Labels
dependenciesPull requests that update a dependency filePull requests that update a dependency fileenhancementThis PR modified some existing filesThis PR modified some existing filesgood first issuehelp wanted