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
Edit the file .pre-commit-config.yaml
to remove additional_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 the AsyncClient
should be used.
Add PEP723 headers to allow the scripts to be run standalone.
+ # /// script
+ # requires-python = ">=3.13"
+ # dependencies = [
+ # "httpx",
+ # ]
+ # ///
Activity
[-]Replace dependency requests with httpx[/-][+]Replace dependency `requests` with `httpx`[/+]lukazlim commentedon May 13, 2025
Hi, I would like to take this issue, by when would you like the change to be completed?
cclauss commentedon May 13, 2025
No rush. Take your time to do it right. We do not assign issues, so someone else might deliver a PR before yours.
lukazlim commentedon May 13, 2025
Submitted a PR, the changes don't include web_programming/get_imdbtop.py.DISABLED which triggers algorithms-keeper to automatically close the PR
requests
withhttpx
#12743requests
withhttpx
#12743requests
withhttpx
#12744