psf/requests
View on GitHub ↗ ★ 54,813 Python
A simple, yet elegant, HTTP library.
55 mentions on Hacker News by 49 people: 5 stories, 50 comments · first 2017-08-14 · latest 2026-09-21
20082026
-
…depend on modern versions of Python packages. Many packages no longer receive updates for 3.8 (e.g. https://github.com/psf/requests ), let alone 3.3, and many others simply don't run on these older python versions (e.g.…
comment by kylebebak · 2026-09-21 · in Sublime Text Build 4213 -
…which does cause some pain [1] https://github.com/rustls/rustls-native-certs/issues/16#issu... [2] https://github.com/psf/requests/issues/2899 [3] https://pypi.org/project/certifi/
comment by thewisenerd · 2026-04-22 · in Some secret management belongs in your HTTP proxy -
…[1] https://learn.microsoft.com/en-us/dotnet/api/system.net.webr... [2] https://github.com/psf/requests/blob/main/HISTORY.md#001-201...
comment by Kwpolska · 2026-03-25 · in Why I forked httpx -
…about effective static analysis and/or program verification to a higher standard than this. [1]: https://github.com/psf/requests/blob/4bd79e397304d46dfccd76f...
comment by woodruffw · 2026-02-23 · in How to train your program verifier -
There's been a branch for it ( https://github.com/psf/requests/tree/hatchling ) for a little while apparently; I guess they won't merge it until absolutely necessary for the 2.33 release. But that is still just over a year after I offered…
comment by zahlman · 2025-12-27 · in How uv got so fast -
…most popular packages on PyPI (Requests is top ten) * had their "source builds" break this year ( https://github.com/psf/requests/issues/6775 ) because of a removed import in setup.py for something that nobody has actually used for years…
comment by zahlman · 2025-12-19 · in Breaking Changes in Python-3.14 -
…uses. And I was curious, what versions of urllib3 does Requests pull in? Well, according to https://github.com/psf/requests/blob/main/setup.cfg , it's this: urllib3>=1.21.1,<3 That is exactly the kind of dependency specification I would…
comment by CaliforniaKarl · 2025-12-10 · in Deprecations via warnings don't work for Python libraries -
…to Requests a few years ago, they feel it's the application's responsibility, discussion here: https://github.com/psf/requests/issues/5724
comment by pimterry · 2025-08-28 · in RFC 8594: The Sunset HTTP Header Field (2019) -
and it is from the beginning: https://github.com/psf/requests/commit/79bb9ee1417afe2231972...
comment by kidmin · 2025-06-04 · in CVE-2024-47081: Netrc credential leak in PSF requests library -
Patch has now been merged, seems the Full Disclosure process works, https://github.com/psf/requests/pull/6965
comment by Daviey · 2025-06-04 · in CVE-2024-47081: Netrc credential leak in PSF requests library -
To be fair, the advice from sigmavirus24 was about dealing with decoding the ':' character: https://github.com/psf/requests/pull/2936/files The code already had `host = ri.netloc.split(':')[0]` before that. The actual root issue is…
comment by sionisrecur · 2025-06-04 · in CVE-2024-47081: Netrc credential leak in PSF requests library -
You are right! https://github.com/psf/requests/blob/c65c780849563c891f35ffc... The post function calls request the request function which uses its own context manager that will call the close function of the connection object.
comment by threeducks · 2025-05-12 · in Hypermode Model Router Preview – OpenRouter Alternative -
…copies included in Pip.) * Requests has been bitten by a Setuptools removal before, last July ( https://github.com/psf/requests/issues/6775 ). That time, the removal was the only reason for bumping the version number, and then it got…
comment by zahlman · 2025-03-25 · in Latest Setuptools broke a bunch of packages -
…history, updates have been sparse lately, even though there are still many unresolved issues. [1] https://github.com/psf/requests/issues/6655 [2] https://github.com/psf/requests/pull/6667 [3] https://github.com/psf/requests/issues/6730 [4]…
comment by thrdbndndn · 2025-01-21 · in Ruff: Python linter and code formatter written in Rust -
…itself, a lot of library authors have made questionable decisions here. A perennial contender is https://github.com/psf/requests/issues/2002 .
comment by FreakLegion · 2024-11-15 · in The Pythonic Emptiness -
…that functionality was grossly unnecessary and wasn't actually being used (notably: Requests - https://github.com/psf/requests/issues/6775 - and Celery - https://github.com/celery/celery/issues/9157 ). Setuptools is one of the most popular…
comment by zahlman · 2024-08-22 · in Vanilla Python Packaging -
…There’s a lot of comments on the issue, but no commitment to implement or close as “won’t fix”. https://github.com/psf/requests/issues/3070
comment by cpeterso · 2023-06-22 · in Go 1.21 Release Candidate -
…de.python.org/getting-started/setup-building/i... The "requests" module in Python (does not use curl) https://github.com/psf/requests
comment by ddtaylor · 2023-03-20 · in I Could Rewrite Curl (2021) -
AFAIK the "requests" module in python (the most popular one) doesn't actually depend on curl: https://github.com/psf/requests
comment by ddtaylor · 2023-03-20 · in I Could Rewrite Curl (2021) -
…known to be well written and look through their code. I believe this was a good one back in my day. https://github.com/psf/requests
comment by bilsbie · 2023-02-17 · in Ask HN: How do you become a better Python developer? -
…potential contributions. Or so I've read. Here's one discussion about it in the requests repo https://github.com/psf/requests/issues/2424
comment by Frotag · 2023-01-04 · in Urllib3 in 2022 -
Some of the links in the paragraph about python-requests have bitrotted. Fixed links: https://github.com/psf/requests/issues/3729 https://foss.heptapod.net/pypy/cffi/-/issues/295
comment by jwilk · 2022-11-13 · in Why does calloc exist? (2016) -
…requests documentation is hosted on ReadTheDocs already. Also you can generate the docs yourself: https://github.com/psf/requests/blob/main/docs/Makefile#L25 I find your focus on the domain kind of odd to be honest. I'm not really sure why…
comment by CogitoCogito · 2022-05-25 · in The domain for the Python Requests library is expired -
From https://github.com/psf/requests/issues/6140 : > The domain is still owned by Kenneth and the maintainers haven't had access to it in quite some time. and: > For those looking for alternatives, https://requests.readthedocs.io/en/latest/…
comment by di · 2022-05-25 · in The domain for the Python Requests library is expired -
GitHub issue: https://github.com/psf/requests/issues/6140
comment by jammycrisp · 2022-05-25 · in The domain for the Python Requests library is expired -
…interesting question. Are you interested in any particular languages? For Python, take a look at: https://github.com/psf/requests
comment by aitoehigie · 2022-03-21 · in Ask HN: Codebases with great, easy to read code? -
…in python[1]. To quote Kenneth Reitz: "...the standard library is where a library goes to die." [1] https://github.com/psf/requests/issues/2424
comment by damagednoob · 2022-01-01 · in Go Fuzzing -
No, this requests: https://github.com/psf/requests
comment by jogu · 2021-12-10 · in The future of Python build systems and Gentoo -
Happy to see my favourite library Python Requests[1] on the list. Congrats team. [1] - https://github.com/psf/requests
comment by abinaya_rl · 2021-04-20 · in Open Source Goes to Mars -
…requests started to depend on a new urllib3 version that now indirectly requires cryptography - https://github.com/psf/requests/commit/99fa7bec On 2018-01-30, portage started to enable the +rsync-verify USE flag by default, which relies on…
comment by throwdbaaway · 2021-03-01 · in Weird architectures weren't supported to begin with -
…is a longstanding issue [1] to add a default timeout, but so far that hasn't happened yet. [1]: https://github.com/psf/requests/issues/3070
comment by Dunedan · 2020-08-29 · in Don't trust default timeouts -
I absolutely agree. According to this comment [1] they're planning to introduce it in v3. [1] https://github.com/psf/requests/issues/3070#issuecomment-328...
comment by dhxt · 2020-02-28 · in Advanced usage of Python requests: timeouts, retries, hooks -
…namespace ...` and haven't seen much `using ...;` (which I think is more readable/acceptable) [1] https://github.com/psf/requests/blob/df918c066fa275abc2bb0c9... [2] https://docs.python.org/3/library/os.html#os.walk [3]…
comment by pfranz · 2020-02-28 · in TOML for Modern C++ -
I always wondered why it was in the requests source code. https://github.com/psf/requests/blob/9b95b4e7b4df1865b058161...
comment by LiamPa · 2020-01-24 · in Hyper Text Coffee Pot Control Protocol -
It looks like requests is now owned by PSF. https://github.com/psf/requests But IDK why requests3 wasn't transferred as well, and why issues appear to be disabled on the repo now. The docs reference a timeout arg (that appears to default…
comment by westurner · 2020-01-11 · in Httpx: A next-generation HTTP client for Python -
…have been given if PSF had been an option. I don't even see NJS on the requests contributor list: https://github.com/psf/requests/blob/master/AUTHORS.rst Finally, requests 3 has a number of features.
comment by privateSFacct · 2019-11-15 · in Why Is the Migration to Python 3 Taking So Long? -
…domains for an hour. Down to 26. But the links on the now-transferred-to-PSF repo are not updated: https://github.com/psf/requests
comment by cuetehlovezz · 2019-09-27 · in Python requests package documentation website is down -
Downgraded from "You can trust this code" to "You may certianly put your trust in this code" in https://github.com/psf/requests/commit/9d4fd3c968b134d98ed27...
comment by holmb · 2019-09-19 · in Requests moved to Python Software Foundation -
…third-party library in the Python ecosystem has a git history that looks like that[0]? [0] https://github.com/psf/requests/commits/master
comment by nicolaslem · 2019-09-19 · in Requests moved to Python Software Foundation -
…has a truthiness equivalent to request success . Can easily trip you to with `res and res.content` https://github.com/psf/requests/blob/master/requests/models.... https://stackoverflow.com/questions/48347290/why-does-reques...
comment by np_tedious · 2019-08-10 · in I am a horse in the land of booleans -
…documentation: https://github.com/kubernetes/kubernetes/blob/ec2e767e593953... Requests for Python https://github.com/psf/requests
comment by myth_buster · 2019-07-29 · in Ask HN: What are the “best” codebases that you've encountered? -
…first as a user. When it comes to writing code for the user Kenneth Reitz is the master in my eyes. https://github.com/requests/requests
comment by LiamPa · 2019-02-10 · in Ask HN: How do you write efficient and elegant systems / APIs? -
I like Kenneth's comments: https://github.com/requests/requests/blob/master/requests/pa...
comment by Drdrdrq · 2018-09-22 · in Ask HN: What open source project, in your opinion, has the highest code quality? -
High quality code and one of the best APIs i ever used: https://github.com/requests/requests Best source code layout, architecture, maintainability: https://github.com/rg3/youtube-dl
comment by sparkling · 2018-09-21 · in Ask HN: What open source project, in your opinion, has the highest code quality? -
The requests codebase is really well written and it has a beautiful api https://github.com/requests/requests
comment by helium · 2018-09-21 · in Ask HN: What open source project, in your opinion, has the highest code quality? -
…rewrites or replacements of libraries required to actually take advantage of the features (e.g. https://github.com/requests/requests vs. https://github.com/aio-libs/aiohttp ). With gevent, I can just put whatever code I want into a…
comment by meowface · 2018-07-26 · in The security model of WebAssembly -
…yourself and throw a "element X is missing field Y that should always be there" message. [1] - https://github.com/requests/requests/blob/master/requests/se... [2] - http://docs.python-requests.org/en/master/user/advanced/#ses... [3] -…
comment by FRex · 2018-06-11 · in Amazon2csv: Amazon products scraper to CSV (no API token required) -
How about Requests? https://github.com/requests/requests/search?utf8=%E2%9C%93&q...
comment by mrgriffin · 2017-10-18 · in Why we switched from Python to Go -
I always look to requests in how python should be used: https://github.com/requests/requests
comment by LiamPa · 2017-10-02 · in Interesting Codebases -
https://github.com/requests/requests/blob/3c5ecfc9f5f6fd2953...
comment by ericfrederich · 2017-08-14 · in Reserve the 418 status code