Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

1681 рядки
49 KiB

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