PKG-INFO 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239
  1. Metadata-Version: 1.1
  2. Name: requests
  3. Version: 2.9.1
  4. Summary: Python HTTP for Humans.
  5. Home-page: http://python-requests.org
  6. Author: Kenneth Reitz
  7. Author-email: me@kennethreitz.com
  8. License: Apache 2.0
  9. Description: Requests: HTTP for Humans
  10. =========================
  11. .. image:: https://img.shields.io/pypi/v/requests.svg
  12. :target: https://pypi.python.org/pypi/requests
  13. .. image:: https://img.shields.io/pypi/dm/requests.svg
  14. :target: https://pypi.python.org/pypi/requests
  15. Requests is an Apache2 Licensed HTTP library, written in Python, for human
  16. beings.
  17. Most existing Python modules for sending HTTP requests are extremely
  18. verbose and cumbersome. Python's builtin urllib2 module provides most of
  19. the HTTP capabilities you should need, but the api is thoroughly broken.
  20. It requires an enormous amount of work (even method overrides) to
  21. perform the simplest of tasks.
  22. Things shouldn't be this way. Not in Python.
  23. .. code-block:: python
  24. >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))
  25. >>> r.status_code
  26. 204
  27. >>> r.headers['content-type']
  28. 'application/json'
  29. >>> r.text
  30. ...
  31. See `the same code, without Requests <https://gist.github.com/973705>`_.
  32. Requests allow you to send HTTP/1.1 requests. You can add headers, form data,
  33. multipart files, and parameters with simple Python dictionaries, and access the
  34. response data in the same way. It's powered by httplib and `urllib3
  35. <https://github.com/shazow/urllib3>`_, but it does all the hard work and crazy
  36. hacks for you.
  37. Features
  38. --------
  39. - International Domains and URLs
  40. - Keep-Alive & Connection Pooling
  41. - Sessions with Cookie Persistence
  42. - Browser-style SSL Verification
  43. - Basic/Digest Authentication
  44. - Elegant Key/Value Cookies
  45. - Automatic Decompression
  46. - Unicode Response Bodies
  47. - Multipart File Uploads
  48. - Connection Timeouts
  49. - Thread-safety
  50. - HTTP(S) proxy support
  51. Installation
  52. ------------
  53. To install Requests, simply:
  54. .. code-block:: bash
  55. $ pip install requests
  56. Documentation
  57. -------------
  58. Documentation is available at http://docs.python-requests.org/.
  59. Contribute
  60. ----------
  61. #. 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.
  62. #. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).
  63. #. Write a test which shows that the bug was fixed or that the feature works as expected.
  64. #. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.
  65. .. _`the repository`: http://github.com/kennethreitz/requests
  66. .. _AUTHORS: https://github.com/kennethreitz/requests/blob/master/AUTHORS.rst
  67. .. _Contributor Friendly: https://github.com/kennethreitz/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open
  68. .. :changelog:
  69. Release History
  70. ---------------
  71. 2.9.1 (2015-12-21)
  72. ++++++++++++++++++
  73. **Bugfixes**
  74. - Resolve regression introduced in 2.9.0 that made it impossible to send binary
  75. strings as bodies in Python 3.
  76. - Fixed errors when calculating cookie expiration dates in certain locales.
  77. **Miscellaneous**
  78. - Updated bundled urllib3 to 1.13.1.
  79. 2.9.0 (2015-12-15)
  80. ++++++++++++++++++
  81. **Minor Improvements** (Backwards compatible)
  82. - The ``verify`` keyword argument now supports being passed a path to a
  83. directory of CA certificates, not just a single-file bundle.
  84. - Warnings are now emitted when sending files opened in text mode.
  85. - Added the 511 Network Authentication Required status code to the status code
  86. registry.
  87. **Bugfixes**
  88. - For file-like objects that are not seeked to the very beginning, we now
  89. send the content length for the number of bytes we will actually read, rather
  90. than the total size of the file, allowing partial file uploads.
  91. - When uploading file-like objects, if they are empty or have no obvious
  92. content length we set ``Transfer-Encoding: chunked`` rather than
  93. ``Content-Length: 0``.
  94. - We correctly receive the response in buffered mode when uploading chunked
  95. bodies.
  96. - We now handle being passed a query string as a bytestring on Python 3, by
  97. decoding it as UTF-8.
  98. - Sessions are now closed in all cases (exceptional and not) when using the
  99. functional API rather than leaking and waiting for the garbage collector to
  100. clean them up.
  101. - Correctly handle digest auth headers with a malformed ``qop`` directive that
  102. contains no token, by treating it the same as if no ``qop`` directive was
  103. provided at all.
  104. - Minor performance improvements when removing specific cookies by name.
  105. **Miscellaneous**
  106. - Updated urllib3 to 1.13.
  107. 2.8.1 (2015-10-13)
  108. ++++++++++++++++++
  109. **Bugfixes**
  110. - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate
  111. bundle.
  112. - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of
  113. ``ConnectionError``
  114. - When using the PreparedRequest flow, requests will now correctly respect the
  115. ``json`` parameter. Broken in 2.8.0.
  116. - When using the PreparedRequest flow, requests will now correctly handle a
  117. Unicode-string method name on Python 2. Broken in 2.8.0.
  118. 2.8.0 (2015-10-05)
  119. ++++++++++++++++++
  120. **Minor Improvements** (Backwards Compatible)
  121. - Requests now supports per-host proxies. This allows the ``proxies``
  122. dictionary to have entries of the form
  123. ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used
  124. in preference to the previously-supported scheme-specific ones, but the
  125. previous syntax will continue to work.
  126. - ``Response.raise_for_status`` now prints the URL that failed as part of the
  127. exception message.
  128. - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg,
  129. defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause
  130. exceptions to be thrown.
  131. - Change to bundled projects import logic to make it easier to unbundle
  132. requests downstream.
  133. - Changed the default User-Agent string to avoid leaking data on Linux: now
  134. contains only the requests version.
  135. **Bugfixes**
  136. - The ``json`` parameter to ``post()`` and friends will now only be used if
  137. neither ``data`` nor ``files`` are present, consistent with the
  138. documentation.
  139. - We now ignore empty fields in the ``NO_PROXY`` environment variable.
  140. - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining
  141. ``stream=True`` with ``contextlib.closing``.
  142. - Prevented bugs where we would attempt to return the same connection back to
  143. the connection pool twice when sending a Chunked body.
  144. - Miscellaneous minor internal changes.
  145. - Digest Auth support is now thread safe.
  146. **Updates**
  147. - Updated urllib3 to 1.12.
  148. 2.7.0 (2015-05-03)
  149. ++++++++++++++++++
  150. This is the first release that follows our new release process. For more, see
  151. `our documentation
  152. <http://docs.python-requests.org/en/latest/community/release-process/>`_.
  153. **Bugfixes**
  154. - Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer
  155. encoding and response framing.
  156. 2.6.2 (2015-04-23)
  157. ++++++++++++++++++
  158. **Bugfixes**
  159. - Fix regression where compressed data that was sent as chunked data was not
  160. properly decompressed. (#2561)
  161. 2.6.1 (2015-04-22)
  162. ++++++++++++++++++
  163. **Bugfixes**
  164. - Remove VendorAlias import machinery introduced in v2.5.2.
  165. - Simplify the PreparedRequest.prepare API: We no longer require the user to
  166. pass an empty list to the hooks keyword argument. (c.f. #2552)
  167. - Resolve redirects now receives and forwards all of the original arguments to
  168. the adapter. (#2503)
  169. - Handle UnicodeDecodeErrors when trying to deal with a unicode URL that
  170. cannot be encoded in ASCII. (#2540)
  171. - Populate the parsed path of the URI field when performing Digest
  172. Authentication. (#2426)
  173. - Copy a PreparedRequest's CookieJar more reliably when it is not an instance
  174. of RequestsCookieJar. (#2527)
  175. 2.6.0 (2015-03-14)
  176. ++++++++++++++++++
  177. **Bugfixes**
  178. - CVE-2015-2296: Fix handling of cookies on redirect. Previously a cookie
  179. without a host value set would use the hostname for the redirected URL
  180. exposing requests users to session fixation attacks and potentially cookie
  181. stealing. This was disclosed privately by Matthew Daley of
  182. `BugFuzz <https://bugfuzz.com>`_. This affects all versions of requests from
  183. v2.1.0 to v2.5.3 (inclusive on both ends).
  184. - Fix error when requests is an ``install_requires`` dependency and ``python
  185. setup.py test`` is run. (#2462)
  186. - Fix error when urllib3 is unbundled and requests continues to use the
  187. vendored import location.
  188. - Include fixes to ``urllib3``'s header handling.
  189. - Requests' handling of unvendored dependencies is now more restrictive.
  190. **Features and Improvements**
  191. - Support bytearrays when passed as parameters in the ``files`` argument.
  192. (#2468)
  193. - Avoid data duplication when creating a request with ``str``, ``bytes``, or
  194. ``bytearray`` input to the ``files`` argument.
  195. 2.5.3 (2015-02-24)
  196. ++++++++++++++++++
  197. **Bugfixes**
  198. - Revert changes to our vendored certificate bundle. For more context see
  199. (#2455, #2456, and http://bugs.python.org/issue23476)
  200. 2.5.2 (2015-02-23)
  201. ++++++++++++++++++
  202. **Features and Improvements**
  203. - Add sha256 fingerprint support. (`shazow/urllib3#540`_)
  204. - Improve the performance of headers. (`shazow/urllib3#544`_)
  205. **Bugfixes**
  206. - Copy pip's import machinery. When downstream redistributors remove
  207. requests.packages.urllib3 the import machinery will continue to let those
  208. same symbols work. Example usage in requests' documentation and 3rd-party
  209. libraries relying on the vendored copies of urllib3 will work without having
  210. to fallback to the system urllib3.
  211. - Attempt to quote parts of the URL on redirect if unquoting and then quoting
  212. fails. (#2356)
  213. - Fix filename type check for multipart form-data uploads. (#2411)
  214. - Properly handle the case where a server issuing digest authentication
  215. challenges provides both auth and auth-int qop-values. (#2408)
  216. - Fix a socket leak. (`shazow/urllib3#549`_)
  217. - Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_)
  218. - Disable the built-in hostname verification. (`shazow/urllib3#526`_)
  219. - Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_)
  220. **Security**
  221. - Pulled in an updated ``cacert.pem``.
  222. - Drop RC4 from the default cipher list. (`shazow/urllib3#551`_)
  223. .. _shazow/urllib3#551: https://github.com/shazow/urllib3/pull/551
  224. .. _shazow/urllib3#549: https://github.com/shazow/urllib3/pull/549
  225. .. _shazow/urllib3#544: https://github.com/shazow/urllib3/pull/544
  226. .. _shazow/urllib3#540: https://github.com/shazow/urllib3/pull/540
  227. .. _shazow/urllib3#535: https://github.com/shazow/urllib3/pull/535
  228. .. _shazow/urllib3#534: https://github.com/shazow/urllib3/pull/534
  229. .. _shazow/urllib3#526: https://github.com/shazow/urllib3/pull/526
  230. 2.5.1 (2014-12-23)
  231. ++++++++++++++++++
  232. **Behavioural Changes**
  233. - Only catch HTTPErrors in raise_for_status (#2382)
  234. **Bugfixes**
  235. - Handle LocationParseError from urllib3 (#2344)
  236. - Handle file-like object filenames that are not strings (#2379)
  237. - Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated (#2389)
  238. 2.5.0 (2014-12-01)
  239. ++++++++++++++++++
  240. **Improvements**
  241. - Allow usage of urllib3's Retry object with HTTPAdapters (#2216)
  242. - The ``iter_lines`` method on a response now accepts a delimiter with which
  243. to split the content (#2295)
  244. **Behavioural Changes**
  245. - Add deprecation warnings to functions in requests.utils that will be removed
  246. in 3.0 (#2309)
  247. - Sessions used by the functional API are always closed (#2326)
  248. - Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9) (#2323)
  249. **Bugfixes**
  250. - Only parse the URL once (#2353)
  251. - Allow Content-Length header to always be overridden (#2332)
  252. - Properly handle files in HTTPDigestAuth (#2333)
  253. - Cap redirect_cache size to prevent memory abuse (#2299)
  254. - Fix HTTPDigestAuth handling of redirects after authenticating successfully
  255. (#2253)
  256. - Fix crash with custom method parameter to Session.request (#2317)
  257. - Fix how Link headers are parsed using the regular expression library (#2271)
  258. **Documentation**
  259. - Add more references for interlinking (#2348)
  260. - Update CSS for theme (#2290)
  261. - Update width of buttons and sidebar (#2289)
  262. - Replace references of Gittip with Gratipay (#2282)
  263. - Add link to changelog in sidebar (#2273)
  264. 2.4.3 (2014-10-06)
  265. ++++++++++++++++++
  266. **Bugfixes**
  267. - Unicode URL improvements for Python 2.
  268. - Re-order JSON param for backwards compat.
  269. - Automatically defrag authentication schemes from host/pass URIs. (`#2249 <https://github.com/kennethreitz/requests/issues/2249>`_)
  270. 2.4.2 (2014-10-05)
  271. ++++++++++++++++++
  272. **Improvements**
  273. - FINALLY! Add json parameter for uploads! (`#2258 <https://github.com/kennethreitz/requests/pull/2258>`_)
  274. - Support for bytestring URLs on Python 3.x (`#2238 <https://github.com/kennethreitz/requests/pull/2238>`_)
  275. **Bugfixes**
  276. - Avoid getting stuck in a loop (`#2244 <https://github.com/kennethreitz/requests/pull/2244>`_)
  277. - Multiple calls to iter* fail with unhelpful error. (`#2240 <https://github.com/kennethreitz/requests/issues/2240>`_, `#2241 <https://github.com/kennethreitz/requests/issues/2241>`_)
  278. **Documentation**
  279. - Correct redirection introduction (`#2245 <https://github.com/kennethreitz/requests/pull/2245/>`_)
  280. - Added example of how to send multiple files in one request. (`#2227 <https://github.com/kennethreitz/requests/pull/2227/>`_)
  281. - Clarify how to pass a custom set of CAs (`#2248 <https://github.com/kennethreitz/requests/pull/2248/>`_)
  282. 2.4.1 (2014-09-09)
  283. ++++++++++++++++++
  284. - Now has a "security" package extras set, ``$ pip install requests[security]``
  285. - Requests will now use Certifi if it is available.
  286. - Capture and re-raise urllib3 ProtocolError
  287. - Bugfix for responses that attempt to redirect to themselves forever (wtf?).
  288. 2.4.0 (2014-08-29)
  289. ++++++++++++++++++
  290. **Behavioral Changes**
  291. - ``Connection: keep-alive`` header is now sent automatically.
  292. **Improvements**
  293. - Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.
  294. - Allow copying of PreparedRequests without headers/cookies.
  295. - Updated bundled urllib3 version.
  296. - Refactored settings loading from environment -- new `Session.merge_environment_settings`.
  297. - Handle socket errors in iter_content.
  298. 2.3.0 (2014-05-16)
  299. ++++++++++++++++++
  300. **API Changes**
  301. - New ``Response`` property ``is_redirect``, which is true when the
  302. library could have processed this response as a redirection (whether
  303. or not it actually did).
  304. - The ``timeout`` parameter now affects requests with both ``stream=True`` and
  305. ``stream=False`` equally.
  306. - The change in v2.0.0 to mandate explicit proxy schemes has been reverted.
  307. Proxy schemes now default to ``http://``.
  308. - The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal
  309. dictionary when references as string or viewed in the interpreter.
  310. **Bugfixes**
  311. - No longer expose Authorization or Proxy-Authorization headers on redirect.
  312. Fix CVE-2014-1829 and CVE-2014-1830 respectively.
  313. - Authorization is re-evaluated each redirect.
  314. - On redirect, pass url as native strings.
  315. - Fall-back to autodetected encoding for JSON when Unicode detection fails.
  316. - Headers set to ``None`` on the ``Session`` are now correctly not sent.
  317. - Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same
  318. response.
  319. - Stop advertising ``compress`` as a supported Content-Encoding.
  320. - The ``Response.history`` parameter is now always a list.
  321. - Many, many ``urllib3`` bugfixes.
  322. 2.2.1 (2014-01-23)
  323. ++++++++++++++++++
  324. **Bugfixes**
  325. - Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character.
  326. - Assorted urllib3 fixes.
  327. 2.2.0 (2014-01-09)
  328. ++++++++++++++++++
  329. **API Changes**
  330. - New exception: ``ContentDecodingError``. Raised instead of ``urllib3``
  331. ``DecodeError`` exceptions.
  332. **Bugfixes**
  333. - Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6.
  334. - Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory.
  335. - Use the correct pool size for pools of connections to proxies.
  336. - Fix iteration of ``CookieJar`` objects.
  337. - Ensure that cookies are persisted over redirect.
  338. - Switch back to using chardet, since it has merged with charade.
  339. 2.1.0 (2013-12-05)
  340. ++++++++++++++++++
  341. - Updated CA Bundle, of course.
  342. - Cookies set on individual Requests through a ``Session`` (e.g. via ``Session.get()``) are no longer persisted to the ``Session``.
  343. - Clean up connections when we hit problems during chunked upload, rather than leaking them.
  344. - Return connections to the pool when a chunked upload is successful, rather than leaking it.
  345. - Match the HTTPbis recommendation for HTTP 301 redirects.
  346. - Prevent hanging when using streaming uploads and Digest Auth when a 401 is received.
  347. - Values of headers set by Requests are now always the native string type.
  348. - Fix previously broken SNI support.
  349. - Fix accessing HTTP proxies using proxy authentication.
  350. - Unencode HTTP Basic usernames and passwords extracted from URLs.
  351. - Support for IP address ranges for no_proxy environment variable
  352. - Parse headers correctly when users override the default ``Host:`` header.
  353. - Avoid munging the URL in case of case-sensitive servers.
  354. - Looser URL handling for non-HTTP/HTTPS urls.
  355. - Accept unicode methods in Python 2.6 and 2.7.
  356. - More resilient cookie handling.
  357. - Make ``Response`` objects pickleable.
  358. - Actually added MD5-sess to Digest Auth instead of pretending to like last time.
  359. - Updated internal urllib3.
  360. - Fixed @Lukasa's lack of taste.
  361. 2.0.1 (2013-10-24)
  362. ++++++++++++++++++
  363. - Updated included CA Bundle with new mistrusts and automated process for the future
  364. - Added MD5-sess to Digest Auth
  365. - Accept per-file headers in multipart file POST messages.
  366. - Fixed: Don't send the full URL on CONNECT messages.
  367. - Fixed: Correctly lowercase a redirect scheme.
  368. - Fixed: Cookies not persisted when set via functional API.
  369. - Fixed: Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
  370. - Updated internal urllib3 and chardet.
  371. 2.0.0 (2013-09-24)
  372. ++++++++++++++++++
  373. **API Changes:**
  374. - Keys in the Headers dictionary are now native strings on all Python versions,
  375. i.e. bytestrings on Python 2, unicode on Python 3.
  376. - Proxy URLs now *must* have an explicit scheme. A ``MissingSchema`` exception
  377. will be raised if they don't.
  378. - Timeouts now apply to read time if ``Stream=False``.
  379. - ``RequestException`` is now a subclass of ``IOError``, not ``RuntimeError``.
  380. - Added new method to ``PreparedRequest`` objects: ``PreparedRequest.copy()``.
  381. - Added new method to ``Session`` objects: ``Session.update_request()``. This
  382. method updates a ``Request`` object with the data (e.g. cookies) stored on
  383. the ``Session``.
  384. - Added new method to ``Session`` objects: ``Session.prepare_request()``. This
  385. method updates and prepares a ``Request`` object, and returns the
  386. corresponding ``PreparedRequest`` object.
  387. - Added new method to ``HTTPAdapter`` objects: ``HTTPAdapter.proxy_headers()``.
  388. This should not be called directly, but improves the subclass interface.
  389. - ``httplib.IncompleteRead`` exceptions caused by incorrect chunked encoding
  390. will now raise a Requests ``ChunkedEncodingError`` instead.
  391. - Invalid percent-escape sequences now cause a Requests ``InvalidURL``
  392. exception to be raised.
  393. - HTTP 208 no longer uses reason phrase ``"im_used"``. Correctly uses
  394. ``"already_reported"``.
  395. - HTTP 226 reason added (``"im_used"``).
  396. **Bugfixes:**
  397. - Vastly improved proxy support, including the CONNECT verb. Special thanks to
  398. the many contributors who worked towards this improvement.
  399. - Cookies are now properly managed when 401 authentication responses are
  400. received.
  401. - Chunked encoding fixes.
  402. - Support for mixed case schemes.
  403. - Better handling of streaming downloads.
  404. - Retrieve environment proxies from more locations.
  405. - Minor cookies fixes.
  406. - Improved redirect behaviour.
  407. - Improved streaming behaviour, particularly for compressed data.
  408. - Miscellaneous small Python 3 text encoding bugs.
  409. - ``.netrc`` no longer overrides explicit auth.
  410. - Cookies set by hooks are now correctly persisted on Sessions.
  411. - Fix problem with cookies that specify port numbers in their host field.
  412. - ``BytesIO`` can be used to perform streaming uploads.
  413. - More generous parsing of the ``no_proxy`` environment variable.
  414. - Non-string objects can be passed in data values alongside files.
  415. 1.2.3 (2013-05-25)
  416. ++++++++++++++++++
  417. - Simple packaging fix
  418. 1.2.2 (2013-05-23)
  419. ++++++++++++++++++
  420. - Simple packaging fix
  421. 1.2.1 (2013-05-20)
  422. ++++++++++++++++++
  423. - 301 and 302 redirects now change the verb to GET for all verbs, not just
  424. POST, improving browser compatibility.
  425. - Python 3.3.2 compatibility
  426. - Always percent-encode location headers
  427. - Fix connection adapter matching to be most-specific first
  428. - new argument to the default connection adapter for passing a block argument
  429. - prevent a KeyError when there's no link headers
  430. 1.2.0 (2013-03-31)
  431. ++++++++++++++++++
  432. - Fixed cookies on sessions and on requests
  433. - Significantly change how hooks are dispatched - hooks now receive all the
  434. arguments specified by the user when making a request so hooks can make a
  435. secondary request with the same parameters. This is especially necessary for
  436. authentication handler authors
  437. - certifi support was removed
  438. - Fixed bug where using OAuth 1 with body ``signature_type`` sent no data
  439. - Major proxy work thanks to @Lukasa including parsing of proxy authentication
  440. from the proxy url
  441. - Fix DigestAuth handling too many 401s
  442. - Update vendored urllib3 to include SSL bug fixes
  443. - Allow keyword arguments to be passed to ``json.loads()`` via the
  444. ``Response.json()`` method
  445. - Don't send ``Content-Length`` header by default on ``GET`` or ``HEAD``
  446. requests
  447. - Add ``elapsed`` attribute to ``Response`` objects to time how long a request
  448. took.
  449. - Fix ``RequestsCookieJar``
  450. - Sessions and Adapters are now picklable, i.e., can be used with the
  451. multiprocessing library
  452. - Update charade to version 1.0.3
  453. The change in how hooks are dispatched will likely cause a great deal of
  454. issues.
  455. 1.1.0 (2013-01-10)
  456. ++++++++++++++++++
  457. - CHUNKED REQUESTS
  458. - Support for iterable response bodies
  459. - Assume servers persist redirect params
  460. - Allow explicit content types to be specified for file data
  461. - Make merge_kwargs case-insensitive when looking up keys
  462. 1.0.3 (2012-12-18)
  463. ++++++++++++++++++
  464. - Fix file upload encoding bug
  465. - Fix cookie behavior
  466. 1.0.2 (2012-12-17)
  467. ++++++++++++++++++
  468. - Proxy fix for HTTPAdapter.
  469. 1.0.1 (2012-12-17)
  470. ++++++++++++++++++
  471. - Cert verification exception bug.
  472. - Proxy fix for HTTPAdapter.
  473. 1.0.0 (2012-12-17)
  474. ++++++++++++++++++
  475. - Massive Refactor and Simplification
  476. - Switch to Apache 2.0 license
  477. - Swappable Connection Adapters
  478. - Mountable Connection Adapters
  479. - Mutable ProcessedRequest chain
  480. - /s/prefetch/stream
  481. - Removal of all configuration
  482. - Standard library logging
  483. - Make Response.json() callable, not property.
  484. - Usage of new charade project, which provides python 2 and 3 simultaneous chardet.
  485. - Removal of all hooks except 'response'
  486. - Removal of all authentication helpers (OAuth, Kerberos)
  487. This is not a backwards compatible change.
  488. 0.14.2 (2012-10-27)
  489. +++++++++++++++++++
  490. - Improved mime-compatible JSON handling
  491. - Proxy fixes
  492. - Path hack fixes
  493. - Case-Insensitive Content-Encoding headers
  494. - Support for CJK parameters in form posts
  495. 0.14.1 (2012-10-01)
  496. +++++++++++++++++++
  497. - Python 3.3 Compatibility
  498. - Simply default accept-encoding
  499. - Bugfixes
  500. 0.14.0 (2012-09-02)
  501. ++++++++++++++++++++
  502. - No more iter_content errors if already downloaded.
  503. 0.13.9 (2012-08-25)
  504. +++++++++++++++++++
  505. - Fix for OAuth + POSTs
  506. - Remove exception eating from dispatch_hook
  507. - General bugfixes
  508. 0.13.8 (2012-08-21)
  509. +++++++++++++++++++
  510. - Incredible Link header support :)
  511. 0.13.7 (2012-08-19)
  512. +++++++++++++++++++
  513. - Support for (key, value) lists everywhere.
  514. - Digest Authentication improvements.
  515. - Ensure proxy exclusions work properly.
  516. - Clearer UnicodeError exceptions.
  517. - Automatic casting of URLs to strings (fURL and such)
  518. - Bugfixes.
  519. 0.13.6 (2012-08-06)
  520. +++++++++++++++++++
  521. - Long awaited fix for hanging connections!
  522. 0.13.5 (2012-07-27)
  523. +++++++++++++++++++
  524. - Packaging fix
  525. 0.13.4 (2012-07-27)
  526. +++++++++++++++++++
  527. - GSSAPI/Kerberos authentication!
  528. - App Engine 2.7 Fixes!
  529. - Fix leaking connections (from urllib3 update)
  530. - OAuthlib path hack fix
  531. - OAuthlib URL parameters fix.
  532. 0.13.3 (2012-07-12)
  533. +++++++++++++++++++
  534. - Use simplejson if available.
  535. - Do not hide SSLErrors behind Timeouts.
  536. - Fixed param handling with urls containing fragments.
  537. - Significantly improved information in User Agent.
  538. - client certificates are ignored when verify=False
  539. 0.13.2 (2012-06-28)
  540. +++++++++++++++++++
  541. - Zero dependencies (once again)!
  542. - New: Response.reason
  543. - Sign querystring parameters in OAuth 1.0
  544. - Client certificates no longer ignored when verify=False
  545. - Add openSUSE certificate support
  546. 0.13.1 (2012-06-07)
  547. +++++++++++++++++++
  548. - Allow passing a file or file-like object as data.
  549. - Allow hooks to return responses that indicate errors.
  550. - Fix Response.text and Response.json for body-less responses.
  551. 0.13.0 (2012-05-29)
  552. +++++++++++++++++++
  553. - Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_
  554. - Allow disabling of cookie persistence.
  555. - New implementation of safe_mode
  556. - cookies.get now supports default argument
  557. - Session cookies not saved when Session.request is called with return_response=False
  558. - Env: no_proxy support.
  559. - RequestsCookieJar improvements.
  560. - Various bug fixes.
  561. 0.12.1 (2012-05-08)
  562. +++++++++++++++++++
  563. - New ``Response.json`` property.
  564. - Ability to add string file uploads.
  565. - Fix out-of-range issue with iter_lines.
  566. - Fix iter_content default size.
  567. - Fix POST redirects containing files.
  568. 0.12.0 (2012-05-02)
  569. +++++++++++++++++++
  570. - EXPERIMENTAL OAUTH SUPPORT!
  571. - Proper CookieJar-backed cookies interface with awesome dict-like interface.
  572. - Speed fix for non-iterated content chunks.
  573. - Move ``pre_request`` to a more usable place.
  574. - New ``pre_send`` hook.
  575. - Lazily encode data, params, files.
  576. - Load system Certificate Bundle if ``certify`` isn't available.
  577. - Cleanups, fixes.
  578. 0.11.2 (2012-04-22)
  579. +++++++++++++++++++
  580. - Attempt to use the OS's certificate bundle if ``certifi`` isn't available.
  581. - Infinite digest auth redirect fix.
  582. - Multi-part file upload improvements.
  583. - Fix decoding of invalid %encodings in URLs.
  584. - If there is no content in a response don't throw an error the second time that content is attempted to be read.
  585. - Upload data on redirects.
  586. 0.11.1 (2012-03-30)
  587. +++++++++++++++++++
  588. * POST redirects now break RFC to do what browsers do: Follow up with a GET.
  589. * New ``strict_mode`` configuration to disable new redirect behavior.
  590. 0.11.0 (2012-03-14)
  591. +++++++++++++++++++
  592. * Private SSL Certificate support
  593. * Remove select.poll from Gevent monkeypatching
  594. * Remove redundant generator for chunked transfer encoding
  595. * Fix: Response.ok raises Timeout Exception in safe_mode
  596. 0.10.8 (2012-03-09)
  597. +++++++++++++++++++
  598. * Generate chunked ValueError fix
  599. * Proxy configuration by environment variables
  600. * Simplification of iter_lines.
  601. * New `trust_env` configuration for disabling system/environment hints.
  602. * Suppress cookie errors.
  603. 0.10.7 (2012-03-07)
  604. +++++++++++++++++++
  605. * `encode_uri` = False
  606. 0.10.6 (2012-02-25)
  607. +++++++++++++++++++
  608. * Allow '=' in cookies.
  609. 0.10.5 (2012-02-25)
  610. +++++++++++++++++++
  611. * Response body with 0 content-length fix.
  612. * New async.imap.
  613. * Don't fail on netrc.
  614. 0.10.4 (2012-02-20)
  615. +++++++++++++++++++
  616. * Honor netrc.
  617. 0.10.3 (2012-02-20)
  618. +++++++++++++++++++
  619. * HEAD requests don't follow redirects anymore.
  620. * raise_for_status() doesn't raise for 3xx anymore.
  621. * Make Session objects picklable.
  622. * ValueError for invalid schema URLs.
  623. 0.10.2 (2012-01-15)
  624. +++++++++++++++++++
  625. * Vastly improved URL quoting.
  626. * Additional allowed cookie key values.
  627. * Attempted fix for "Too many open files" Error
  628. * Replace unicode errors on first pass, no need for second pass.
  629. * Append '/' to bare-domain urls before query insertion.
  630. * Exceptions now inherit from RuntimeError.
  631. * Binary uploads + auth fix.
  632. * Bugfixes.
  633. 0.10.1 (2012-01-23)
  634. +++++++++++++++++++
  635. * PYTHON 3 SUPPORT!
  636. * Dropped 2.5 Support. (*Backwards Incompatible*)
  637. 0.10.0 (2012-01-21)
  638. +++++++++++++++++++
  639. * ``Response.content`` is now bytes-only. (*Backwards Incompatible*)
  640. * New ``Response.text`` is unicode-only.
  641. * If no ``Response.encoding`` is specified and ``chardet`` is available, ``Response.text`` will guess an encoding.
  642. * Default to ISO-8859-1 (Western) encoding for "text" subtypes.
  643. * Removal of `decode_unicode`. (*Backwards Incompatible*)
  644. * New multiple-hooks system.
  645. * New ``Response.register_hook`` for registering hooks within the pipeline.
  646. * ``Response.url`` is now Unicode.
  647. 0.9.3 (2012-01-18)
  648. ++++++++++++++++++
  649. * SSL verify=False bugfix (apparent on windows machines).
  650. 0.9.2 (2012-01-18)
  651. ++++++++++++++++++
  652. * Asynchronous async.send method.
  653. * Support for proper chunk streams with boundaries.
  654. * session argument for Session classes.
  655. * Print entire hook tracebacks, not just exception instance.
  656. * Fix response.iter_lines from pending next line.
  657. * Fix but in HTTP-digest auth w/ URI having query strings.
  658. * Fix in Event Hooks section.
  659. * Urllib3 update.
  660. 0.9.1 (2012-01-06)
  661. ++++++++++++++++++
  662. * danger_mode for automatic Response.raise_for_status()
  663. * Response.iter_lines refactor
  664. 0.9.0 (2011-12-28)
  665. ++++++++++++++++++
  666. * verify ssl is default.
  667. 0.8.9 (2011-12-28)
  668. ++++++++++++++++++
  669. * Packaging fix.
  670. 0.8.8 (2011-12-28)
  671. ++++++++++++++++++
  672. * SSL CERT VERIFICATION!
  673. * Release of Cerifi: Mozilla's cert list.
  674. * New 'verify' argument for SSL requests.
  675. * Urllib3 update.
  676. 0.8.7 (2011-12-24)
  677. ++++++++++++++++++
  678. * iter_lines last-line truncation fix
  679. * Force safe_mode for async requests
  680. * Handle safe_mode exceptions more consistently
  681. * Fix iteration on null responses in safe_mode
  682. 0.8.6 (2011-12-18)
  683. ++++++++++++++++++
  684. * Socket timeout fixes.
  685. * Proxy Authorization support.
  686. 0.8.5 (2011-12-14)
  687. ++++++++++++++++++
  688. * Response.iter_lines!
  689. 0.8.4 (2011-12-11)
  690. ++++++++++++++++++
  691. * Prefetch bugfix.
  692. * Added license to installed version.
  693. 0.8.3 (2011-11-27)
  694. ++++++++++++++++++
  695. * Converted auth system to use simpler callable objects.
  696. * New session parameter to API methods.
  697. * Display full URL while logging.
  698. 0.8.2 (2011-11-19)
  699. ++++++++++++++++++
  700. * New Unicode decoding system, based on over-ridable `Response.encoding`.
  701. * Proper URL slash-quote handling.
  702. * Cookies with ``[``, ``]``, and ``_`` allowed.
  703. 0.8.1 (2011-11-15)
  704. ++++++++++++++++++
  705. * URL Request path fix
  706. * Proxy fix.
  707. * Timeouts fix.
  708. 0.8.0 (2011-11-13)
  709. ++++++++++++++++++
  710. * Keep-alive support!
  711. * Complete removal of Urllib2
  712. * Complete removal of Poster
  713. * Complete removal of CookieJars
  714. * New ConnectionError raising
  715. * Safe_mode for error catching
  716. * prefetch parameter for request methods
  717. * OPTION method
  718. * Async pool size throttling
  719. * File uploads send real names
  720. * Vendored in urllib3
  721. 0.7.6 (2011-11-07)
  722. ++++++++++++++++++
  723. * Digest authentication bugfix (attach query data to path)
  724. 0.7.5 (2011-11-04)
  725. ++++++++++++++++++
  726. * Response.content = None if there was an invalid response.
  727. * Redirection auth handling.
  728. 0.7.4 (2011-10-26)
  729. ++++++++++++++++++
  730. * Session Hooks fix.
  731. 0.7.3 (2011-10-23)
  732. ++++++++++++++++++
  733. * Digest Auth fix.
  734. 0.7.2 (2011-10-23)
  735. ++++++++++++++++++
  736. * PATCH Fix.
  737. 0.7.1 (2011-10-23)
  738. ++++++++++++++++++
  739. * Move away from urllib2 authentication handling.
  740. * Fully Remove AuthManager, AuthObject, &c.
  741. * New tuple-based auth system with handler callbacks.
  742. 0.7.0 (2011-10-22)
  743. ++++++++++++++++++
  744. * Sessions are now the primary interface.
  745. * Deprecated InvalidMethodException.
  746. * PATCH fix.
  747. * New config system (no more global settings).
  748. 0.6.6 (2011-10-19)
  749. ++++++++++++++++++
  750. * Session parameter bugfix (params merging).
  751. 0.6.5 (2011-10-18)
  752. ++++++++++++++++++
  753. * Offline (fast) test suite.
  754. * Session dictionary argument merging.
  755. 0.6.4 (2011-10-13)
  756. ++++++++++++++++++
  757. * Automatic decoding of unicode, based on HTTP Headers.
  758. * New ``decode_unicode`` setting.
  759. * Removal of ``r.read/close`` methods.
  760. * New ``r.faw`` interface for advanced response usage.*
  761. * Automatic expansion of parameterized headers.
  762. 0.6.3 (2011-10-13)
  763. ++++++++++++++++++
  764. * Beautiful ``requests.async`` module, for making async requests w/ gevent.
  765. 0.6.2 (2011-10-09)
  766. ++++++++++++++++++
  767. * GET/HEAD obeys allow_redirects=False.
  768. 0.6.1 (2011-08-20)
  769. ++++++++++++++++++
  770. * Enhanced status codes experience ``\o/``
  771. * Set a maximum number of redirects (``settings.max_redirects``)
  772. * Full Unicode URL support
  773. * Support for protocol-less redirects.
  774. * Allow for arbitrary request types.
  775. * Bugfixes
  776. 0.6.0 (2011-08-17)
  777. ++++++++++++++++++
  778. * New callback hook system
  779. * New persistent sessions object and context manager
  780. * Transparent Dict-cookie handling
  781. * Status code reference object
  782. * Removed Response.cached
  783. * Added Response.request
  784. * All args are kwargs
  785. * Relative redirect support
  786. * HTTPError handling improvements
  787. * Improved https testing
  788. * Bugfixes
  789. 0.5.1 (2011-07-23)
  790. ++++++++++++++++++
  791. * International Domain Name Support!
  792. * Access headers without fetching entire body (``read()``)
  793. * Use lists as dicts for parameters
  794. * Add Forced Basic Authentication
  795. * Forced Basic is default authentication type
  796. * ``python-requests.org`` default User-Agent header
  797. * CaseInsensitiveDict lower-case caching
  798. * Response.history bugfix
  799. 0.5.0 (2011-06-21)
  800. ++++++++++++++++++
  801. * PATCH Support
  802. * Support for Proxies
  803. * HTTPBin Test Suite
  804. * Redirect Fixes
  805. * settings.verbose stream writing
  806. * Querystrings for all methods
  807. * URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicitly raised
  808. ``r.requests.get('hwe://blah'); r.raise_for_status()``
  809. 0.4.1 (2011-05-22)
  810. ++++++++++++++++++
  811. * Improved Redirection Handling
  812. * New 'allow_redirects' param for following non-GET/HEAD Redirects
  813. * Settings module refactoring
  814. 0.4.0 (2011-05-15)
  815. ++++++++++++++++++
  816. * Response.history: list of redirected responses
  817. * Case-Insensitive Header Dictionaries!
  818. * Unicode URLs
  819. 0.3.4 (2011-05-14)
  820. ++++++++++++++++++
  821. * Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)
  822. * Internal Refactor
  823. * Bytes data upload Bugfix
  824. 0.3.3 (2011-05-12)
  825. ++++++++++++++++++
  826. * Request timeouts
  827. * Unicode url-encoded data
  828. * Settings context manager and module
  829. 0.3.2 (2011-04-15)
  830. ++++++++++++++++++
  831. * Automatic Decompression of GZip Encoded Content
  832. * AutoAuth Support for Tupled HTTP Auth
  833. 0.3.1 (2011-04-01)
  834. ++++++++++++++++++
  835. * Cookie Changes
  836. * Response.read()
  837. * Poster fix
  838. 0.3.0 (2011-02-25)
  839. ++++++++++++++++++
  840. * Automatic Authentication API Change
  841. * Smarter Query URL Parameterization
  842. * Allow file uploads and POST data together
  843. * New Authentication Manager System
  844. - Simpler Basic HTTP System
  845. - Supports all build-in urllib2 Auths
  846. - Allows for custom Auth Handlers
  847. 0.2.4 (2011-02-19)
  848. ++++++++++++++++++
  849. * Python 2.5 Support
  850. * PyPy-c v1.4 Support
  851. * Auto-Authentication tests
  852. * Improved Request object constructor
  853. 0.2.3 (2011-02-15)
  854. ++++++++++++++++++
  855. * New HTTPHandling Methods
  856. - Response.__nonzero__ (false if bad HTTP Status)
  857. - Response.ok (True if expected HTTP Status)
  858. - Response.error (Logged HTTPError if bad HTTP Status)
  859. - Response.raise_for_status() (Raises stored HTTPError)
  860. 0.2.2 (2011-02-14)
  861. ++++++++++++++++++
  862. * Still handles request in the event of an HTTPError. (Issue #2)
  863. * Eventlet and Gevent Monkeypatch support.
  864. * Cookie Support (Issue #1)
  865. 0.2.1 (2011-02-14)
  866. ++++++++++++++++++
  867. * Added file attribute to POST and PUT requests for multipart-encode file uploads.
  868. * Added Request.url attribute for context and redirects
  869. 0.2.0 (2011-02-14)
  870. ++++++++++++++++++
  871. * Birth!
  872. 0.0.1 (2011-02-13)
  873. ++++++++++++++++++
  874. * Frustration
  875. * Conception
  876. Platform: UNKNOWN
  877. Classifier: Development Status :: 5 - Production/Stable
  878. Classifier: Intended Audience :: Developers
  879. Classifier: Natural Language :: English
  880. Classifier: License :: OSI Approved :: Apache Software License
  881. Classifier: Programming Language :: Python
  882. Classifier: Programming Language :: Python :: 2.7
  883. Classifier: Programming Language :: Python :: 3
  884. Classifier: Programming Language :: Python :: 3.3
  885. Classifier: Programming Language :: Python :: 3.4
  886. Classifier: Programming Language :: Python :: 3.5