Skip to content
Myr

README.rst

This file

Path

README.rst

93 lines · 3.0 KiB

Last changed by

build status isn't useful anywayKenneth Reitzbefore adoptionafa7594

History of this file

Take it

The walk stopped after 200 commits: lines older than 3bf4660 point at it.

Merge pull request #1097 from matthewlmcclure/issues/1096Kenneth Reitzbefore adoption3bf4660

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

badge.fury.ioKenneth Reitzbefore adoptiond7e8073

lines 4–5why, one step back
4.. image:: https://badge.fury.io/py/requests.png
5 :target: http://badge.fury.io/py/requests

Merge pull request #1097 from matthewlmcclure/issues/1096Kenneth Reitzbefore adoption3bf4660

line 6why, one step back
6

download image!Kenneth Reitzbefore adoption538dbae

lines 7–8why, one step back
7.. image:: https://pypip.in/d/requests/badge.png
8 :target: https://crate.io/packages/requests/

fix unprotected build status linkKenneth Reitzbefore adoptionab8e43a

line 9why, one step back
9

download image!Kenneth Reitzbefore adoption538dbae

line 10why, one step back
10

Merge pull request #1097 from matthewlmcclure/issues/1096Kenneth Reitzbefore adoption3bf4660

lines 11–54why, one step back
11Requests is an Apache2 Licensed HTTP library, written in Python, for human
12beings.1314Most existing Python modules for sending HTTP requests are extremely15verbose and cumbersome. Python's builtin urllib2 module provides most of16the HTTP capabilities you should need, but the api is thoroughly broken.17It requires an enormous amount of work (even method overrides) to18perform the simplest of tasks.1920Things shouldn't be this way. Not in Python.2122.. code-block:: pycon2324 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))25 >>> r.status_code26 20427 >>> r.headers['content-type']28 'application/json'29 >>> r.text30 ...3132See `the same code, without Requests <https://gist.github.com/973705>`_.3334Requests allow you to send HTTP/1.1 requests. You can add headers, form data,35multipart files, and parameters with simple Python dictionaries, and access the36response data in the same way. It's powered by httplib and `urllib337<https://github.com/shazow/urllib3>`_, but it does all the hard work and crazy38hacks for you.394041Features42--------4344- International Domains and URLs45- Keep-Alive & Connection Pooling46- Sessions with Cookie Persistence47- Browser-style SSL Verification48- Basic/Digest Authentication49- Elegant Key/Value Cookies50- Automatic Decompression51- Unicode Response Bodies52- Multipart File Uploads53- Connection Timeouts54- Thread-safety

merge 2.0 insto masterKenneth Reitzbefore adoption54ad646

line 55why, one step back
55- HTTP(S) proxy support

Merge pull request #1097 from matthewlmcclure/issues/1096Kenneth Reitzbefore adoption3bf4660

lines 56–60why, one step back
56
5758Installation59------------60

Merge pull request #1474 from Kwpolska/docfixKenneth Reitzbefore adoptiond83919a

line 61why, one step back
61To install Requests, simply:

Merge pull request #1097 from matthewlmcclure/issues/1096Kenneth Reitzbefore adoption3bf4660

lines 62–75why, one step back
62
63.. code-block:: bash6465 $ pip install requests6667Or, if you absolutely must:6869.. code-block:: bash7071 $ easy_install requests7273But, you really shouldn't do that.7475

Merge remote-tracking branch 'origin/master'Kenneth Reitzbefore adoption7430a49

lines 76–80why, one step back
76Documentation
77-------------7879Documentation is available at http://docs.python-requests.org/.80

Merge pull request #1097 from matthewlmcclure/issues/1096Kenneth Reitzbefore adoption3bf4660

lines 81–84why, one step back
81
82Contribute83----------84

Merge pull request #1566 from sigmavirus24/update_readmeCory Benfieldbefore adoptiond991fb0

line 85why, one step back
85#. 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.

readme fixKenneth Reitzbefore adoptionb8a8835

line 86why, one step back
86#. If you feel uncomfortable or uncertain about an issue or your changes, feel free to email @sigmavirus24 and he will happily help you via email, Skype, remote pairing or whatever you are comfortable with.

Merge pull request #1474 from Kwpolska/docfixKenneth Reitzbefore adoptiond83919a

line 87why, one step back
87#. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).

Merge pull request #1097 from matthewlmcclure/issues/1096Kenneth Reitzbefore adoption3bf4660

lines 88–92why, one step back
88#. Write a test which shows that the bug was fixed or that the feature works as expected.
89#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.9091.. _`the repository`: http://github.com/kennethreitz/requests92.. _AUTHORS: https://github.com/kennethreitz/requests/blob/master/AUTHORS.rst

Merge pull request #1566 from sigmavirus24/update_readmeCory Benfieldbefore adoptiond991fb0

line 93why, one step back
93.. _Contributor Friendly: https://github.com/kennethreitz/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open