Skip to content
Myr

basic FAQ

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 975720a · Browse files · 2 files+55 added−5 removed
This commit

State

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

Diff stats

2 files+55 added−5 removed

  • other:+55 added−5 removed

2 files+55 added−5 removed

added:docs/user/faq.rst+43 added
1.. _faq:23Frequently Asked Questions4==========================56This part of the documentation covers common questions about Requests.78Why not Httplib2?9-----------------1011Chris Adams gave an excellent summary on12`Hacker News <http://news.ycombinator.com/item?id=2884406>`_:1314 httplib2 is part of why you should use requests: it's far more respectable15 as a client but not as well documented and it still takes way too much code16 for basic operations. I appreciate what httplib2 is trying to do, that17 there's a ton of hard low-level annoyances in building a modern HTTP18 client, but really, just use requests instead. Kenneth Reitz is very19 motivated and he gets the degree to which simple things should be simple20 whereas httplib2 feels more like an academic exercise than something21 people should use to build production systems[1].2223 Disclosure: I'm listed in the requests AUTHORS file but can claim credit24 for, oh, about 0.0001% of the awesomeness.2526 1. http://code.google.com/p/httplib2/issues/detail?id=96 is a good example:27 an annoying bug which affect many people, there was a fix available for28 months, which worked great when I applied it in a fork and pounded a couple29 TB of data through it, but it took over a year to make it into trunk and30 even longer to make it onto PyPI where any other project which required "31 httplib2" would get the working version.323334Python 3 Support?35-----------------3637It's on the way.383940Keep-alive Support?41-------------------4243It's on the way.
modified:docs/index.rst+12 added-5 removed
11 unmodified lines
1213Most existing Python modules for sending HTTP requests are extremely verbose14and cumbersome. Python's builtin **urllib2** module provides most of15the HTTP capabilities you should need, but the api is thoroughly **broken**.16It requires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.16It requires an *enormous* amount of work (even method overrides) to perform17the simplest of tasks.1819Things shouldn’t be this way. Not in Python.2021::
19 unmodified lines
4142`Twitter, Inc <http://twitter.com>`_ uses Requests internally.4344**Daniel Greenfeld**44 Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to @kennethreitz's request library. Today has been AWESOME.45 Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to46 @kennethreitz's request library. Today has been AWESOME.4748**Kenny Meyers**47 Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful, simple, Pythonic.49 Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful,50 simple, Pythonic.5152**Rich Leland**53 Requests is awesome. That is all.5455**Steve Pike**53 I can never remember how to do it the regular way. ``import requests; requests.get()`` is just so easy!56 I can never remember how to do it the regular way.57 ``import requests; requests.get()`` is just so easy!585960User Guide61----------6259This part of the documentation, which is mostly prose, begins with some background information about Requests, then focuses on step-by-step instructions for getting the most out of Requests.63This part of the documentation, which is mostly prose, begins with some64background information about Requests, then focuses on step-by-step65instructions for getting the most out of Requests.6667.. toctree::68 :maxdepth: 26970 user/intro71 user/install72 user/faq73.. user/quickstart74 user/advanced7576
23 unmodified lines