Skip to content
Myr

README.rst

This file

Path

README.rst

110 lines · 3.8 KiB

Last changed by

Merge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a

History of this file

Take it

1Requests: HTTP for Humans2=========================34.. image:: https://img.shields.io/pypi/v/requests.svg5    :target: https://pypi.org/project/requests/67.. image:: https://img.shields.io/pypi/l/requests.svg8    :target: https://pypi.org/project/requests/910.. image:: https://img.shields.io/pypi/pyversions/requests.svg11    :target: https://pypi.org/project/requests/1213.. image:: https://codecov.io/github/requests/requests/coverage.svg?branch=master14    :target: https://codecov.io/github/requests/requests15    :alt: codecov.io1617.. image:: https://img.shields.io/github/contributors/requests/requests.svg18    :target: https://github.com/requests/requests/graphs/contributors1920.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg21    :target: https://saythanks.io/to/kennethreitz2223Requests is the only *Non-GMO* HTTP library for Python, safe for human24consumption.2526.. image:: https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg2728Behold, the power of Requests:2930.. code-block:: python3132    >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))33    >>> r.status_code34    20035    >>> r.headers['content-type']36    'application/json; charset=utf8'37    >>> r.encoding38    'utf-8'39    >>> r.text40    u'{"type":"User"...'41    >>> r.json()42    {u'disk_usage': 368627, u'private_gists': 484, ...}4344See `the similar code, sans Requests <https://gist.github.com/973705>`_.4546.. image:: https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.png47    :target: http://docs.python-requests.org/484950Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the51need for manual labor. There's no need to manually add query strings to your52URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling53are 100% automatic, thanks to `urllib3 <https://github.com/shazow/urllib3>`_.5455Besides, all the cool kids are doing it. Requests is one of the most56downloaded Python packages of all time, pulling in over 11,000,000 downloads57every month. You don't want to be left out!5859Feature Support60---------------6162Requests is ready for today's web.6364- International Domains and URLs65- Keep-Alive & Connection Pooling66- Sessions with Cookie Persistence67- Browser-style SSL Verification68- Basic/Digest Authentication69- Elegant Key/Value Cookies70- Automatic Decompression71- Automatic Content Decoding72- Unicode Response Bodies73- Multipart File Uploads74- HTTP(S) Proxy Support75- Connection Timeouts76- Streaming Downloads77- ``.netrc`` Support78- Chunked Requests7980Requests officially supports Python 2.6–2.7 & 3.4–3.6, and runs great on PyPy.8182Installation83------------8485To install Requests, simply use `pipenv <http://pipenv.org/>`_ (or pip, of course):8687.. code-block:: bash8889    $ pipenv install requests90    ✨🍰✨9192Satisfaction guaranteed.9394Documentation95-------------9697Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.9899100How to Contribute101-----------------102103#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a `Contributor Friendly`_ tag for issues that should be ideal for people who are not very familiar with the codebase yet.104#. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).105#. Write a test which shows that the bug was fixed or that the feature works as expected.106#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.107108.. _`the repository`: https://github.com/requests/requests109.. _AUTHORS: https://github.com/requests/requests/blob/master/AUTHORS.rst110.. _Contributor Friendly: https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open