Skip to content
Myr

README.md

This file

Path

README.md

107 lines · 3.9 KiB · Markdown

Last changed by

Merge pull request #4802 from schafezp/patch-1Nate Prewittbefore adoption207e83f

History of this file

Take it

Update README.mdKenneth Reitzbefore adoption7675468

lines 1–2why, one step back
1Requests: HTTP for Humans™
2==========================

readmeKenneth Reitzbefore adoption4e7e270

lines 3–10why, one step back
3
4[![image](https://img.shields.io/pypi/v/requests.svg)](https://pypi.org/project/requests/)5[![image](https://img.shields.io/pypi/l/requests.svg)](https://pypi.org/project/requests/)6[![image](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests/)7[![codecov.io](https://codecov.io/github/requests/requests/coverage.svg?branch=master)](https://codecov.io/github/requests/requests)8[![image](https://img.shields.io/github/contributors/requests/requests.svg)](https://github.com/requests/requests/graphs/contributors)9[![image](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/kennethreitz)10

Update README.mdKenneth Reitzbefore adoption7675468

lines 11–12why, one step back
11**If you're interested in financially supporting Kenneth Reitz open source, consider [visiting this link](https://cash.me/$KennethReitz). Your support helps tremendously with sustainability of motivation, as Open Source is no longer part of my day job.**
12

Merge pull request #4802 from schafezp/patch-1Nate Prewittbefore adoption207e83f

line 13why, one step back
13Requests is the only *Non-GMO* HTTP library for Python, safe for human

readmeKenneth Reitzbefore adoption4e7e270

lines 14–107why, one step back
14consumption.
1516![image](https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg)1718Behold, the power of Requests:1920``` {.sourceCode .python}21>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))22>>> r.status_code2320024>>> r.headers['content-type']25'application/json; charset=utf8'26>>> r.encoding27'utf-8'28>>> r.text29u'{"type":"User"...'30>>> r.json()31{u'disk_usage': 368627, u'private_gists': 484, ...}32```3334See [the similar code, sans Requests](https://gist.github.com/973705).3536[![image](https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.png)](http://docs.python-requests.org/)3738Requests allows you to send *organic, grass-fed* HTTP/1.1 requests,39without the need for manual labor. There's no need to manually add query40strings to your URLs, or to form-encode your POST data. Keep-alive and41HTTP connection pooling are 100% automatic, thanks to42[urllib3](https://github.com/shazow/urllib3).4344Besides, all the cool kids are doing it. Requests is one of the most45downloaded Python packages of all time, pulling in over 11,000,00046downloads every month. You don't want to be left out!4748Feature Support49---------------5051Requests is ready for today's web.5253- International Domains and URLs54- Keep-Alive & Connection Pooling55- Sessions with Cookie Persistence56- Browser-style SSL Verification57- Basic/Digest Authentication58- Elegant Key/Value Cookies59- Automatic Decompression60- Automatic Content Decoding61- Unicode Response Bodies62- Multipart File Uploads63- HTTP(S) Proxy Support64- Connection Timeouts65- Streaming Downloads66- `.netrc` Support67- Chunked Requests6869Requests officially supports Python 2.7 & 3.4–3.7, and runs great on70PyPy.7172Installation73------------7475To install Requests, simply use [pipenv](http://pipenv.org/) (or pip, of76course):7778``` {.sourceCode .bash}79$ pipenv install requests80✨🍰✨81```8283Satisfaction guaranteed.8485Documentation86-------------8788Fantastic documentation is available at89<http://docs.python-requests.org/>, for a limited time only.9091How to Contribute92-----------------93941. Check for open issues or open a fresh issue to start a discussion95 around a feature idea or a bug. There is a [Contributor96 Friendly](https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open)97 tag for issues that should be ideal for people who are not very98 familiar with the codebase yet.992. Fork [the repository](https://github.com/requests/requests) on100 GitHub to start making your changes to the **master** branch (or101 branch off of it).1023. Write a test which shows that the bug was fixed or that the feature103 works as expected.1044. Send a pull request and bug the maintainer until it gets merged and105 published. :) Make sure to add yourself to106 [AUTHORS](https://github.com/requests/requests/blob/master/AUTHORS.rst).107