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
Provenance
- Commit
3bc9a18- Tree
f793f16- Author
Kenneth Reitz <me@kennethreitz.com>- Committer
Kenneth Reitz <me@kennethreitz.com>- Parent
975720a
2 files changed+55 added−5 removed
added:docs/user/faq.rst+43 added
1+.. _faq:2+3+Frequently Asked Questions4+==========================5+6+This part of the documentation covers common questions about Requests.7+8+Why not Httplib2?9+-----------------10+11+Chris Adams gave an excellent summary on12+`Hacker News <http://news.ycombinator.com/item?id=2884406>`_:13+14+ 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].22+23+ Disclosure: I'm listed in the requests AUTHORS file but can claim credit24+ for, oh, about 0.0001% of the awesomeness.25+26+ 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.32+33+34+Python 3 Support?35+-----------------36+37+It's on the way.38+39+40+Keep-alive Support?41+-------------------42+43+It's on the way.modified:docs/index.rst+12 added-5 removed
11 unmodified lines12 13 Most existing Python modules for sending HTTP requests are extremely verbose14 and cumbersome. Python's builtin **urllib2** module provides most of15 the HTTP capabilities you should need, but the api is thoroughly **broken**.16-It requires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.16+It requires an *enormous* amount of work (even method overrides) to perform17+the simplest of tasks.18 19 Things shouldn’t be this way. Not in Python.20 21 ::19 unmodified lines41 42 `Twitter, Inc <http://twitter.com>`_ uses Requests internally.43 44 **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.47 48 **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.51 52 **Rich Leland**53 Requests is awesome. That is all.54 55 **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!58 59 60 User Guide61 ----------62 59-This 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.63+This part of the documentation, which is mostly prose, begins with some64+background information about Requests, then focuses on step-by-step65+instructions for getting the most out of Requests.66 67 .. toctree::68 :maxdepth: 269 70 user/intro71 user/install72+ user/faq73 .. user/quickstart74 user/advanced75 76 23 unmodified lines