Skip to content
Myr

readme

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent dd754d1 · Browse files · 1 file+110 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+110 added−0 removed

  • other:+110 added−0 removed

1 file+110 added−0 removed

added:README.md+110 added
1Requests: HTTP for Humans2=========================34[![image](https://img.shields.io/pypi/v/requests.svg)](https://pypi.org/project/requests/)56[![image](https://img.shields.io/pypi/l/requests.svg)](https://pypi.org/project/requests/)78[![image](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests/)910[![codecov.io](https://codecov.io/github/requests/requests/coverage.svg?branch=master)](https://codecov.io/github/requests/requests)1112[![image](https://img.shields.io/github/contributors/requests/requests.svg)](https://github.com/requests/requests/graphs/contributors)1314[![image](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/kennethreitz)1516Requests is the only *Non-GMO* HTTP library for Python, safe for human17consumption.1819![image](https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg)2021Behold, the power of Requests:2223``` {.sourceCode .python}24>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))25>>> r.status_code2620027>>> r.headers['content-type']28'application/json; charset=utf8'29>>> r.encoding30'utf-8'31>>> r.text32u'{"type":"User"...'33>>> r.json()34{u'disk_usage': 368627, u'private_gists': 484, ...}35```3637See [the similar code, sans Requests](https://gist.github.com/973705).3839[![image](https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.png)](http://docs.python-requests.org/)4041Requests allows you to send *organic, grass-fed* HTTP/1.1 requests,42without the need for manual labor. There's no need to manually add query43strings to your URLs, or to form-encode your POST data. Keep-alive and44HTTP connection pooling are 100% automatic, thanks to45[urllib3](https://github.com/shazow/urllib3).4647Besides, all the cool kids are doing it. Requests is one of the most48downloaded Python packages of all time, pulling in over 11,000,00049downloads every month. You don't want to be left out!5051Feature Support52---------------5354Requests is ready for today's web.5556- International Domains and URLs57- Keep-Alive & Connection Pooling58- Sessions with Cookie Persistence59- Browser-style SSL Verification60- Basic/Digest Authentication61- Elegant Key/Value Cookies62- Automatic Decompression63- Automatic Content Decoding64- Unicode Response Bodies65- Multipart File Uploads66- HTTP(S) Proxy Support67- Connection Timeouts68- Streaming Downloads69- `.netrc` Support70- Chunked Requests7172Requests officially supports Python 2.7 & 3.4–3.7, and runs great on73PyPy.7475Installation76------------7778To install Requests, simply use [pipenv](http://pipenv.org/) (or pip, of79course):8081``` {.sourceCode .bash}82$ pipenv install requests83✨🍰✨84```8586Satisfaction guaranteed.8788Documentation89-------------9091Fantastic documentation is available at92<http://docs.python-requests.org/>, for a limited time only.9394How to Contribute95-----------------96971. Check for open issues or open a fresh issue to start a discussion98 around a feature idea or a bug. There is a [Contributor99 Friendly](https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open)100 tag for issues that should be ideal for people who are not very101 familiar with the codebase yet.1022. Fork [the repository](https://github.com/requests/requests) on103 GitHub to start making your changes to the **master** branch (or104 branch off of it).1053. Write a test which shows that the bug was fixed or that the feature106 works as expected.1074. Send a pull request and bug the maintainer until it gets merged and108 published. :) Make sure to add yourself to109 [AUTHORS](https://github.com/requests/requests/blob/master/AUTHORS.rst).110