PKG-INFO 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666
  1. Metadata-Version: 1.1
  2. Name: requests
  3. Version: 2.18.4
  4. Summary: Python HTTP for Humans.
  5. Home-page: http://python-requests.org
  6. Author: Kenneth Reitz
  7. Author-email: me@kennethreitz.org
  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/l/requests.svg
  14. :target: https://pypi.python.org/pypi/requests
  15. .. image:: https://img.shields.io/pypi/pyversions/requests.svg
  16. :target: https://pypi.python.org/pypi/requests
  17. .. image:: https://codecov.io/github/requests/requests/coverage.svg?branch=master
  18. :target: https://codecov.io/github/requests/requests
  19. :alt: codecov.io
  20. .. image:: https://img.shields.io/github/contributors/requests/requests.svg
  21. :target: https://github.com/requests/requests/graphs/contributors
  22. .. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg
  23. :target: https://saythanks.io/to/kennethreitz
  24. Requests is the only *Non-GMO* HTTP library for Python, safe for human
  25. consumption.
  26. **Warning:** Recreational use of the Python standard library for HTTP may result in dangerous side-effects,
  27. including: security vulnerabilities, verbose code, reinventing the wheel,
  28. constantly reading documentation, depression, headaches, or even death.
  29. Behold, the power of Requests:
  30. .. code-block:: python
  31. >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
  32. >>> r.status_code
  33. 200
  34. >>> r.headers['content-type']
  35. 'application/json; charset=utf8'
  36. >>> r.encoding
  37. 'utf-8'
  38. >>> r.text
  39. u'{"type":"User"...'
  40. >>> r.json()
  41. {u'disk_usage': 368627, u'private_gists': 484, ...}
  42. See `the similar code, sans Requests <https://gist.github.com/973705>`_.
  43. .. image:: https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.png
  44. :target: http://docs.python-requests.org/
  45. Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the
  46. need for manual labor. There's no need to manually add query strings to your
  47. URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling
  48. are 100% automatic, thanks to `urllib3 <https://github.com/shazow/urllib3>`_.
  49. Besides, all the cool kids are doing it. Requests is one of the most
  50. downloaded Python packages of all time, pulling in over 11,000,000 downloads
  51. every month. You don't want to be left out!
  52. Feature Support
  53. ---------------
  54. Requests is ready for today's web.
  55. - International Domains and URLs
  56. - Keep-Alive & Connection Pooling
  57. - Sessions with Cookie Persistence
  58. - Browser-style SSL Verification
  59. - Basic/Digest Authentication
  60. - Elegant Key/Value Cookies
  61. - Automatic Decompression
  62. - Automatic Content Decoding
  63. - Unicode Response Bodies
  64. - Multipart File Uploads
  65. - HTTP(S) Proxy Support
  66. - Connection Timeouts
  67. - Streaming Downloads
  68. - ``.netrc`` Support
  69. - Chunked Requests
  70. Requests officially supports Python 2.6–2.7 & 3.3–3.7, and runs great on PyPy.
  71. Installation
  72. ------------
  73. To install Requests, simply:
  74. .. code-block:: bash
  75. $ pip install requests
  76. ✨🍰✨
  77. Satisfaction guaranteed.
  78. Documentation
  79. -------------
  80. Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.
  81. How to Contribute
  82. -----------------
  83. #. 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.
  84. #. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).
  85. #. Write a test which shows that the bug was fixed or that the feature works as expected.
  86. #. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.
  87. .. _`the repository`: http://github.com/requests/requests
  88. .. _AUTHORS: https://github.com/requests/requests/blob/master/AUTHORS.rst
  89. .. _Contributor Friendly: https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open
  90. .. :changelog:
  91. Release History
  92. ---------------
  93. 2.18.4 (2017-08-15)
  94. +++++++++++++++++++
  95. **Improvements**
  96. - Error messages for invalid headers now include the header name for easier debugging
  97. **Dependencies**
  98. - We now support idna v2.6.
  99. 2.18.3 (2017-08-02)
  100. +++++++++++++++++++
  101. **Improvements**
  102. - Running ``$ python -m requests.help`` now includes the installed version of idna.
  103. **Bugfixes**
  104. - Fixed issue where Requests would raise ``ConnectionError`` instead of
  105. ``SSLError`` when encountering SSL problems when using urllib3 v1.22.
  106. 2.18.2 (2017-07-25)
  107. +++++++++++++++++++
  108. **Bugfixes**
  109. - ``requests.help`` no longer fails on Python 2.6 due to the absence of
  110. ``ssl.OPENSSL_VERSION_NUMBER``.
  111. **Dependencies**
  112. - We now support urllib3 v1.22.
  113. 2.18.1 (2017-06-14)
  114. +++++++++++++++++++
  115. **Bugfixes**
  116. - Fix an error in the packaging whereby the *.whl contained incorrect data that
  117. regressed the fix in v2.17.3.
  118. 2.18.0 (2017-06-14)
  119. +++++++++++++++++++
  120. **Improvements**
  121. - ``Response`` is now a context manager, so can be used directly in a ``with`` statement
  122. without first having to be wrapped by ``contextlib.closing()``.
  123. **Bugfixes**
  124. - Resolve installation failure if multiprocessing is not available
  125. - Resolve tests crash if multiprocessing is not able to determine the number of CPU cores
  126. - Resolve error swallowing in utils set_environ generator
  127. 2.17.3 (2017-05-29)
  128. +++++++++++++++++++
  129. **Improvements**
  130. - Improved ``packages`` namespace identity support, for monkeypatching libraries.
  131. 2.17.2 (2017-05-29)
  132. +++++++++++++++++++
  133. **Improvements**
  134. - Improved ``packages`` namespace identity support, for monkeypatching libraries.
  135. 2.17.1 (2017-05-29)
  136. +++++++++++++++++++
  137. **Improvements**
  138. - Improved ``packages`` namespace identity support, for monkeypatching libraries.
  139. 2.17.0 (2017-05-29)
  140. +++++++++++++++++++
  141. **Improvements**
  142. - Removal of the 301 redirect cache. This improves thread-safety.
  143. 2.16.5 (2017-05-28)
  144. +++++++++++++++++++
  145. - Improvements to ``$ python -m requests.help``.
  146. 2.16.4 (2017-05-27)
  147. +++++++++++++++++++
  148. - Introduction of the ``$ python -m requests.help`` command, for debugging with maintainers!
  149. 2.16.3 (2017-05-27)
  150. +++++++++++++++++++
  151. - Further restored the ``requests.packages`` namespace for compatibility reasons.
  152. 2.16.2 (2017-05-27)
  153. +++++++++++++++++++
  154. - Further restored the ``requests.packages`` namespace for compatibility reasons.
  155. No code modification (noted below) should be neccessary any longer.
  156. 2.16.1 (2017-05-27)
  157. +++++++++++++++++++
  158. - Restored the ``requests.packages`` namespace for compatibility reasons.
  159. - Bugfix for ``urllib3`` version parsing.
  160. **Note**: code that was written to import against the ``requests.packages``
  161. namespace previously will have to import code that rests at this module-level
  162. now.
  163. For example::
  164. from requests.packages.urllib3.poolmanager import PoolManager
  165. Will need to be re-written to be::
  166. from requests.packages import urllib3
  167. urllib3.poolmanager.PoolManager
  168. Or, even better::
  169. from urllib3.poolmanager import PoolManager
  170. 2.16.0 (2017-05-26)
  171. +++++++++++++++++++
  172. - Unvendor ALL the things!
  173. 2.15.1 (2017-05-26)
  174. +++++++++++++++++++
  175. - Everyone makes mistakes.
  176. 2.15.0 (2017-05-26)
  177. +++++++++++++++++++
  178. **Improvements**
  179. - Introduction of the ``Response.next`` property, for getting the next
  180. ``PreparedResponse`` from a redirect chain (when ``allow_redirects=False``).
  181. - Internal refactoring of ``__version__`` module.
  182. **Bugfixes**
  183. - Restored once-optional parameter for ``requests.utils.get_environ_proxies()``.
  184. 2.14.2 (2017-05-10)
  185. +++++++++++++++++++
  186. **Bugfixes**
  187. - Changed a less-than to an equal-to and an or in the dependency markers to
  188. widen compatibility with older setuptools releases.
  189. 2.14.1 (2017-05-09)
  190. +++++++++++++++++++
  191. **Bugfixes**
  192. - Changed the dependency markers to widen compatibility with older pip
  193. releases.
  194. 2.14.0 (2017-05-09)
  195. +++++++++++++++++++
  196. **Improvements**
  197. - It is now possible to pass ``no_proxy`` as a key to the ``proxies``
  198. dictionary to provide handling similar to the ``NO_PROXY`` environment
  199. variable.
  200. - When users provide invalid paths to certificate bundle files or directories
  201. Requests now raises ``IOError``, rather than failing at the time of the HTTPS
  202. request with a fairly inscrutable certificate validation error.
  203. - The behavior of ``SessionRedirectMixin`` was slightly altered.
  204. ``resolve_redirects`` will now detect a redirect by calling
  205. ``get_redirect_target(response)`` instead of directly
  206. querying ``Response.is_redirect`` and ``Response.headers['location']``.
  207. Advanced users will be able to process malformed redirects more easily.
  208. - Changed the internal calculation of elapsed request time to have higher
  209. resolution on Windows.
  210. - Added ``win_inet_pton`` as conditional dependency for the ``[socks]`` extra
  211. on Windows with Python 2.7.
  212. - Changed the proxy bypass implementation on Windows: the proxy bypass
  213. check doesn't use forward and reverse DNS requests anymore
  214. - URLs with schemes that begin with ``http`` but are not ``http`` or ``https``
  215. no longer have their host parts forced to lowercase.
  216. **Bugfixes**
  217. - Much improved handling of non-ASCII ``Location`` header values in redirects.
  218. Fewer ``UnicodeDecodeErrors`` are encountered on Python 2, and Python 3 now
  219. correctly understands that Latin-1 is unlikely to be the correct encoding.
  220. - If an attempt to ``seek`` file to find out its length fails, we now
  221. appropriately handle that by aborting our content-length calculations.
  222. - Restricted ``HTTPDigestAuth`` to only respond to auth challenges made on 4XX
  223. responses, rather than to all auth challenges.
  224. - Fixed some code that was firing ``DeprecationWarning`` on Python 3.6.
  225. - The dismayed person emoticon (``/o\\``) no longer has a big head. I'm sure
  226. this is what you were all worrying about most.
  227. **Miscellaneous**
  228. - Updated bundled urllib3 to v1.21.1.
  229. - Updated bundled chardet to v3.0.2.
  230. - Updated bundled idna to v2.5.
  231. - Updated bundled certifi to 2017.4.17.
  232. 2.13.0 (2017-01-24)
  233. +++++++++++++++++++
  234. **Features**
  235. - Only load the ``idna`` library when we've determined we need it. This will
  236. save some memory for users.
  237. **Miscellaneous**
  238. - Updated bundled urllib3 to 1.20.
  239. - Updated bundled idna to 2.2.
  240. 2.12.5 (2017-01-18)
  241. +++++++++++++++++++
  242. **Bugfixes**
  243. - Fixed an issue with JSON encoding detection, specifically detecting
  244. big-endian UTF-32 with BOM.
  245. 2.12.4 (2016-12-14)
  246. +++++++++++++++++++
  247. **Bugfixes**
  248. - Fixed regression from 2.12.2 where non-string types were rejected in the
  249. basic auth parameters. While support for this behaviour has been readded,
  250. the behaviour is deprecated and will be removed in the future.
  251. 2.12.3 (2016-12-01)
  252. +++++++++++++++++++
  253. **Bugfixes**
  254. - Fixed regression from v2.12.1 for URLs with schemes that begin with "http".
  255. These URLs have historically been processed as though they were HTTP-schemed
  256. URLs, and so have had parameters added. This was removed in v2.12.2 in an
  257. overzealous attempt to resolve problems with IDNA-encoding those URLs. This
  258. change was reverted: the other fixes for IDNA-encoding have been judged to
  259. be sufficient to return to the behaviour Requests had before v2.12.0.
  260. 2.12.2 (2016-11-30)
  261. +++++++++++++++++++
  262. **Bugfixes**
  263. - Fixed several issues with IDNA-encoding URLs that are technically invalid but
  264. which are widely accepted. Requests will now attempt to IDNA-encode a URL if
  265. it can but, if it fails, and the host contains only ASCII characters, it will
  266. be passed through optimistically. This will allow users to opt-in to using
  267. IDNA2003 themselves if they want to, and will also allow technically invalid
  268. but still common hostnames.
  269. - Fixed an issue where URLs with leading whitespace would raise
  270. ``InvalidSchema`` errors.
  271. - Fixed an issue where some URLs without the HTTP or HTTPS schemes would still
  272. have HTTP URL preparation applied to them.
  273. - Fixed an issue where Unicode strings could not be used in basic auth.
  274. - Fixed an issue encountered by some Requests plugins where constructing a
  275. Response object would cause ``Response.content`` to raise an
  276. ``AttributeError``.
  277. 2.12.1 (2016-11-16)
  278. +++++++++++++++++++
  279. **Bugfixes**
  280. - Updated setuptools 'security' extra for the new PyOpenSSL backend in urllib3.
  281. **Miscellaneous**
  282. - Updated bundled urllib3 to 1.19.1.
  283. 2.12.0 (2016-11-15)
  284. +++++++++++++++++++
  285. **Improvements**
  286. - Updated support for internationalized domain names from IDNA2003 to IDNA2008.
  287. This updated support is required for several forms of IDNs and is mandatory
  288. for .de domains.
  289. - Much improved heuristics for guessing content lengths: Requests will no
  290. longer read an entire ``StringIO`` into memory.
  291. - Much improved logic for recalculating ``Content-Length`` headers for
  292. ``PreparedRequest`` objects.
  293. - Improved tolerance for file-like objects that have no ``tell`` method but
  294. do have a ``seek`` method.
  295. - Anything that is a subclass of ``Mapping`` is now treated like a dictionary
  296. by the ``data=`` keyword argument.
  297. - Requests now tolerates empty passwords in proxy credentials, rather than
  298. stripping the credentials.
  299. - If a request is made with a file-like object as the body and that request is
  300. redirected with a 307 or 308 status code, Requests will now attempt to
  301. rewind the body object so it can be replayed.
  302. **Bugfixes**
  303. - When calling ``response.close``, the call to ``close`` will be propagated
  304. through to non-urllib3 backends.
  305. - Fixed issue where the ``ALL_PROXY`` environment variable would be preferred
  306. over scheme-specific variables like ``HTTP_PROXY``.
  307. - Fixed issue where non-UTF8 reason phrases got severely mangled by falling
  308. back to decoding using ISO 8859-1 instead.
  309. - Fixed a bug where Requests would not correctly correlate cookies set when
  310. using custom Host headers if those Host headers did not use the native
  311. string type for the platform.
  312. **Miscellaneous**
  313. - Updated bundled urllib3 to 1.19.
  314. - Updated bundled certifi certs to 2016.09.26.
  315. 2.11.1 (2016-08-17)
  316. +++++++++++++++++++
  317. **Bugfixes**
  318. - Fixed a bug when using ``iter_content`` with ``decode_unicode=True`` for
  319. streamed bodies would raise ``AttributeError``. This bug was introduced in
  320. 2.11.
  321. - Strip Content-Type and Transfer-Encoding headers from the header block when
  322. following a redirect that transforms the verb from POST/PUT to GET.
  323. 2.11.0 (2016-08-08)
  324. +++++++++++++++++++
  325. **Improvements**
  326. - Added support for the ``ALL_PROXY`` environment variable.
  327. - Reject header values that contain leading whitespace or newline characters to
  328. reduce risk of header smuggling.
  329. **Bugfixes**
  330. - Fixed occasional ``TypeError`` when attempting to decode a JSON response that
  331. occurred in an error case. Now correctly returns a ``ValueError``.
  332. - Requests would incorrectly ignore a non-CIDR IP address in the ``NO_PROXY``
  333. environment variables: Requests now treats it as a specific IP.
  334. - Fixed a bug when sending JSON data that could cause us to encounter obscure
  335. OpenSSL errors in certain network conditions (yes, really).
  336. - Added type checks to ensure that ``iter_content`` only accepts integers and
  337. ``None`` for chunk sizes.
  338. - Fixed issue where responses whose body had not been fully consumed would have
  339. the underlying connection closed but not returned to the connection pool,
  340. which could cause Requests to hang in situations where the ``HTTPAdapter``
  341. had been configured to use a blocking connection pool.
  342. **Miscellaneous**
  343. - Updated bundled urllib3 to 1.16.
  344. - Some previous releases accidentally accepted non-strings as acceptable header values. This release does not.
  345. 2.10.0 (2016-04-29)
  346. +++++++++++++++++++
  347. **New Features**
  348. - SOCKS Proxy Support! (requires PySocks; ``$ pip install requests[socks]``)
  349. **Miscellaneous**
  350. - Updated bundled urllib3 to 1.15.1.
  351. 2.9.2 (2016-04-29)
  352. ++++++++++++++++++
  353. **Improvements**
  354. - Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict
  355. as its underlying datastore.
  356. **Bugfixes**
  357. - Don't use redirect_cache if allow_redirects=False
  358. - When passed objects that throw exceptions from ``tell()``, send them via
  359. chunked transfer encoding instead of failing.
  360. - Raise a ProxyError for proxy related connection issues.
  361. 2.9.1 (2015-12-21)
  362. ++++++++++++++++++
  363. **Bugfixes**
  364. - Resolve regression introduced in 2.9.0 that made it impossible to send binary
  365. strings as bodies in Python 3.
  366. - Fixed errors when calculating cookie expiration dates in certain locales.
  367. **Miscellaneous**
  368. - Updated bundled urllib3 to 1.13.1.
  369. 2.9.0 (2015-12-15)
  370. ++++++++++++++++++
  371. **Minor Improvements** (Backwards compatible)
  372. - The ``verify`` keyword argument now supports being passed a path to a
  373. directory of CA certificates, not just a single-file bundle.
  374. - Warnings are now emitted when sending files opened in text mode.
  375. - Added the 511 Network Authentication Required status code to the status code
  376. registry.
  377. **Bugfixes**
  378. - For file-like objects that are not seeked to the very beginning, we now
  379. send the content length for the number of bytes we will actually read, rather
  380. than the total size of the file, allowing partial file uploads.
  381. - When uploading file-like objects, if they are empty or have no obvious
  382. content length we set ``Transfer-Encoding: chunked`` rather than
  383. ``Content-Length: 0``.
  384. - We correctly receive the response in buffered mode when uploading chunked
  385. bodies.
  386. - We now handle being passed a query string as a bytestring on Python 3, by
  387. decoding it as UTF-8.
  388. - Sessions are now closed in all cases (exceptional and not) when using the
  389. functional API rather than leaking and waiting for the garbage collector to
  390. clean them up.
  391. - Correctly handle digest auth headers with a malformed ``qop`` directive that
  392. contains no token, by treating it the same as if no ``qop`` directive was
  393. provided at all.
  394. - Minor performance improvements when removing specific cookies by name.
  395. **Miscellaneous**
  396. - Updated urllib3 to 1.13.
  397. 2.8.1 (2015-10-13)
  398. ++++++++++++++++++
  399. **Bugfixes**
  400. - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate
  401. bundle.
  402. - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of
  403. ``ConnectionError``
  404. - When using the PreparedRequest flow, requests will now correctly respect the
  405. ``json`` parameter. Broken in 2.8.0.
  406. - When using the PreparedRequest flow, requests will now correctly handle a
  407. Unicode-string method name on Python 2. Broken in 2.8.0.
  408. 2.8.0 (2015-10-05)
  409. ++++++++++++++++++
  410. **Minor Improvements** (Backwards Compatible)
  411. - Requests now supports per-host proxies. This allows the ``proxies``
  412. dictionary to have entries of the form
  413. ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used
  414. in preference to the previously-supported scheme-specific ones, but the
  415. previous syntax will continue to work.
  416. - ``Response.raise_for_status`` now prints the URL that failed as part of the
  417. exception message.
  418. - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg,
  419. defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause
  420. exceptions to be thrown.
  421. - Change to bundled projects import logic to make it easier to unbundle
  422. requests downstream.
  423. - Changed the default User-Agent string to avoid leaking data on Linux: now
  424. contains only the requests version.
  425. **Bugfixes**
  426. - The ``json`` parameter to ``post()`` and friends will now only be used if
  427. neither ``data`` nor ``files`` are present, consistent with the
  428. documentation.
  429. - We now ignore empty fields in the ``NO_PROXY`` environment variable.
  430. - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining
  431. ``stream=True`` with ``contextlib.closing``.
  432. - Prevented bugs where we would attempt to return the same connection back to
  433. the connection pool twice when sending a Chunked body.
  434. - Miscellaneous minor internal changes.
  435. - Digest Auth support is now thread safe.
  436. **Updates**
  437. - Updated urllib3 to 1.12.
  438. 2.7.0 (2015-05-03)
  439. ++++++++++++++++++
  440. This is the first release that follows our new release process. For more, see
  441. `our documentation
  442. <http://docs.python-requests.org/en/latest/community/release-process/>`_.
  443. **Bugfixes**
  444. - Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer
  445. encoding and response framing.
  446. 2.6.2 (2015-04-23)
  447. ++++++++++++++++++
  448. **Bugfixes**
  449. - Fix regression where compressed data that was sent as chunked data was not
  450. properly decompressed. (#2561)
  451. 2.6.1 (2015-04-22)
  452. ++++++++++++++++++
  453. **Bugfixes**
  454. - Remove VendorAlias import machinery introduced in v2.5.2.
  455. - Simplify the PreparedRequest.prepare API: We no longer require the user to
  456. pass an empty list to the hooks keyword argument. (c.f. #2552)
  457. - Resolve redirects now receives and forwards all of the original arguments to
  458. the adapter. (#2503)
  459. - Handle UnicodeDecodeErrors when trying to deal with a unicode URL that
  460. cannot be encoded in ASCII. (#2540)
  461. - Populate the parsed path of the URI field when performing Digest
  462. Authentication. (#2426)
  463. - Copy a PreparedRequest's CookieJar more reliably when it is not an instance
  464. of RequestsCookieJar. (#2527)
  465. 2.6.0 (2015-03-14)
  466. ++++++++++++++++++
  467. **Bugfixes**
  468. - CVE-2015-2296: Fix handling of cookies on redirect. Previously a cookie
  469. without a host value set would use the hostname for the redirected URL
  470. exposing requests users to session fixation attacks and potentially cookie
  471. stealing. This was disclosed privately by Matthew Daley of
  472. `BugFuzz <https://bugfuzz.com>`_. This affects all versions of requests from
  473. v2.1.0 to v2.5.3 (inclusive on both ends).
  474. - Fix error when requests is an ``install_requires`` dependency and ``python
  475. setup.py test`` is run. (#2462)
  476. - Fix error when urllib3 is unbundled and requests continues to use the
  477. vendored import location.
  478. - Include fixes to ``urllib3``'s header handling.
  479. - Requests' handling of unvendored dependencies is now more restrictive.
  480. **Features and Improvements**
  481. - Support bytearrays when passed as parameters in the ``files`` argument.
  482. (#2468)
  483. - Avoid data duplication when creating a request with ``str``, ``bytes``, or
  484. ``bytearray`` input to the ``files`` argument.
  485. 2.5.3 (2015-02-24)
  486. ++++++++++++++++++
  487. **Bugfixes**
  488. - Revert changes to our vendored certificate bundle. For more context see
  489. (#2455, #2456, and http://bugs.python.org/issue23476)
  490. 2.5.2 (2015-02-23)
  491. ++++++++++++++++++
  492. **Features and Improvements**
  493. - Add sha256 fingerprint support. (`shazow/urllib3#540`_)
  494. - Improve the performance of headers. (`shazow/urllib3#544`_)
  495. **Bugfixes**
  496. - Copy pip's import machinery. When downstream redistributors remove
  497. requests.packages.urllib3 the import machinery will continue to let those
  498. same symbols work. Example usage in requests' documentation and 3rd-party
  499. libraries relying on the vendored copies of urllib3 will work without having
  500. to fallback to the system urllib3.
  501. - Attempt to quote parts of the URL on redirect if unquoting and then quoting
  502. fails. (#2356)
  503. - Fix filename type check for multipart form-data uploads. (#2411)
  504. - Properly handle the case where a server issuing digest authentication
  505. challenges provides both auth and auth-int qop-values. (#2408)
  506. - Fix a socket leak. (`shazow/urllib3#549`_)
  507. - Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_)
  508. - Disable the built-in hostname verification. (`shazow/urllib3#526`_)
  509. - Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_)
  510. **Security**
  511. - Pulled in an updated ``cacert.pem``.
  512. - Drop RC4 from the default cipher list. (`shazow/urllib3#551`_)
  513. .. _shazow/urllib3#551: https://github.com/shazow/urllib3/pull/551
  514. .. _shazow/urllib3#549: https://github.com/shazow/urllib3/pull/549
  515. .. _shazow/urllib3#544: https://github.com/shazow/urllib3/pull/544
  516. .. _shazow/urllib3#540: https://github.com/shazow/urllib3/pull/540
  517. .. _shazow/urllib3#535: https://github.com/shazow/urllib3/pull/535
  518. .. _shazow/urllib3#534: https://github.com/shazow/urllib3/pull/534
  519. .. _shazow/urllib3#526: https://github.com/shazow/urllib3/pull/526
  520. 2.5.1 (2014-12-23)
  521. ++++++++++++++++++
  522. **Behavioural Changes**
  523. - Only catch HTTPErrors in raise_for_status (#2382)
  524. **Bugfixes**
  525. - Handle LocationParseError from urllib3 (#2344)
  526. - Handle file-like object filenames that are not strings (#2379)
  527. - Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated (#2389)
  528. 2.5.0 (2014-12-01)
  529. ++++++++++++++++++
  530. **Improvements**
  531. - Allow usage of urllib3's Retry object with HTTPAdapters (#2216)
  532. - The ``iter_lines`` method on a response now accepts a delimiter with which
  533. to split the content (#2295)
  534. **Behavioural Changes**
  535. - Add deprecation warnings to functions in requests.utils that will be removed
  536. in 3.0 (#2309)
  537. - Sessions used by the functional API are always closed (#2326)
  538. - Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9) (#2323)
  539. **Bugfixes**
  540. - Only parse the URL once (#2353)
  541. - Allow Content-Length header to always be overridden (#2332)
  542. - Properly handle files in HTTPDigestAuth (#2333)
  543. - Cap redirect_cache size to prevent memory abuse (#2299)
  544. - Fix HTTPDigestAuth handling of redirects after authenticating successfully
  545. (#2253)
  546. - Fix crash with custom method parameter to Session.request (#2317)
  547. - Fix how Link headers are parsed using the regular expression library (#2271)
  548. **Documentation**
  549. - Add more references for interlinking (#2348)
  550. - Update CSS for theme (#2290)
  551. - Update width of buttons and sidebar (#2289)
  552. - Replace references of Gittip with Gratipay (#2282)
  553. - Add link to changelog in sidebar (#2273)
  554. 2.4.3 (2014-10-06)
  555. ++++++++++++++++++
  556. **Bugfixes**
  557. - Unicode URL improvements for Python 2.
  558. - Re-order JSON param for backwards compat.
  559. - Automatically defrag authentication schemes from host/pass URIs. (`#2249 <https://github.com/requests/requests/issues/2249>`_)
  560. 2.4.2 (2014-10-05)
  561. ++++++++++++++++++
  562. **Improvements**
  563. - FINALLY! Add json parameter for uploads! (`#2258 <https://github.com/requests/requests/pull/2258>`_)
  564. - Support for bytestring URLs on Python 3.x (`#2238 <https://github.com/requests/requests/pull/2238>`_)
  565. **Bugfixes**
  566. - Avoid getting stuck in a loop (`#2244 <https://github.com/requests/requests/pull/2244>`_)
  567. - Multiple calls to iter* fail with unhelpful error. (`#2240 <https://github.com/requests/requests/issues/2240>`_, `#2241 <https://github.com/requests/requests/issues/2241>`_)
  568. **Documentation**
  569. - Correct redirection introduction (`#2245 <https://github.com/requests/requests/pull/2245/>`_)
  570. - Added example of how to send multiple files in one request. (`#2227 <https://github.com/requests/requests/pull/2227/>`_)
  571. - Clarify how to pass a custom set of CAs (`#2248 <https://github.com/requests/requests/pull/2248/>`_)
  572. 2.4.1 (2014-09-09)
  573. ++++++++++++++++++
  574. - Now has a "security" package extras set, ``$ pip install requests[security]``
  575. - Requests will now use Certifi if it is available.
  576. - Capture and re-raise urllib3 ProtocolError
  577. - Bugfix for responses that attempt to redirect to themselves forever (wtf?).
  578. 2.4.0 (2014-08-29)
  579. ++++++++++++++++++
  580. **Behavioral Changes**
  581. - ``Connection: keep-alive`` header is now sent automatically.
  582. **Improvements**
  583. - Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.
  584. - Allow copying of PreparedRequests without headers/cookies.
  585. - Updated bundled urllib3 version.
  586. - Refactored settings loading from environment -- new `Session.merge_environment_settings`.
  587. - Handle socket errors in iter_content.
  588. 2.3.0 (2014-05-16)
  589. ++++++++++++++++++
  590. **API Changes**
  591. - New ``Response`` property ``is_redirect``, which is true when the
  592. library could have processed this response as a redirection (whether
  593. or not it actually did).
  594. - The ``timeout`` parameter now affects requests with both ``stream=True`` and
  595. ``stream=False`` equally.
  596. - The change in v2.0.0 to mandate explicit proxy schemes has been reverted.
  597. Proxy schemes now default to ``http://``.
  598. - The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal
  599. dictionary when references as string or viewed in the interpreter.
  600. **Bugfixes**
  601. - No longer expose Authorization or Proxy-Authorization headers on redirect.
  602. Fix CVE-2014-1829 and CVE-2014-1830 respectively.
  603. - Authorization is re-evaluated each redirect.
  604. - On redirect, pass url as native strings.
  605. - Fall-back to autodetected encoding for JSON when Unicode detection fails.
  606. - Headers set to ``None`` on the ``Session`` are now correctly not sent.
  607. - Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same
  608. response.
  609. - Stop advertising ``compress`` as a supported Content-Encoding.
  610. - The ``Response.history`` parameter is now always a list.
  611. - Many, many ``urllib3`` bugfixes.
  612. 2.2.1 (2014-01-23)
  613. ++++++++++++++++++
  614. **Bugfixes**
  615. - Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character.
  616. - Assorted urllib3 fixes.
  617. 2.2.0 (2014-01-09)
  618. ++++++++++++++++++
  619. **API Changes**
  620. - New exception: ``ContentDecodingError``. Raised instead of ``urllib3``
  621. ``DecodeError`` exceptions.
  622. **Bugfixes**
  623. - Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6.
  624. - Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory.
  625. - Use the correct pool size for pools of connections to proxies.
  626. - Fix iteration of ``CookieJar`` objects.
  627. - Ensure that cookies are persisted over redirect.
  628. - Switch back to using chardet, since it has merged with charade.
  629. 2.1.0 (2013-12-05)
  630. ++++++++++++++++++
  631. - Updated CA Bundle, of course.
  632. - Cookies set on individual Requests through a ``Session`` (e.g. via ``Session.get()``) are no longer persisted to the ``Session``.
  633. - Clean up connections when we hit problems during chunked upload, rather than leaking them.
  634. - Return connections to the pool when a chunked upload is successful, rather than leaking it.
  635. - Match the HTTPbis recommendation for HTTP 301 redirects.
  636. - Prevent hanging when using streaming uploads and Digest Auth when a 401 is received.
  637. - Values of headers set by Requests are now always the native string type.
  638. - Fix previously broken SNI support.
  639. - Fix accessing HTTP proxies using proxy authentication.
  640. - Unencode HTTP Basic usernames and passwords extracted from URLs.
  641. - Support for IP address ranges for no_proxy environment variable
  642. - Parse headers correctly when users override the default ``Host:`` header.
  643. - Avoid munging the URL in case of case-sensitive servers.
  644. - Looser URL handling for non-HTTP/HTTPS urls.
  645. - Accept unicode methods in Python 2.6 and 2.7.
  646. - More resilient cookie handling.
  647. - Make ``Response`` objects pickleable.
  648. - Actually added MD5-sess to Digest Auth instead of pretending to like last time.
  649. - Updated internal urllib3.
  650. - Fixed @Lukasa's lack of taste.
  651. 2.0.1 (2013-10-24)
  652. ++++++++++++++++++
  653. - Updated included CA Bundle with new mistrusts and automated process for the future
  654. - Added MD5-sess to Digest Auth
  655. - Accept per-file headers in multipart file POST messages.
  656. - Fixed: Don't send the full URL on CONNECT messages.
  657. - Fixed: Correctly lowercase a redirect scheme.
  658. - Fixed: Cookies not persisted when set via functional API.
  659. - Fixed: Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
  660. - Updated internal urllib3 and chardet.
  661. 2.0.0 (2013-09-24)
  662. ++++++++++++++++++
  663. **API Changes:**
  664. - Keys in the Headers dictionary are now native strings on all Python versions,
  665. i.e. bytestrings on Python 2, unicode on Python 3.
  666. - Proxy URLs now *must* have an explicit scheme. A ``MissingSchema`` exception
  667. will be raised if they don't.
  668. - Timeouts now apply to read time if ``Stream=False``.
  669. - ``RequestException`` is now a subclass of ``IOError``, not ``RuntimeError``.
  670. - Added new method to ``PreparedRequest`` objects: ``PreparedRequest.copy()``.
  671. - Added new method to ``Session`` objects: ``Session.update_request()``. This
  672. method updates a ``Request`` object with the data (e.g. cookies) stored on
  673. the ``Session``.
  674. - Added new method to ``Session`` objects: ``Session.prepare_request()``. This
  675. method updates and prepares a ``Request`` object, and returns the
  676. corresponding ``PreparedRequest`` object.
  677. - Added new method to ``HTTPAdapter`` objects: ``HTTPAdapter.proxy_headers()``.
  678. This should not be called directly, but improves the subclass interface.
  679. - ``httplib.IncompleteRead`` exceptions caused by incorrect chunked encoding
  680. will now raise a Requests ``ChunkedEncodingError`` instead.
  681. - Invalid percent-escape sequences now cause a Requests ``InvalidURL``
  682. exception to be raised.
  683. - HTTP 208 no longer uses reason phrase ``"im_used"``. Correctly uses
  684. ``"already_reported"``.
  685. - HTTP 226 reason added (``"im_used"``).
  686. **Bugfixes:**
  687. - Vastly improved proxy support, including the CONNECT verb. Special thanks to
  688. the many contributors who worked towards this improvement.
  689. - Cookies are now properly managed when 401 authentication responses are
  690. received.
  691. - Chunked encoding fixes.
  692. - Support for mixed case schemes.
  693. - Better handling of streaming downloads.
  694. - Retrieve environment proxies from more locations.
  695. - Minor cookies fixes.
  696. - Improved redirect behaviour.
  697. - Improved streaming behaviour, particularly for compressed data.
  698. - Miscellaneous small Python 3 text encoding bugs.
  699. - ``.netrc`` no longer overrides explicit auth.
  700. - Cookies set by hooks are now correctly persisted on Sessions.
  701. - Fix problem with cookies that specify port numbers in their host field.
  702. - ``BytesIO`` can be used to perform streaming uploads.
  703. - More generous parsing of the ``no_proxy`` environment variable.
  704. - Non-string objects can be passed in data values alongside files.
  705. 1.2.3 (2013-05-25)
  706. ++++++++++++++++++
  707. - Simple packaging fix
  708. 1.2.2 (2013-05-23)
  709. ++++++++++++++++++
  710. - Simple packaging fix
  711. 1.2.1 (2013-05-20)
  712. ++++++++++++++++++
  713. - 301 and 302 redirects now change the verb to GET for all verbs, not just
  714. POST, improving browser compatibility.
  715. - Python 3.3.2 compatibility
  716. - Always percent-encode location headers
  717. - Fix connection adapter matching to be most-specific first
  718. - new argument to the default connection adapter for passing a block argument
  719. - prevent a KeyError when there's no link headers
  720. 1.2.0 (2013-03-31)
  721. ++++++++++++++++++
  722. - Fixed cookies on sessions and on requests
  723. - Significantly change how hooks are dispatched - hooks now receive all the
  724. arguments specified by the user when making a request so hooks can make a
  725. secondary request with the same parameters. This is especially necessary for
  726. authentication handler authors
  727. - certifi support was removed
  728. - Fixed bug where using OAuth 1 with body ``signature_type`` sent no data
  729. - Major proxy work thanks to @Lukasa including parsing of proxy authentication
  730. from the proxy url
  731. - Fix DigestAuth handling too many 401s
  732. - Update vendored urllib3 to include SSL bug fixes
  733. - Allow keyword arguments to be passed to ``json.loads()`` via the
  734. ``Response.json()`` method
  735. - Don't send ``Content-Length`` header by default on ``GET`` or ``HEAD``
  736. requests
  737. - Add ``elapsed`` attribute to ``Response`` objects to time how long a request
  738. took.
  739. - Fix ``RequestsCookieJar``
  740. - Sessions and Adapters are now picklable, i.e., can be used with the
  741. multiprocessing library
  742. - Update charade to version 1.0.3
  743. The change in how hooks are dispatched will likely cause a great deal of
  744. issues.
  745. 1.1.0 (2013-01-10)
  746. ++++++++++++++++++
  747. - CHUNKED REQUESTS
  748. - Support for iterable response bodies
  749. - Assume servers persist redirect params
  750. - Allow explicit content types to be specified for file data
  751. - Make merge_kwargs case-insensitive when looking up keys
  752. 1.0.3 (2012-12-18)
  753. ++++++++++++++++++
  754. - Fix file upload encoding bug
  755. - Fix cookie behavior
  756. 1.0.2 (2012-12-17)
  757. ++++++++++++++++++
  758. - Proxy fix for HTTPAdapter.
  759. 1.0.1 (2012-12-17)
  760. ++++++++++++++++++
  761. - Cert verification exception bug.
  762. - Proxy fix for HTTPAdapter.
  763. 1.0.0 (2012-12-17)
  764. ++++++++++++++++++
  765. - Massive Refactor and Simplification
  766. - Switch to Apache 2.0 license
  767. - Swappable Connection Adapters
  768. - Mountable Connection Adapters
  769. - Mutable ProcessedRequest chain
  770. - /s/prefetch/stream
  771. - Removal of all configuration
  772. - Standard library logging
  773. - Make Response.json() callable, not property.
  774. - Usage of new charade project, which provides python 2 and 3 simultaneous chardet.
  775. - Removal of all hooks except 'response'
  776. - Removal of all authentication helpers (OAuth, Kerberos)
  777. This is not a backwards compatible change.
  778. 0.14.2 (2012-10-27)
  779. +++++++++++++++++++
  780. - Improved mime-compatible JSON handling
  781. - Proxy fixes
  782. - Path hack fixes
  783. - Case-Insensitive Content-Encoding headers
  784. - Support for CJK parameters in form posts
  785. 0.14.1 (2012-10-01)
  786. +++++++++++++++++++
  787. - Python 3.3 Compatibility
  788. - Simply default accept-encoding
  789. - Bugfixes
  790. 0.14.0 (2012-09-02)
  791. ++++++++++++++++++++
  792. - No more iter_content errors if already downloaded.
  793. 0.13.9 (2012-08-25)
  794. +++++++++++++++++++
  795. - Fix for OAuth + POSTs
  796. - Remove exception eating from dispatch_hook
  797. - General bugfixes
  798. 0.13.8 (2012-08-21)
  799. +++++++++++++++++++
  800. - Incredible Link header support :)
  801. 0.13.7 (2012-08-19)
  802. +++++++++++++++++++
  803. - Support for (key, value) lists everywhere.
  804. - Digest Authentication improvements.
  805. - Ensure proxy exclusions work properly.
  806. - Clearer UnicodeError exceptions.
  807. - Automatic casting of URLs to strings (fURL and such)
  808. - Bugfixes.
  809. 0.13.6 (2012-08-06)
  810. +++++++++++++++++++
  811. - Long awaited fix for hanging connections!
  812. 0.13.5 (2012-07-27)
  813. +++++++++++++++++++
  814. - Packaging fix
  815. 0.13.4 (2012-07-27)
  816. +++++++++++++++++++
  817. - GSSAPI/Kerberos authentication!
  818. - App Engine 2.7 Fixes!
  819. - Fix leaking connections (from urllib3 update)
  820. - OAuthlib path hack fix
  821. - OAuthlib URL parameters fix.
  822. 0.13.3 (2012-07-12)
  823. +++++++++++++++++++
  824. - Use simplejson if available.
  825. - Do not hide SSLErrors behind Timeouts.
  826. - Fixed param handling with urls containing fragments.
  827. - Significantly improved information in User Agent.
  828. - client certificates are ignored when verify=False
  829. 0.13.2 (2012-06-28)
  830. +++++++++++++++++++
  831. - Zero dependencies (once again)!
  832. - New: Response.reason
  833. - Sign querystring parameters in OAuth 1.0
  834. - Client certificates no longer ignored when verify=False
  835. - Add openSUSE certificate support
  836. 0.13.1 (2012-06-07)
  837. +++++++++++++++++++
  838. - Allow passing a file or file-like object as data.
  839. - Allow hooks to return responses that indicate errors.
  840. - Fix Response.text and Response.json for body-less responses.
  841. 0.13.0 (2012-05-29)
  842. +++++++++++++++++++
  843. - Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_
  844. - Allow disabling of cookie persistence.
  845. - New implementation of safe_mode
  846. - cookies.get now supports default argument
  847. - Session cookies not saved when Session.request is called with return_response=False
  848. - Env: no_proxy support.
  849. - RequestsCookieJar improvements.
  850. - Various bug fixes.
  851. 0.12.1 (2012-05-08)
  852. +++++++++++++++++++
  853. - New ``Response.json`` property.
  854. - Ability to add string file uploads.
  855. - Fix out-of-range issue with iter_lines.
  856. - Fix iter_content default size.
  857. - Fix POST redirects containing files.
  858. 0.12.0 (2012-05-02)
  859. +++++++++++++++++++
  860. - EXPERIMENTAL OAUTH SUPPORT!
  861. - Proper CookieJar-backed cookies interface with awesome dict-like interface.
  862. - Speed fix for non-iterated content chunks.
  863. - Move ``pre_request`` to a more usable place.
  864. - New ``pre_send`` hook.
  865. - Lazily encode data, params, files.
  866. - Load system Certificate Bundle if ``certify`` isn't available.
  867. - Cleanups, fixes.
  868. 0.11.2 (2012-04-22)
  869. +++++++++++++++++++
  870. - Attempt to use the OS's certificate bundle if ``certifi`` isn't available.
  871. - Infinite digest auth redirect fix.
  872. - Multi-part file upload improvements.
  873. - Fix decoding of invalid %encodings in URLs.
  874. - If there is no content in a response don't throw an error the second time that content is attempted to be read.
  875. - Upload data on redirects.
  876. 0.11.1 (2012-03-30)
  877. +++++++++++++++++++
  878. * POST redirects now break RFC to do what browsers do: Follow up with a GET.
  879. * New ``strict_mode`` configuration to disable new redirect behavior.
  880. 0.11.0 (2012-03-14)
  881. +++++++++++++++++++
  882. * Private SSL Certificate support
  883. * Remove select.poll from Gevent monkeypatching
  884. * Remove redundant generator for chunked transfer encoding
  885. * Fix: Response.ok raises Timeout Exception in safe_mode
  886. 0.10.8 (2012-03-09)
  887. +++++++++++++++++++
  888. * Generate chunked ValueError fix
  889. * Proxy configuration by environment variables
  890. * Simplification of iter_lines.
  891. * New `trust_env` configuration for disabling system/environment hints.
  892. * Suppress cookie errors.
  893. 0.10.7 (2012-03-07)
  894. +++++++++++++++++++
  895. * `encode_uri` = False
  896. 0.10.6 (2012-02-25)
  897. +++++++++++++++++++
  898. * Allow '=' in cookies.
  899. 0.10.5 (2012-02-25)
  900. +++++++++++++++++++
  901. * Response body with 0 content-length fix.
  902. * New async.imap.
  903. * Don't fail on netrc.
  904. 0.10.4 (2012-02-20)
  905. +++++++++++++++++++
  906. * Honor netrc.
  907. 0.10.3 (2012-02-20)
  908. +++++++++++++++++++
  909. * HEAD requests don't follow redirects anymore.
  910. * raise_for_status() doesn't raise for 3xx anymore.
  911. * Make Session objects picklable.
  912. * ValueError for invalid schema URLs.
  913. 0.10.2 (2012-01-15)
  914. +++++++++++++++++++
  915. * Vastly improved URL quoting.
  916. * Additional allowed cookie key values.
  917. * Attempted fix for "Too many open files" Error
  918. * Replace unicode errors on first pass, no need for second pass.
  919. * Append '/' to bare-domain urls before query insertion.
  920. * Exceptions now inherit from RuntimeError.
  921. * Binary uploads + auth fix.
  922. * Bugfixes.
  923. 0.10.1 (2012-01-23)
  924. +++++++++++++++++++
  925. * PYTHON 3 SUPPORT!
  926. * Dropped 2.5 Support. (*Backwards Incompatible*)
  927. 0.10.0 (2012-01-21)
  928. +++++++++++++++++++
  929. * ``Response.content`` is now bytes-only. (*Backwards Incompatible*)
  930. * New ``Response.text`` is unicode-only.
  931. * If no ``Response.encoding`` is specified and ``chardet`` is available, ``Response.text`` will guess an encoding.
  932. * Default to ISO-8859-1 (Western) encoding for "text" subtypes.
  933. * Removal of `decode_unicode`. (*Backwards Incompatible*)
  934. * New multiple-hooks system.
  935. * New ``Response.register_hook`` for registering hooks within the pipeline.
  936. * ``Response.url`` is now Unicode.
  937. 0.9.3 (2012-01-18)
  938. ++++++++++++++++++
  939. * SSL verify=False bugfix (apparent on windows machines).
  940. 0.9.2 (2012-01-18)
  941. ++++++++++++++++++
  942. * Asynchronous async.send method.
  943. * Support for proper chunk streams with boundaries.
  944. * session argument for Session classes.
  945. * Print entire hook tracebacks, not just exception instance.
  946. * Fix response.iter_lines from pending next line.
  947. * Fix but in HTTP-digest auth w/ URI having query strings.
  948. * Fix in Event Hooks section.
  949. * Urllib3 update.
  950. 0.9.1 (2012-01-06)
  951. ++++++++++++++++++
  952. * danger_mode for automatic Response.raise_for_status()
  953. * Response.iter_lines refactor
  954. 0.9.0 (2011-12-28)
  955. ++++++++++++++++++
  956. * verify ssl is default.
  957. 0.8.9 (2011-12-28)
  958. ++++++++++++++++++
  959. * Packaging fix.
  960. 0.8.8 (2011-12-28)
  961. ++++++++++++++++++
  962. * SSL CERT VERIFICATION!
  963. * Release of Cerifi: Mozilla's cert list.
  964. * New 'verify' argument for SSL requests.
  965. * Urllib3 update.
  966. 0.8.7 (2011-12-24)
  967. ++++++++++++++++++
  968. * iter_lines last-line truncation fix
  969. * Force safe_mode for async requests
  970. * Handle safe_mode exceptions more consistently
  971. * Fix iteration on null responses in safe_mode
  972. 0.8.6 (2011-12-18)
  973. ++++++++++++++++++
  974. * Socket timeout fixes.
  975. * Proxy Authorization support.
  976. 0.8.5 (2011-12-14)
  977. ++++++++++++++++++
  978. * Response.iter_lines!
  979. 0.8.4 (2011-12-11)
  980. ++++++++++++++++++
  981. * Prefetch bugfix.
  982. * Added license to installed version.
  983. 0.8.3 (2011-11-27)
  984. ++++++++++++++++++
  985. * Converted auth system to use simpler callable objects.
  986. * New session parameter to API methods.
  987. * Display full URL while logging.
  988. 0.8.2 (2011-11-19)
  989. ++++++++++++++++++
  990. * New Unicode decoding system, based on over-ridable `Response.encoding`.
  991. * Proper URL slash-quote handling.
  992. * Cookies with ``[``, ``]``, and ``_`` allowed.
  993. 0.8.1 (2011-11-15)
  994. ++++++++++++++++++
  995. * URL Request path fix
  996. * Proxy fix.
  997. * Timeouts fix.
  998. 0.8.0 (2011-11-13)
  999. ++++++++++++++++++
  1000. * Keep-alive support!
  1001. * Complete removal of Urllib2
  1002. * Complete removal of Poster
  1003. * Complete removal of CookieJars
  1004. * New ConnectionError raising
  1005. * Safe_mode for error catching
  1006. * prefetch parameter for request methods
  1007. * OPTION method
  1008. * Async pool size throttling
  1009. * File uploads send real names
  1010. * Vendored in urllib3
  1011. 0.7.6 (2011-11-07)
  1012. ++++++++++++++++++
  1013. * Digest authentication bugfix (attach query data to path)
  1014. 0.7.5 (2011-11-04)
  1015. ++++++++++++++++++
  1016. * Response.content = None if there was an invalid response.
  1017. * Redirection auth handling.
  1018. 0.7.4 (2011-10-26)
  1019. ++++++++++++++++++
  1020. * Session Hooks fix.
  1021. 0.7.3 (2011-10-23)
  1022. ++++++++++++++++++
  1023. * Digest Auth fix.
  1024. 0.7.2 (2011-10-23)
  1025. ++++++++++++++++++
  1026. * PATCH Fix.
  1027. 0.7.1 (2011-10-23)
  1028. ++++++++++++++++++
  1029. * Move away from urllib2 authentication handling.
  1030. * Fully Remove AuthManager, AuthObject, &c.
  1031. * New tuple-based auth system with handler callbacks.
  1032. 0.7.0 (2011-10-22)
  1033. ++++++++++++++++++
  1034. * Sessions are now the primary interface.
  1035. * Deprecated InvalidMethodException.
  1036. * PATCH fix.
  1037. * New config system (no more global settings).
  1038. 0.6.6 (2011-10-19)
  1039. ++++++++++++++++++
  1040. * Session parameter bugfix (params merging).
  1041. 0.6.5 (2011-10-18)
  1042. ++++++++++++++++++
  1043. * Offline (fast) test suite.
  1044. * Session dictionary argument merging.
  1045. 0.6.4 (2011-10-13)
  1046. ++++++++++++++++++
  1047. * Automatic decoding of unicode, based on HTTP Headers.
  1048. * New ``decode_unicode`` setting.
  1049. * Removal of ``r.read/close`` methods.
  1050. * New ``r.faw`` interface for advanced response usage.*
  1051. * Automatic expansion of parameterized headers.
  1052. 0.6.3 (2011-10-13)
  1053. ++++++++++++++++++
  1054. * Beautiful ``requests.async`` module, for making async requests w/ gevent.
  1055. 0.6.2 (2011-10-09)
  1056. ++++++++++++++++++
  1057. * GET/HEAD obeys allow_redirects=False.
  1058. 0.6.1 (2011-08-20)
  1059. ++++++++++++++++++
  1060. * Enhanced status codes experience ``\o/``
  1061. * Set a maximum number of redirects (``settings.max_redirects``)
  1062. * Full Unicode URL support
  1063. * Support for protocol-less redirects.
  1064. * Allow for arbitrary request types.
  1065. * Bugfixes
  1066. 0.6.0 (2011-08-17)
  1067. ++++++++++++++++++
  1068. * New callback hook system
  1069. * New persistent sessions object and context manager
  1070. * Transparent Dict-cookie handling
  1071. * Status code reference object
  1072. * Removed Response.cached
  1073. * Added Response.request
  1074. * All args are kwargs
  1075. * Relative redirect support
  1076. * HTTPError handling improvements
  1077. * Improved https testing
  1078. * Bugfixes
  1079. 0.5.1 (2011-07-23)
  1080. ++++++++++++++++++
  1081. * International Domain Name Support!
  1082. * Access headers without fetching entire body (``read()``)
  1083. * Use lists as dicts for parameters
  1084. * Add Forced Basic Authentication
  1085. * Forced Basic is default authentication type
  1086. * ``python-requests.org`` default User-Agent header
  1087. * CaseInsensitiveDict lower-case caching
  1088. * Response.history bugfix
  1089. 0.5.0 (2011-06-21)
  1090. ++++++++++++++++++
  1091. * PATCH Support
  1092. * Support for Proxies
  1093. * HTTPBin Test Suite
  1094. * Redirect Fixes
  1095. * settings.verbose stream writing
  1096. * Querystrings for all methods
  1097. * URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicitly raised
  1098. ``r.requests.get('hwe://blah'); r.raise_for_status()``
  1099. 0.4.1 (2011-05-22)
  1100. ++++++++++++++++++
  1101. * Improved Redirection Handling
  1102. * New 'allow_redirects' param for following non-GET/HEAD Redirects
  1103. * Settings module refactoring
  1104. 0.4.0 (2011-05-15)
  1105. ++++++++++++++++++
  1106. * Response.history: list of redirected responses
  1107. * Case-Insensitive Header Dictionaries!
  1108. * Unicode URLs
  1109. 0.3.4 (2011-05-14)
  1110. ++++++++++++++++++
  1111. * Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)
  1112. * Internal Refactor
  1113. * Bytes data upload Bugfix
  1114. 0.3.3 (2011-05-12)
  1115. ++++++++++++++++++
  1116. * Request timeouts
  1117. * Unicode url-encoded data
  1118. * Settings context manager and module
  1119. 0.3.2 (2011-04-15)
  1120. ++++++++++++++++++
  1121. * Automatic Decompression of GZip Encoded Content
  1122. * AutoAuth Support for Tupled HTTP Auth
  1123. 0.3.1 (2011-04-01)
  1124. ++++++++++++++++++
  1125. * Cookie Changes
  1126. * Response.read()
  1127. * Poster fix
  1128. 0.3.0 (2011-02-25)
  1129. ++++++++++++++++++
  1130. * Automatic Authentication API Change
  1131. * Smarter Query URL Parameterization
  1132. * Allow file uploads and POST data together
  1133. * New Authentication Manager System
  1134. - Simpler Basic HTTP System
  1135. - Supports all build-in urllib2 Auths
  1136. - Allows for custom Auth Handlers
  1137. 0.2.4 (2011-02-19)
  1138. ++++++++++++++++++
  1139. * Python 2.5 Support
  1140. * PyPy-c v1.4 Support
  1141. * Auto-Authentication tests
  1142. * Improved Request object constructor
  1143. 0.2.3 (2011-02-15)
  1144. ++++++++++++++++++
  1145. * New HTTPHandling Methods
  1146. - Response.__nonzero__ (false if bad HTTP Status)
  1147. - Response.ok (True if expected HTTP Status)
  1148. - Response.error (Logged HTTPError if bad HTTP Status)
  1149. - Response.raise_for_status() (Raises stored HTTPError)
  1150. 0.2.2 (2011-02-14)
  1151. ++++++++++++++++++
  1152. * Still handles request in the event of an HTTPError. (Issue #2)
  1153. * Eventlet and Gevent Monkeypatch support.
  1154. * Cookie Support (Issue #1)
  1155. 0.2.1 (2011-02-14)
  1156. ++++++++++++++++++
  1157. * Added file attribute to POST and PUT requests for multipart-encode file uploads.
  1158. * Added Request.url attribute for context and redirects
  1159. 0.2.0 (2011-02-14)
  1160. ++++++++++++++++++
  1161. * Birth!
  1162. 0.0.1 (2011-02-13)
  1163. ++++++++++++++++++
  1164. * Frustration
  1165. * Conception
  1166. Platform: UNKNOWN
  1167. Classifier: Development Status :: 5 - Production/Stable
  1168. Classifier: Intended Audience :: Developers
  1169. Classifier: Natural Language :: English
  1170. Classifier: License :: OSI Approved :: Apache Software License
  1171. Classifier: Programming Language :: Python
  1172. Classifier: Programming Language :: Python :: 2.6
  1173. Classifier: Programming Language :: Python :: 2.7
  1174. Classifier: Programming Language :: Python :: 3
  1175. Classifier: Programming Language :: Python :: 3.4
  1176. Classifier: Programming Language :: Python :: 3.5
  1177. Classifier: Programming Language :: Python :: 3.6
  1178. Classifier: Programming Language :: Python :: Implementation :: CPython
  1179. Classifier: Programming Language :: Python :: Implementation :: PyPy