Requests (software)
{{short description|Software library for HTTP connections in Python}}
{{Infobox software
| name = Requests
| author = Kenneth Reitz
| developer = Cory Benfield, Ian Stapleton Cordasco, Nate Prewitt
| released = {{Release date|2011|02|14|df=yes}}
| latest release version = {{wikidata|property|reference|edit|P348}}
| latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}}
| programming language = Python
| license = Apache License 2.0
| repo = {{URL|https://github.com/psf/requests}}
| website = {{Official URL}}
}}
Requests is an HTTP client library for the Python programming language.[https://requests.readthedocs.io/en/latest/ Project homepage]{{cite journal |last1=Beazly |first1=David |title=R is for replacement |journal=Login |date=April 2012 |volume=37 |issue=2 |url=https://www.usenix.org/system/files/login/articles/beazley12-04.pdf |accessdate=16 May 2020}}
Requests is one of the most downloaded Python libraries, with over 300 million monthly downloads.{{Cite web |title=requests download stats |url=https://www.pepy.tech/projects/requests |access-date=2023-11-08 |website=PePy}} It maps the HTTP protocol onto Python's object-oriented semantics. Requests's design has inspired and been copied by HTTP client libraries for other programming languages.{{Cite web |title=Requests for PHP {{!}} Requests for PHP |url=https://requests.ryanmccue.info/ |access-date=2023-06-07 |website=requests.ryanmccue.info}}{{Cite web |title=Tools for Working with URLs and HTTP |url=https://httr.r-lib.org/ |access-date=2023-06-07 |website=httr.r-lib.org |language=en}}{{Citation |last=Duan |first=Daniel |title=Just |date=2023-06-03 |url=https://github.com/dduan/Just |access-date=2023-06-07}}{{Citation |title=httprb/http |date=2023-06-06 |url=https://github.com/httprb/http |access-date=2023-06-07 |publisher=http.rb}} It is implemented as a wrapper for urllib3, another third-party Python HTTP library.
Kenneth Reitz, the original author, handed control over to the Python Software Foundation in 2019{{Cite web |title=Project maintenance · Issue #5149 · psf/requests |url=https://github.com/psf/requests/issues/5149 |access-date=2023-06-07 |website=GitHub |language=en}} after being diagnosed with bipolar disorder in 2015.{{Cite web |title=MentalHealthError: an exception occurred. |url=https://kennethreitz.org/essays/2016/02/27/mentalhealtherror-an-exception-occurred |access-date=2023-06-07 |website=Kenneth Reitz |language=en-US}}
Features
Requests supports TLS/SSL verification, cookies, compression, SOCKS, timeouts, a variety of request methods, and custom headers.{{Cite web |last=Python |first=Real |title=Python's Requests Library (Guide) – Real Python |url=https://realpython.com/python-requests/ |access-date=2023-11-08 |website=realpython.com |language=en}}
References
{{Reflist}}