Skip to content
Myr

Merge branch 'master' into feature/strip-utf8-bom

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

authored by Kenneth Reitz · committed by GitHub · parents 19cff44, 3e7d0a8 · Browse files · 39 files+790 added−770 removed
This commit

State

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

Diff stats

39 files+790 added−770 removed

  • tests:+52 added−10 removed
  • other:+738 added−760 removed

39 files+790 added−770 removed

modified:docs/_static/custom.css+20 added-25 removed
deleted:docs/_static/native.js-131 removed
1var _native = (function () {2 var _options = {}3 var _construct = function (e) {4 var defaultOptions = {5 carbonZoneKey: '',6 fallback: '',7 ignore: 'false',8 placement: '',9 prefix: 'native',10 targetClass: 'native-ad'11 }1213 if (typeof e === 'undefined') return defaultOptions14 Object.keys(defaultOptions).forEach((key, index) => {15 if (typeof e[key] === 'undefined') {16 e[key] = defaultOptions[key]17 }18 })19 return e20 }2122 var init = function (zone, options) {23 _options = _construct(options)2425 let jsonUrl = `https://srv.buysellads.com/ads/${zone}.json?callback=_native_go`26 if (_options['placement'] !== '') {27 jsonUrl += '&segment=placement:' + _options['placement']28 }29 if (_options['ignore'] === 'true') {30 jsonUrl += '&ignore=yes'31 }3233 let srv = document.createElement('script')34 srv.src = jsonUrl35 document.getElementsByTagName('head')[0].appendChild(srv)36 }3738 var carbon = function (e) {39 let srv = document.createElement('script')40 srv.src = '//cdn.carbonads.com/carbon.js?serve=' + e['carbonZoneKey'] + '&placement=' + e['placement']41 srv.id = '_carbonads_js'4243 return srv44 }4546 var sanitize = function (ads) {47 return ads48 .filter(ad => {49 return Object.keys(ad).length > 050 })51 .filter(ad => {52 return ad.hasOwnProperty('statlink')53 })54 }5556 var pixel = function (p, timestamp) {57 let c = ''58 if (p) {59 p.split('||').forEach((pixel, index) => {60 c += `<img src="${pixel.replace('[timestamp]', timestamp)}" style="display:none;" height="0" width="0" />`61 })62 }63 return c64 }6566 var options = function () {67 return _options68 }6970 return {71 carbon: carbon,72 init: init,73 options: options,74 pixel: pixel,75 sanitize: sanitize76 }77})({})7879var _native_go = function (json) {80 let options = _native.options()81 let ads = _native.sanitize(json['ads'])82 let selectedClass = document.querySelectorAll('.' + options['targetClass'])8384 if (ads.length < 1) {85 selectedClass.forEach((className, index) => {86 let selectedTarget = document.getElementsByClassName(options['targetClass'])[index]8788 if (options['fallback'] !== '' || options['carbonZoneKey'] !== '') selectedTarget.setAttribute('data-state', 'visible')89 selectedTarget.innerHTML = options['fallback']90 if (options['carbonZoneKey'] !== '') selectedTarget.appendChild(_native.carbon(options))91 })9293 // End at this line if no ads are found, avoiding unnecessary steps94 return95 }9697 selectedClass.forEach((className, index) => {98 let selectedTarget = document.getElementsByClassName(options['targetClass'])[index]99 let adElement = selectedTarget.innerHTML100 let prefix = options['prefix']101 let ad = ads[index]102103 if (ad && className) {104 let adInnerHtml = adElement105 .replace(new RegExp('#' + prefix + '_bg_color#', 'g'), ad['backgroundColor'])106 .replace(new RegExp('#' + prefix + '_bg_color_hover#', 'g'), ad['backgroundHoverColor'])107 .replace(new RegExp('#' + prefix + '_company#', 'g'), ad['company'])108 .replace(new RegExp('#' + prefix + '_cta#', 'g'), ad['callToAction'])109 .replace(new RegExp('#' + prefix + '_cta_bg_color#', 'g'), ad['ctaBackgroundColor'])110 .replace(new RegExp('#' + prefix + '_cta_bg_color_hover#', 'g'), ad['ctaBackgroundHoverColor'])111 .replace(new RegExp('#' + prefix + '_cta_color#', 'g'), ad['ctaTextColor'])112 .replace(new RegExp('#' + prefix + '_cta_color_hover#', 'g'), ad['ctaTextColorHover'])113 .replace(new RegExp('#' + prefix + '_desc#', 'g'), ad['description'])114 .replace(new RegExp('#' + prefix + '_index#', 'g'), prefix + '-' + ad['i'])115 .replace(new RegExp('#' + prefix + '_img#', 'g'), ad['image'])116 .replace(new RegExp('#' + prefix + '_small_img#', 'g'), ad['smallImage'])117 .replace(new RegExp('#' + prefix + '_link#', 'g'), ad['statlink'])118 .replace(new RegExp('#' + prefix + '_logo#', 'g'), ad['logo'])119 .replace(new RegExp('#' + prefix + '_color#', 'g'), ad['textColor'])120 .replace(new RegExp('#' + prefix + '_color_hover#', 'g'), ad['textColorHover'])121 .replace(new RegExp('#' + prefix + '_title#', 'g'), ad['title'])122123 selectedTarget.innerHTML = null124 selectedTarget.innerHTML += adInnerHtml + _native.pixel(ad['pixel'], ad['timestamp'])125 selectedTarget.setAttribute('data-state', 'visible')126 } else {127 selectedTarget.innerHTML = null128 selectedTarget.style.display = 'none'129 }130 })131}
modified:docs/_templates/hacks.html+38 added-31 removed
55 unmodified lines
56<!-- That was not a hack. That was art. -->5758<!-- Native CPC by BuySellAds -->5960<script src="{{ pathto('_static/', 1) }}/native.js"></script>61<script>62 _native.init("CK7D62JU", {63 targetClass: 'native-js'64 });65</script>60<script type="text/javascript" src="//m.servedby-buysellads.com/monetization.js"></script>6167<div class="native-js">68 <div class="native-sponsor">Sponsored Ad by #native_company# — Learn More</div>69 <a href="#native_link#" class="native-flex">62<div id="native-ribbon">63</div>6465<script>66_bsa.init('custom', 'CK7D62JU', 'placement:pythonrequestsorg',67 {68 target: '#native-ribbon',69 template: `70<div class="native-sponsor">Sponsored by ##company## — Learn More</div>71 <a href="##link##" class="native-flex">72 <style>71 .native-js {72 background: linear-gradient(-30deg, #native_bg_color#E5, #native_bg_color#E5 45%, #native_bg_color# 45%) #fff;73 }73 #native-ribbon #_custom_ {74 background: linear-gradient(-30deg, ##backgroundColor##E5, ##backgroundColor##E5 45%, ##backgroundColor## 45%) #fff;75 }7675 .native-details,76 .native-sponsor {77 color: #native_color# !important;78 }77 .native-details,78 .native-sponsor,79 .native-bsa {80 color: ##textColor## !important;81 }8280 .native-details:hover {81 color: #native_color_hover# !important;82 }83 .native-details:hover {84 color: ##textColorHover## !important;85 }8684 .native-cta {85 color: #native_cta_color#;86 background-color: #native_cta_bg_color#;87 }87 .native-cta {88 color: ##ctaTextColor##;89 background-color: ##ctaBackgroundColor##;90 }9189 .native-cta:hover {90 color: #native_cta_color_hover;91 background-color: #native_cta_bg_color_hover#;92 }92 .native-cta:hover {93 color: ##ctaTextColorHover##;94 background-color: ##ctaBackgroundColorHover##;95 }96 </style>97 <div class="native-main">95 <img class="native-img" src="#native_logo#">98 <img class="native-img" src="##logo##">99 <div class="native-details">97 <span class="native-company">#native_title#</span>98 <span class="native-desc">#native_desc#</span>100 <span class="native-company">##title##</span>101 <span class="native-desc">##description##</span>102 </div>100 <span class="native-cta">#native_cta#</span>103 </div>104 <span class="native-cta">##callToAction##</span>105 </a>106</div>107`108 }109 );110</script>
modified:docs/_templates/sidebarintro.html+25 added-39 removed
6 unmodified lines
7<p>8 <iframe src="https://ghbtns.com/github-btn.html?user=requests&repo=requests&type=watch&count=true&size=large"9 allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>10</p>11<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />12<style>13.algolia-autocomplete{14 width: 100%;15 height: 1.5em16}17.algolia-autocomplete a{18 border-bottom: none !important;19}20#doc_search{21 width: 100%;22 height: 100%;23}24</style>25<input id="doc_search" placeholder="Search the doc" autofocus/>26<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({27 apiKey: 'f177061e2354c50a97bfc635e827ffab',28 indexName: 'python-requests',29 inputSelector: '#doc_search',30 debug: false // Set debug to true if you want to inspect the dropdown31})" async></script>3233<p>34 Requests is an elegant and simple HTTP library for Python, built for35 human beings.
14 unmodified lines
50<h3>Other Projects</h3>5152<p>More <a href="https://www.kennethreitz.org/">Kenneth Reitz</a> projects:</p>53<ul>54 <li><a href="http://open-dsm-5.org/">Open DSM-5M</a></li>55 <li><a href="https://html.python-requests.org/">Requests-HTML</a></li>56 <li><a href="http://howtopython.org/">howtopython.org</a></li>57 <li><a href="http://pipenv.org/">pipenv</a></li>58 <li><a href="https://pep8.org/">pep8.org</a></li>
11 unmodified lines
70 <li><a href="http://docs.python-requests.org/en/latest/community/recommended/">Recommended Packages and Extensions</a></li>7172 <p></p>7352 <li><a href="https://github.com/requests/requests">Requests @ GitHub</a></li>74 <li><a href="https://github.com/psf/requests">Requests @ GitHub</a></li>75 <li><a href="https://pypi.org/project/requests/">Requests @ PyPI</a></li>54 <li><a href="https://github.com/requests/requests/issues">Issue Tracker</a></li>76 <li><a href="https://github.com/psf/requests/issues">Issue Tracker</a></li>77 <li><a href="http://docs.python-requests.org/en/latest/community/updates/#software-updates">Release History</a></li>78</ul>7980
9 unmodified lines
90 <li><a href="http://it.python-requests.org/">Italian</a></li>91 <li><a href="http://es.python-requests.org/">Spanish</a></li>92</ul>9372<div class="native-js">73 <div class="native-sponsor">Sponsored by #native_company# — Learn More</div>74 <a href="#native_link#" class="native-flex">75 <style>76 .native-js {77 background: linear-gradient(-30deg, #native_bg_color#E5, #native_bg_color#E5 45%, #native_bg_color# 45%) #fff;78 }7980 .native-details,81 .native-sponsor,82 .native-bsa {83 color: #native_color# !important;84 }8586 .native-details:hover {87 color: #native_color_hover# !important;88 }8990 .native-cta {91 color: #native_cta_color#;92 background-color: #native_cta_bg_color#;93 }9495 .native-cta:hover {96 color: #native_cta_color_hover;97 background-color: #native_cta_bg_color_hover#;98 }99 </style>100 <div class="native-main">101 <img class="native-img" src="#native_logo#">102 <div class="native-details">103 <span class="native-company">#native_title#</span>104 <span class="native-desc">#native_desc#</span>105 </div>106 </div>107 <span class="native-cta">#native_cta#</span>108 </a>94<div id="native-ribbon">95</div>
modified:docs/_templates/sidebarlogo.html+22 added-1 removed
5 unmodified lines
6<p>7<iframe src="https://ghbtns.com/github-btn.html?user=requests&repo=requests&type=watch&count=true&size=large"8 allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>9</p>10<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />11<style>12.algolia-autocomplete{13 width: 100%;14 height: 1.5em15}16.algolia-autocomplete a{17 border-bottom: none !important;18}19#doc_search{20 width: 100%;21 height: 100%;22}23</style>24<input id="doc_search" placeholder="Search the doc" autofocus/>25<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({26 apiKey: 'f177061e2354c50a97bfc635e827ffab',27 indexName: 'python-requests',28 inputSelector: '#doc_search',29 debug: false // Set debug to true if you want to inspect the dropdown30})" async></script>311132<p>33 Requests is an elegant and simple HTTP library for Python, built for34 human beings. You are currently looking at the documentation of the35 development release.
19 unmodified lines
55<h3>Other Projects</h3>5657<p>More <a href="https://www.kennethreitz.org/">Kenneth Reitz</a> projects:</p>58<ul>59 <li><a href="http://open-dsm-5.org/">Open DSM-5M</a></li>60 <li><a href="https://html.python-requests.org/">Requests-HTML</a></li>61 <li><a href="http://howtopython.org/">howtopython.org</a></li>62 <li><a href="http://pipenv.org/">pipenv</a></li>63 <li><a href="https://pep8.org/">pep8.org</a></li>
21 unmodified lines
modified:docs/community/faq.rst+2 added-1 removed
19 unmodified lines
20Custom User-Agents?21-------------------2223Requests allows you to easily override User-Agent strings, along with24any other HTTP Header.24any other HTTP Header. See `documentation about headers <http://docs.python-requests.org/en/master/user/quickstart/#custom-headers>`_.25262728Why not Httplib2?29-----------------3031Chris Adams gave an excellent summary on
58 unmodified lines
modified:docs/community/support.rst+1 added-1 removed
27 unmodified lines
28-------------2930If you notice some unexpected behaviour in Requests, or want to see support31for a new feature,32`file an issue on GitHub <https://github.com/requests/requests/issues>`_.32`file an issue on GitHub <https://github.com/psf/requests/issues>`_.333435E-mail36------
18 unmodified lines
modified:docs/community/updates.rst+1 added-1 removed
12 unmodified lines
13GitHub14------1516The best way to track the development of Requests is through17`the GitHub repo <https://github.com/requests/requests>`_.17`the GitHub repo <https://github.com/psf/requests>`_.1819Twitter20-------21
10 unmodified lines
modified:docs/dev/contributing.rst+9 added-2 removed
128 unmodified lines
129 # Aligned with opening delimiter.130 foo = long_function_name(var_one, var_two,131 var_three, var_four)132133No. Just don't. Please.133No. Just don't. Please. This is much better::134135 foo = long_function_name(136 var_one,137 var_two,138 var_three,139 var_four,140 )141142Docstrings are to follow the following syntaxes::143144 def the_earth_is_flat():145 """NASA divided up the seas into thirty-three degrees."""
50 unmodified lines
196through the `GitHub issues`_, **both open and closed**, to confirm that the bug197hasn't been reported before. Duplicate bug reports are a huge drain on the time198of other contributors, and should be avoided as much as possible.199193.. _GitHub issues: https://github.com/requests/requests/issues200.. _GitHub issues: https://github.com/psf/requests/issues201202203Feature Requests204----------------
12 unmodified lines
modified:docs/dev/todo.rst+2 added-2 removed
6 unmodified lines
78#. Check for open issues or open a fresh issue to start a discussion around a bug.9 There is a Contributor Friendly tag for issues that should be ideal for people who are not very10 familiar with the codebase yet.11#. Fork `the repository <https://github.com/requests/requests>`_ on GitHub and start making your11#. Fork `the repository <https://github.com/psf/requests>`_ on GitHub and start making your12 changes to a new branch.13#. Write a test which shows that the bug was fixed.14#. Send a pull request and bug the maintainer until it gets merged and published. :)15 Make sure to add yourself to `AUTHORS <https://github.com/requests/requests/blob/master/AUTHORS.rst>`_.15 Make sure to add yourself to `AUTHORS <https://github.com/psf/requests/blob/master/AUTHORS.rst>`_.1617Feature Freeze18--------------19
45 unmodified lines
modified:docs/user/advanced.rst+9 added-8 removed
191 unmodified lines
192When you are using the prepared request flow, keep in mind that it does not take into account the environment.193This can cause problems if you are using environment variables to change the behaviour of requests.194For example: Self-signed SSL certificates specified in ``REQUESTS_CA_BUNDLE`` will not be taken into account.195As a result an ``SSL: CERTIFICATE_VERIFY_FAILED`` is thrown.196You can get around this behaviour by explicity merging the environment settings into your session::196You can get around this behaviour by explicitly merging the environment settings into your session::197198 from requests import Request, Session199200 s = Session()
98 unmodified lines
299immediately. You can override this behaviour and defer downloading the response300body until you access the :attr:`Response.content <requests.Response.content>`301attribute with the ``stream`` parameter::302303 tarball_url = 'https://github.com/requests/requests/tarball/master'303 tarball_url = 'https://github.com/psf/requests/tarball/master'304 r = requests.get(tarball_url, stream=True)305306At this point only the response headers have been downloaded and the connection307remains open, hence allowing us to make content retrieval conditional::
371 unmodified lines
679from GitHub. Suppose we wanted commit ``a050faf`` on Requests. We would get it680like so::681682 >>> import requests683 >>> r = requests.get('https://api.github.com/repos/requests/requests/git/commits/a050faf084662f3a352dd1a941f2c7c9f886d4ad')683 >>> r = requests.get('https://api.github.com/repos/psf/requests/git/commits/a050faf084662f3a352dd1a941f2c7c9f886d4ad')684685We should confirm that GitHub responded correctly. If it has, we want to work686out what type of content it is. Do this like so::687
46 unmodified lines
734we should probably avoid making ham-handed POSTS to it. Instead, let's play735with the Issues feature of GitHub.736737This documentation was added in response to738`Issue #482 <https://github.com/requests/requests/issues/482>`_. Given that738`Issue #482 <https://github.com/psf/requests/issues/482>`_. Given that739this issue already exists, we will use it as an example. Let's start by getting it.740741::742743 >>> r = requests.get('https://api.github.com/repos/requests/requests/issues/482')743 >>> r = requests.get('https://api.github.com/repos/psf/requests/issues/482')744 >>> r.status_code745 200746747 >>> issue = json.loads(r.text)
34 unmodified lines
782783::784785 >>> body = json.dumps({u"body": u"Sounds great! I'll get right on it!"})786 >>> url = u"https://api.github.com/repos/requests/requests/issues/482/comments"786 >>> url = u"https://api.github.com/repos/psf/requests/issues/482/comments"787788 >>> r = requests.post(url=url, data=body)789 >>> r.status_code790 404
25 unmodified lines
816 >>> print(content[u"id"])817 5804413818819 >>> body = json.dumps({u"body": u"Sounds great! I'll get right on it once I feed my cat."})820 >>> url = u"https://api.github.com/repos/requests/requests/issues/comments/5804413"820 >>> url = u"https://api.github.com/repos/psf/requests/issues/comments/5804413"821822 >>> r = requests.patch(url=url, data=body, auth=auth)823 >>> r.status_code824 200
150 unmodified lines
975response at a time. However, these calls will still block.976977If you are concerned about the use of blocking IO, there are lots of projects978out there that combine Requests with one of Python's asynchronicity frameworks.979Some excellent examples are `requests-threads`_, `grequests`_, and `requests-futures`_.979Some excellent examples are `requests-threads`_, `grequests`_, `requests-futures`_, and `requests-async`_.980981.. _`requests-threads`: https://github.com/requests/requests-threads982.. _`grequests`: https://github.com/kennethreitz/grequests983.. _`requests-futures`: https://github.com/ross/requests-futures984.. _`requests-async`: https://github.com/encode/requests-async985986Header Ordering987---------------988
44 unmodified lines
modified:docs/user/install.rst+4 added-4 removed
23 unmodified lines
24Get the Source Code25-------------------2627Requests is actively developed on GitHub, where the code is28`always available <https://github.com/requests/requests>`_.28`always available <https://github.com/psf/requests>`_.2930You can either clone the public repository::3132 $ git clone git://github.com/requests/requests.git32 $ git clone git://github.com/psf/requests.git3334Or, download the `tarball <https://github.com/requests/requests/tarball/master>`_::34Or, download the `tarball <https://github.com/psf/requests/tarball/master>`_::3536 $ curl -OL https://github.com/requests/requests/tarball/master36 $ curl -OL https://github.com/psf/requests/tarball/master37 # optionally, zipball is also available (for Windows users).3839Once you have a copy of the source, you can embed it in your own Python40package, or install it into your site-packages easily::
3 unmodified lines
modified:docs/user/quickstart.rst+3 added
558 unmodified lines
559560-----------------------561562Ready for more? Check out the :ref:`advanced <advanced>` section.563564565If you're on the job market, consider taking `this programming quiz <https://triplebyte.com/a/b1i2FB8/requests-docs-1>`_. A substantial donation will be made to this project, if you find a job through this platform.
modified:docs/conf.py+107 added-103 removed
16 unmodified lines
1718# If extensions (or modules to document with autodoc) are in another directory,19# add these directories to sys.path here. If the directory is relative to the20# documentation root, use os.path.abspath to make it absolute, like shown here.21#sys.path.insert(0, os.path.abspath('.'))21# sys.path.insert(0, os.path.abspath('.'))2223# Insert Requests' path into the system.24sys.path.insert(0, os.path.abspath('..'))25sys.path.insert(0, os.path.abspath('_themes'))24sys.path.insert(0, os.path.abspath(".."))25sys.path.insert(0, os.path.abspath("_themes"))2627import requests282930# -- General configuration ------------------------------------------------3132# If your documentation needs a minimal Sphinx version, state it here.33#needs_sphinx = '1.0'33# needs_sphinx = '1.0'3435# Add any Sphinx extension module names here, as strings. They can be36# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom37# ones.38extensions = [39 'sphinx.ext.autodoc',40 'sphinx.ext.intersphinx',41 'sphinx.ext.todo',42 'sphinx.ext.viewcode',39 "sphinx.ext.autodoc",40 "sphinx.ext.intersphinx",41 "sphinx.ext.todo",42 "sphinx.ext.viewcode",43]4445# Add any paths that contain templates here, relative to this directory.46templates_path = ['_templates']46templates_path = ["_templates"]4748# The suffix(es) of source filenames.49# You can specify multiple suffix as a list of string:50# source_suffix = ['.rst', '.md']51source_suffix = '.rst'51source_suffix = ".rst"5253# The encoding of source files.54#source_encoding = 'utf-8-sig'54# source_encoding = 'utf-8-sig'5556# The master toctree document.57master_doc = 'index'57master_doc = "index"5859# General information about the project.60project = u'Requests'61copyright = u'MMXVIII. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'62author = u'Kenneth Reitz'60project = u"Requests"61copyright = u'MMXVIX. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'62author = u"Kenneth Reitz"6364# The version info for the project you're documenting, acts as replacement for65# |version| and |release|, also used in various other places throughout the66# built documents.
11 unmodified lines
78language = None7980# There are two options for replacing |today|: either, you set today to some81# non-false value, then it is used:82#today = ''82# today = ''83# Else, today_fmt is used as the format for a strftime call.84#today_fmt = '%B %d, %Y'84# today_fmt = '%B %d, %Y'8586# List of patterns, relative to source directory, that match files and87# directories to ignore when looking for source files.88exclude_patterns = ['_build']88exclude_patterns = ["_build"]8990# The reST default role (used for this markup: `text`) to use for all91# documents.92#default_role = None92# default_role = None9394# If true, '()' will be appended to :func: etc. cross-reference text.95add_function_parentheses = False96
2 unmodified lines
99add_module_names = True100101# If true, sectionauthor and moduleauthor directives will be shown in the102# output. They are ignored by default.103#show_authors = False103# show_authors = False104105# The name of the Pygments (syntax highlighting) style to use.106pygments_style = 'flask_theme_support.FlaskyStyle'106pygments_style = "flask_theme_support.FlaskyStyle"107108# A list of ignored prefixes for module index sorting.109#modindex_common_prefix = []109# modindex_common_prefix = []110111# If true, keep warnings as "system message" paragraphs in the built documents.112#keep_warnings = False112# keep_warnings = False113114# If true, `todo` and `todoList` produce output, else they produce nothing.115todo_include_todos = True116
1 unmodified line
118# -- Options for HTML output ----------------------------------------------119120# The theme to use for HTML and HTML Help pages. See the documentation for121# a list of builtin themes.122html_theme = 'alabaster'122html_theme = "alabaster"123124# Theme options are theme-specific and customize the look and feel of a theme125# further. For a list of options available for each theme, see the126# documentation.127html_theme_options = {128 'show_powered_by': False,129 'github_user': 'requests',130 'github_repo': 'requests',131 'github_banner': True,132 'show_related': False,133 'note_bg': '#FFF59C'128 "show_powered_by": False,129 "github_user": "requests",130 "github_repo": "requests",131 "github_banner": True,132 "show_related": False,133 "note_bg": "#FFF59C",134}135136# Add any paths that contain custom themes here, relative to this directory.137#html_theme_path = []137# html_theme_path = []138139# The name for this set of Sphinx documents. If None, it defaults to140# "<project> v<release> documentation".141#html_title = None141# html_title = None142143# A shorter title for the navigation bar. Default is the same as html_title.144#html_short_title = None144# html_short_title = None145146# The name of an image file (relative to this directory) to place at the top147# of the sidebar.148#html_logo = None148# html_logo = None149150# The name of an image file (within the static path) to use as favicon of the151# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32152# pixels large.153#html_favicon = None153# html_favicon = None154155# Add any paths that contain custom static files (such as style sheets) here,156# relative to this directory. They are copied after the builtin static files,157# so a file named "default.css" will overwrite the builtin "default.css".158html_static_path = ['_static']158html_static_path = ["_static"]159160# Add any extra paths that contain custom files (such as robots.txt or161# .htaccess) here, relative to this directory. These files are copied162# directly to the root of the documentation.163#html_extra_path = []163# html_extra_path = []164165# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,166# using the given strftime format.167#html_last_updated_fmt = '%b %d, %Y'167# html_last_updated_fmt = '%b %d, %Y'168169# If true, SmartyPants will be used to convert quotes and dashes to170# typographically correct entities.171html_use_smartypants = False172173# Custom sidebar templates, maps document names to template names.174html_sidebars = {175 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html',176 'hacks.html'],177 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',178 'sourcelink.html', 'searchbox.html', 'hacks.html']175 "index": ["sidebarintro.html", "sourcelink.html", "searchbox.html", "hacks.html"],176 "**": [177 "sidebarlogo.html",178 "localtoc.html",179 "relations.html",180 "sourcelink.html",181 "searchbox.html",182 "hacks.html",183 ],184}185186# Additional templates that should be rendered to pages, maps page names to187# template names.183#html_additional_pages = {}188# html_additional_pages = {}189190# If false, no module index is generated.186#html_domain_indices = True191# html_domain_indices = True192193# If false, no index is generated.189#html_use_index = True194# html_use_index = True195196# If true, the index is split into individual pages for each letter.192#html_split_index = False197# html_split_index = False198199# If true, links to the reST sources are added to the pages.200html_show_sourcelink = False201
5 unmodified lines
207208# If true, an OpenSearch description file will be output, and all pages will209# contain a <link> tag referring to it. The value of this option must be the210# base URL from which the finished HTML is served.206#html_use_opensearch = ''211# html_use_opensearch = ''212213# This is the file name suffix for HTML files (e.g. ".xhtml").209#html_file_suffix = None214# html_file_suffix = None215216# Language to be used for generating the HTML full-text search index.217# Sphinx supports the following languages:218# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'219# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'215#html_search_language = 'en'220# html_search_language = 'en'221222# A dictionary with options for the search language support, empty by default.223# Now only 'ja' uses this config value219#html_search_options = {'type': 'default'}224# html_search_options = {'type': 'default'}225226# The name of a javascript file (relative to the configuration directory) that227# implements a search results scorer. If empty, the default will be used.223#html_search_scorer = 'scorer.js'228# html_search_scorer = 'scorer.js'229230# Output file base name for HTML help builder.226htmlhelp_basename = 'Requestsdoc'231htmlhelp_basename = "Requestsdoc"232233# -- Options for LaTeX output ---------------------------------------------234235latex_elements = {231# The paper size ('letterpaper' or 'a4paper').232#'papersize': 'letterpaper',233234# The font size ('10pt', '11pt' or '12pt').235#'pointsize': '10pt',236237# Additional stuff for the LaTeX preamble.238#'preamble': '',239240# Latex figure (float) alignment241#'figure_align': 'htbp',236 # The paper size ('letterpaper' or 'a4paper').237 #'papersize': 'letterpaper',238 # The font size ('10pt', '11pt' or '12pt').239 #'pointsize': '10pt',240 # Additional stuff for the LaTeX preamble.241 #'preamble': '',242 # Latex figure (float) alignment243 #'figure_align': 'htbp',244}245246# Grouping the document tree into LaTeX files. List of tuples247# (source start file, target name, title,248# author, documentclass [howto, manual, or own class]).249latex_documents = [248 (master_doc, 'Requests.tex', u'Requests Documentation',249 u'Kenneth Reitz', 'manual'),250 (master_doc, "Requests.tex", u"Requests Documentation", u"Kenneth Reitz", "manual")251]252253# The name of an image file (relative to this directory) to place at the top of254# the title page.254#latex_logo = None255# latex_logo = None256257# For "manual" documents, if this is true, then toplevel headings are parts,258# not chapters.258#latex_use_parts = False259# latex_use_parts = False260261# If true, show page references after internal links.261#latex_show_pagerefs = False262# latex_show_pagerefs = False263264# If true, show URL addresses after external links.264#latex_show_urls = False265# latex_show_urls = False266267# Documents to append as an appendix to all manuals.267#latex_appendices = []268# latex_appendices = []269270# If false, no module index is generated.270#latex_domain_indices = True271# latex_domain_indices = True272273274# -- Options for manual page output ---------------------------------------275276# One entry per manual page. List of tuples277# (source start file, name, description, authors, manual section).277man_pages = [278 (master_doc, 'requests', u'Requests Documentation',279 [author], 1)280]278man_pages = [(master_doc, "requests", u"Requests Documentation", [author], 1)]279280# If true, show URL addresses after external links.283#man_show_urls = False281# man_show_urls = False282283284# -- Options for Texinfo output -------------------------------------------285286# Grouping the document tree into Texinfo files. List of tuples287# (source start file, target name, title, author,288# dir menu entry, description, category)289texinfo_documents = [292 (master_doc, 'Requests', u'Requests Documentation',293 author, 'Requests', 'One line description of project.',294 'Miscellaneous'),290 (291 master_doc,292 "Requests",293 u"Requests Documentation",294 author,295 "Requests",296 "One line description of project.",297 "Miscellaneous",298 )299]300301# Documents to append as an appendix to all manuals.298#texinfo_appendices = []302# texinfo_appendices = []303304# If false, no module index is generated.301#texinfo_domain_indices = True305# texinfo_domain_indices = True306307# How to display URL addresses: 'footnote', 'no', or 'inline'.304#texinfo_show_urls = 'footnote'308# texinfo_show_urls = 'footnote'309310# If true, do not generate a @detailmenu in the "Top" node's menu.307#texinfo_no_detailmenu = False311# texinfo_no_detailmenu = False312313314# -- Options for Epub output ----------------------------------------------315
3 unmodified lines
319epub_publisher = author320epub_copyright = copyright321322# The basename for the epub file. It defaults to the project name.319#epub_basename = project323# epub_basename = project324325# The HTML theme for the epub output. Since the default themes are not326# optimized for small screen space, using the same theme for HTML and epub327# output is usually not wise. This defaults to 'epub', a theme designed to save328# visual space.325#epub_theme = 'epub'329# epub_theme = 'epub'330331# The language of the text. It defaults to the language option332# or 'en' if the language is not set.329#epub_language = ''333# epub_language = ''334335# The scheme of the identifier. Typical schemes are ISBN or URL.332#epub_scheme = ''336# epub_scheme = ''337338# The unique identifier of the text. This can be a ISBN number339# or the project homepage.336#epub_identifier = ''340# epub_identifier = ''341342# A unique identification for the text.339#epub_uid = ''343# epub_uid = ''344345# A tuple containing the cover image and cover page html template filenames.342#epub_cover = ()346# epub_cover = ()347348# A sequence of (type, uri, title) tuples for the guide element of content.opf.345#epub_guide = ()349# epub_guide = ()350351# HTML files that should be inserted before the pages created by sphinx.352# The format is a list of tuples containing the path and title.349#epub_pre_files = []353# epub_pre_files = []354355# HTML files that should be inserted after the pages created by sphinx.356# The format is a list of tuples containing the path and title.353#epub_post_files = []357# epub_post_files = []358359# A list of files that should not be packed into the epub file.356epub_exclude_files = ['search.html']360epub_exclude_files = ["search.html"]361362# The depth of the table of contents in toc.ncx.359#epub_tocdepth = 3363# epub_tocdepth = 3364365# Allow duplicate toc entries.362#epub_tocdup = True366# epub_tocdup = True367368# Choose between 'default' and 'includehidden'.365#epub_tocscope = 'default'369# epub_tocscope = 'default'370371# Fix unsupported image types using the Pillow.368#epub_fix_images = False372# epub_fix_images = False373374# Scale large images.371#epub_max_image_width = 0375# epub_max_image_width = 0376377# How to display URL addresses: 'footnote', 'no', or 'inline'.374#epub_show_urls = 'inline'378# epub_show_urls = 'inline'379380# If false, no index is generated.377#epub_use_index = True381# epub_use_index = True382383intersphinx_mapping = {380 'python': ('https://docs.python.org/3/', None),381 'urllib3': ('https://urllib3.readthedocs.io/en/latest', None),384 "python": ("https://docs.python.org/3/", None),385 "urllib3": ("https://urllib3.readthedocs.io/en/latest", None),386}
modified:docs/index.rst+3 added-8 removed
15 unmodified lines
1617.. image:: https://img.shields.io/pypi/pyversions/requests.svg18 :target: https://pypi.org/project/requests/1920.. image:: https://codecov.io/github/requests/requests/coverage.svg?branch=master21 :target: https://codecov.io/github/requests/requests20.. image:: https://codecov.io/github/psf/requests/coverage.svg?branch=master21 :target: https://codecov.io/github/psf/requests22 :alt: codecov.io2324.. image:: https://img.shields.io/badge/Say%20Thanks!-🦉-1EAEDB.svg25 :target: https://saythanks.io/to/kennethreitz
1 unmodified line
2728**Requests** is the only *Non-GMO* HTTP library for Python, safe for human29consumption.3031.. note:: The use of **Python 3** is *highly* preferred over Python 2. Consider upgrading your applications and infrastructure if you find yourself *still* using Python 2 in production today. If you are using Python 3, congratulations — you are indeed a person of excellent taste.32 —*Kenneth Reitz*33 34 35If you're interested in financially supporting Kenneth Reitz open source, consider visiting `this link <https://cash.me/kennethreitz>`_. Your support helps tremendously with sustainability of motivation, as Open Source is no longer part of my day job.31.. note:: **Requests 2.x** is officially in *maintenance-mode only*. This means we only respond to CVE-level tickets. All of our limited available attention / energy is being allocated towards the development of `Requests III <https://3.python-requests.org/>`_. Technical contributions are welcome!323733-------------------3435**Behold, the power of Requests**::36
138 unmodified lines
modified:requests/__init__.py+7 added-7 removed
7 unmodified lines
8"""9Requests HTTP Library10~~~~~~~~~~~~~~~~~~~~~1112Requests is an HTTP library, written in Python, for human beings. Basic GET13usage:12Requests is an HTTP library, written in Python, for human beings.13Basic GET usage:1415 >>> import requests16 >>> r = requests.get('https://www.python.org')17 >>> r.status_code18 20019 >>> 'Python is a programming language' in r.content19 >>> b'Python is a programming language' in r.content20 True2122... or POST:23
2 unmodified lines
26 >>> print(r.text)27 {28 ...29 "form": {30 "key2": "value2",31 "key1": "value1"30 "key1": "value1",31 "key2": "value2"32 },33 ...34 }35
20 unmodified lines
5657 # Check urllib3 for compatibility.58 major, minor, patch = urllib3_version # noqa: F81159 major, minor, patch = int(major), int(minor), int(patch)60 # urllib3 >= 1.21.1, <= 1.2460 # urllib3 >= 1.21.1, <= 1.2561 assert major == 162 assert minor >= 2163 assert minor <= 2463 assert minor <= 256465 # Check chardet for compatibility.66 major, minor, patch = chardet_version.split('.')[:3]67 major, minor, patch = int(major), int(minor), int(patch)
64 unmodified lines
modified:requests/__version__.py+3 added-3 removed
3 unmodified lines
45__title__ = 'requests'6__description__ = 'Python HTTP for Humans.'7__url__ = 'http://python-requests.org'8__version__ = '2.21.0'9__build__ = 0x0221008__version__ = '2.22.0'9__build__ = 0x02220010__author__ = 'Kenneth Reitz'11__author_email__ = 'me@kennethreitz.org'12__license__ = 'Apache 2.0'13__copyright__ = 'Copyright 2018 Kenneth Reitz'13__copyright__ = 'Copyright 2019 Kenneth Reitz'14__cake__ = u'\u2728 \U0001f370 \u2728'
modified:requests/adapters.py+13 added-58 removed
433 unmodified lines
434 else:435 timeout = TimeoutSauce(connect=timeout, read=timeout)436437 try:438 if not chunked:439 resp = conn.urlopen(440 method=request.method,441 url=url,442 body=request.body,443 headers=request.headers,444 redirect=False,445 assert_same_host=False,446 preload_content=False,447 decode_content=False,448 retries=self.max_retries,449 timeout=timeout450 )438 resp = conn.urlopen(439 method=request.method,440 url=url,441 body=request.body,442 headers=request.headers,443 redirect=False,444 assert_same_host=False,445 preload_content=False,446 decode_content=False,447 retries=self.max_retries,448 timeout=timeout,449 chunked=chunked450 )451452 # Send the request.453 else:454 if hasattr(conn, 'proxy_pool'):455 conn = conn.proxy_pool456457 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)458459 try:460 low_conn.putrequest(request.method,461 url,462 skip_accept_encoding=True)463464 for header, value in request.headers.items():465 low_conn.putheader(header, value)466467 low_conn.endheaders()468469 for i in request.body:470 low_conn.send(hex(len(i))[2:].encode('utf-8'))471 low_conn.send(b'\r\n')472 low_conn.send(i)473 low_conn.send(b'\r\n')474 low_conn.send(b'0\r\n\r\n')475476 # Receive the response from the server477 try:478 # For Python 2.7, use buffering of HTTP responses479 r = low_conn.getresponse(buffering=True)480 except TypeError:481 # For compatibility with Python 3.3+482 r = low_conn.getresponse()483484 resp = HTTPResponse.from_httplib(485 r,486 pool=conn,487 connection=low_conn,488 preload_content=False,489 decode_content=False490 )491 except:492 # If we hit any problems here, clean up the connection.493 # Then, reraise so that we can handle the actual exception.494 low_conn.close()495 raise496452 except (ProtocolError, socket.error) as err:453 raise ConnectionError(err, request=request)454455 except MaxRetryError as e:
33 unmodified lines
modified:requests/api.py+5 added-2 removed
14 unmodified lines
1516def request(method, url, **kwargs):17 """Constructs and sends a :class:`Request <Request>`.1819 :param method: method for the new :class:`Request` object.19 :param method: method for the new :class:`Request` object: ``GET``, ``OPTIONS``, ``HEAD``, ``POST``, ``PUT``, ``PATCH``, or ``DELETE``.20 :param url: URL for the new :class:`Request` object.21 :param params: (optional) Dictionary, list of tuples or bytes to send22 in the query string for the :class:`Request`.23 :param data: (optional) Dictionary, list of tuples, bytes, or file-like
25 unmodified lines
49 Usage::5051 >>> import requests52 >>> req = requests.request('GET', 'https://httpbin.org/get')53 >>> req54 <Response [200]>55 """5657 # By using the 'with' statement we are sure the session is closed, thus we
34 unmodified lines
92def head(url, **kwargs):93 r"""Sends a HEAD request.9495 :param url: URL for the new :class:`Request` object.95 :param \*\*kwargs: Optional arguments that ``request`` takes.96 :param \*\*kwargs: Optional arguments that ``request`` takes. If97 `allow_redirects` is not provided, it will be set to `False` (as98 opposed to the default :meth:`request` behavior).99 :return: :class:`Response <Response>` object100 :rtype: requests.Response101 """102
59 unmodified lines
modified:requests/auth.py+2 added-2 removed
48 unmodified lines
49 warnings.warn(50 "Non-string passwords will no longer be supported in Requests "51 "3.0.0. Please convert the object you've passed in ({!r}) to "52 "a string or bytes object in the near future to avoid "53 "problems.".format(password),53 "problems.".format(type(password)),54 category=DeprecationWarning,55 )56 password = str(password)57 # -- End Removal --
180 unmodified lines
238 :rtype: requests.Response239 """240241 # If response is not 4xx, do not auth242 # See https://github.com/requests/requests/issues/3772242 # See https://github.com/psf/requests/issues/3772243 if not 400 <= r.status_code < 500:244 self._thread_local.num_401_calls = 1245 return r246
59 unmodified lines
modified:requests/compat.py+2 added
41 unmodified lines
42 from urllib2 import parse_http_list43 import cookielib44 from Cookie import Morsel45 from StringIO import StringIO46 # Keep OrderedDict for backwards compatibility.47 from collections import Callable, Mapping, MutableMapping, OrderedDict484950 builtin_str = str
8 unmodified lines
59 from urllib.request import parse_http_list, getproxies, proxy_bypass, proxy_bypass_environment, getproxies_environment60 from http import cookiejar as cookielib61 from http.cookies import Morsel62 from io import StringIO63 # Keep OrderedDict for backwards compatibility.64 from collections import OrderedDict65 from collections.abc import Callable, Mapping, MutableMapping6667 builtin_str = str
5 unmodified lines
modified:requests/models.py+23 added-5 removed
10 unmodified lines
11import sys1213# Import encoding now, to avoid implicit import later.14# Implicit import within threads may cause LookupError when standard library is in a ZIP,15# such as in Embedded Python. See https://github.com/requests/requests/issues/3578.15# such as in Embedded Python. See https://github.com/psf/requests/issues/3578.16import encodings.idna1718from urllib3.fields import RequestField19from urllib3.filepost import encode_multipart_formdata
259 unmodified lines
279280 >>> import requests281 >>> req = requests.Request('GET', 'https://httpbin.org/get')282 >>> r = req.prepare()283 >>> r284 <PreparedRequest [GET]>285286 >>> s = requests.Session()287 >>> s.send(r)
70 unmodified lines
358 #: Accept objects that have string representations.359 #: We're unable to blindly call unicode/str functions360 #: as this will include the bytestring indicator (b'')361 #: on python 3.x.361 #: https://github.com/requests/requests/pull/2238362 #: https://github.com/psf/requests/pull/2238363 if isinstance(url, bytes):364 url = url.decode('utf8')365 else:366 url = unicode(url) if is_py2 else str(url)
273 unmodified lines
640 #: The :class:`PreparedRequest <PreparedRequest>` object to which this641 #: is a response.642 self.request = None643644 #: If there was an error in the processing of content,645 #: then save the error that would return the same error when you re-appeal.646 self._error = None647648 def __enter__(self):649 return self650651 def __exit__(self, *args):
101 unmodified lines
753 if hasattr(self.raw, 'stream'):754 try:755 for chunk in self.raw.stream(chunk_size, decode_content=True):756 yield chunk757758 except ProtocolError as e:753 raise ChunkedEncodingError(e)759 self._error = ChunkedEncodingError(e)760761 except DecodeError as e:755 raise ContentDecodingError(e)762 self._error = ContentDecodingError(e)763764 except ReadTimeoutError as e:757 raise ConnectionError(e)765 self._error = ConnectionError(e)766767 finally:768 # if we had an error - throw the saved error769 if self._error:770 raise self._error771772 else:773 # Standard file-like object.774 while True:775 chunk = self.raw.read(chunk_size)
64 unmodified lines
840 self._content = None841 else:842 self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''843844 # if we had an error - throw the saved error845 if self._error is not None:846 raise self._error847848 self._content_consumed = True849 # don't need to release the connection; that's been handled by urllib3850 # since we exhausted the data.851 return self._content
123 unmodified lines
modified:requests/sessions.py+17 added-13 removed
9 unmodified lines
10import os11import sys12import time13from datetime import timedelta14from collections import OrderedDict1516from .auth import _basic_auth_str16from .compat import cookielib, is_py3, OrderedDict, urljoin, urlparse, Mapping17from .compat import cookielib, is_py3, urljoin, urlparse, Mapping18from .cookies import (19 cookiejar_from_dict, extract_cookies_to_jar, RequestsCookieJar, merge_cookies)20from .models import Request, PreparedRequest, DEFAULT_REDIRECT_LIMIT21from .hooks import default_hooks, dispatch_hook
72 unmodified lines
949596class SessionRedirectMixin(object):9798 def __init__(self):99 #: A list of domains that will be excluded from auth stripping100 self.trusted_domains = []101102 def get_redirect_target(self, resp):103 """Receives a Response. Returns a redirect URI or ``None``"""104 # Due to the nature of how requests processes redirects this method will105 # be called at least once upon the original response and at least twice
17 unmodified lines
123 def should_strip_auth(self, old_url, new_url):124 """Decide whether Authorization header should be removed when redirecting"""125 old_parsed = urlparse(old_url)126 new_parsed = urlparse(new_url)122 if old_parsed.hostname != new_parsed.hostname:127 if (old_parsed.hostname != new_parsed.hostname128 and new_parsed.hostname not in self.trusted_domains):129 return True130 # Special case: allow http -> https redirect when using the standard131 # ports. This isn't specified by RFC 7235, but is kept to avoid132 # breaking backwards compatibility with older versions of requests
34 unmodified lines
167 except (ChunkedEncodingError, ContentDecodingError, RuntimeError):168 resp.raw.read(decode_content=False)169170 if len(resp.history) >= self.max_redirects:165 raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)171 raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp)172173 # Release the connection back into the pool.174 resp.close()175176 # Handle redirection without scheme (see: RFC 1808 Section 4)177 if url.startswith('//'):178 parsed_rurl = urlparse(resp.url)173 url = '%s:%s' % (to_native_string(parsed_rurl.scheme), url)179 url = ':'.join([to_native_string(parsed_rurl.scheme), url])180181 # Normalize url case and attach previous fragment if needed (RFC 7231 7.1.2)182 parsed = urlparse(url)183 if parsed.fragment == '' and previous_fragment:
13 unmodified lines
197 prepared_request.url = to_native_string(url)198199 self.rebuild_method(prepared_request, resp)200195 # https://github.com/requests/requests/issues/1084201 # https://github.com/psf/requests/issues/1084202 if resp.status_code not in (codes.temporary_redirect, codes.permanent_redirect):197 # https://github.com/requests/requests/issues/3490203 # https://github.com/psf/requests/issues/3490204 purged_headers = ('Content-Length', 'Content-Type', 'Transfer-Encoding')205 for header in purged_headers:206 prepared_request.headers.pop(header, None)207 prepared_request.body = None208209 headers = prepared_request.headers204 try:205 del headers['Cookie']206 except KeyError:207 pass210 headers.pop('Cookie', None)211212 # Extract any cookies sent on the response to the cookiejar213 # in the new request. Because we've mutated our copied prepared214 # request, use the old one that we haven't yet touched.
58 unmodified lines
273 new_auth = get_netrc_auth(url) if self.trust_env else None274 if new_auth is not None:275 prepared_request.prepare_auth(new_auth)276274 return277278 def rebuild_proxies(self, prepared_request, proxies):279 """This method re-evaluates the proxy configuration by considering the280 environment variables. If we are redirected to a URL covered by
72 unmodified lines
353354 Or as a context manager::355356 >>> with requests.Session() as s:355 >>> s.get('https://httpbin.org/get')357 ... s.get('https://httpbin.org/get')358 <Response [200]>359 """360361 __attrs__ = [
56 unmodified lines
418 self.adapters = OrderedDict()419 self.mount('https://', HTTPAdapter())420 self.mount('http://', HTTPAdapter())421422 super().__init__()423424 def __enter__(self):425 return self426427 def __exit__(self, *args):
303 unmodified lines
731 if url.lower().startswith(prefix.lower()):732 return adapter733734 # Nothing matches :-/731 raise InvalidSchema("No connection adapters were found for '%s'" % url)735 raise InvalidSchema("No connection adapters were found for {!r}".format(url))736737 def close(self):738 """Closes all adapters and as such the session"""739 for v in self.adapters.values():
35 unmodified lines
modified:requests/status_codes.py+1 added-1 removed
2 unmodified lines
3r"""4The ``codes`` object defines a mapping from common names for HTTP statuses5to their numerical codes, accessible either as attributes or as dictionary6items.77>>> import requests8>>> requests.codes['temporary_redirect']930710>>> requests.codes.teapot11418
109 unmodified lines
modified:requests/structures.py+3 added-1 removed
5 unmodified lines
67Data structures that power Requests.8"""910from .compat import OrderedDict, Mapping, MutableMapping10from collections import OrderedDict1112from .compat import Mapping, MutableMapping131415class CaseInsensitiveDict(MutableMapping):16 """A case-insensitive ``dict``-like object.1718 Implements all methods and operations of
87 unmodified lines
modified:requests/utils.py+8 added-3 removed
17 unmodified lines
18import sys19import tempfile20import warnings21import zipfile22from collections import OrderedDict2324from .__version__ import __version__25from . import certs26# to_native_string is unused here, but imported here for backwards compatibility27from ._internal_utils import to_native_string28from .compat import parse_http_list as _parse_list_header29from .compat import (29 quote, urlparse, bytes, str, OrderedDict, unquote, getproxies,30 quote, urlparse, bytes, str, unquote, getproxies,31 proxy_bypass, urlunparse, basestring, integer_types, is_py3,32 proxy_bypass_environment, getproxies_environment, Mapping)33from .cookies import cookiejar_from_dict34from .structures import CaseInsensitiveDict
144 unmodified lines
179 loc = os.path.expanduser('~/{}'.format(f))180 except KeyError:181 # os.path.expanduser can fail when $HOME is undefined and182 # getpwuid fails. See https://bugs.python.org/issue20164 &182 # https://github.com/requests/requests/issues/1846183 # https://github.com/psf/requests/issues/1846184 return185186 if os.path.exists(loc):187 netrc_path = loc
78 unmodified lines
266267 >>> from_key_val_list([('key', 'val')])268 OrderedDict([('key', 'val')])269 >>> from_key_val_list('string')270 Traceback (most recent call last):271 ...272 ValueError: cannot encode objects that are not 2-tuples273 >>> from_key_val_list({'key': 'val'})274 OrderedDict([('key', 'val')])275
18 unmodified lines
294 [('key', 'val')]295 >>> to_key_val_list({'key': 'val'})296 [('key', 'val')]297 >>> to_key_val_list('string')298 Traceback (most recent call last):299 ...295 ValueError: cannot encode objects that are not 2-tuples.300 ValueError: cannot encode objects that are not 2-tuples301302 :rtype: list303 """304 if value is None:
678 unmodified lines
modified:tests/test_lowlevel.py+43 added-2 removed
1 unmodified line
23import pytest4import threading5import requests6from requests.exceptions import ChunkedEncodingError78from tests.testserver.server import Server, consume_socket_content910from .utils import override_environ
17 unmodified lines
28def test_digestauth_401_count_reset_on_redirect():29 """Ensure we correctly reset num_401_calls after a successful digest auth,30 followed by a 302 redirect to another digest auth prompt.3131 See https://github.com/requests/requests/issues/1979.32 See https://github.com/psf/requests/issues/1979.33 """34 text_401 = (b'HTTP/1.1 401 UNAUTHORIZED\r\n'35 b'Content-Length: 0\r\n'36 b'WWW-Authenticate: Digest nonce="6bf5d6e4da1ce66918800195d6b9130d"'
101 unmodified lines
138139def test_digestauth_only_on_4xx():140 """Ensure we only send digestauth on 4xx challenges.141141 See https://github.com/requests/requests/issues/3772.142 See https://github.com/psf/requests/issues/3772.143 """144 text_200_chal = (b'HTTP/1.1 200 OK\r\n'145 b'Content-Length: 0\r\n'146 b'WWW-Authenticate: Digest nonce="6bf5d6e4da1ce66918800195d6b9130d"'
160 unmodified lines
307 # Verify previous fragment is used and not the original.308 assert r.url == 'http://{}:{}/final-url/#relevant-section'.format(host, port)309310 close_server.set()311312313def test_response_content_retains_error():314 """Verify that accessing response.content retains an error.315316 See https://github.com/kennethreitz/requests/issues/4965317 """318319 data = "Some random stuff to read from remove server.\n"320321 def response_handler(sock):322 req = consume_socket_content(sock, timeout=0.5)323324 # Send invalid chunked data (length mismatch)325 sock.send(326 b'HTTP/1.1 200 OK\r\n'327 b'Transfer-Encoding: chunked\r\n'328 b'\r\n2\r\n42\r\n8\r\n123\r\n' # 5 bytes missing329 )330331 close_server = threading.Event()332 server = Server(response_handler, wait_to_close_event=close_server)333334 with server as (host, port):335 url = 'http://{}:{}/path'.format(host, port)336 r = requests.post(url, stream=True)337 with pytest.raises(ChunkedEncodingError):338 r.content339340 # Access the bad response data again, I would expect the same341 # error again.342343 try:344 content = r.content345 except ChunkedEncodingError:346 pass # fine, same exception347 else:348 assert False, "error response has content: {0!r}".format(content)349 close_server.set()350
modified:tests/test_requests.py+6 added-6 removed
16 unmodified lines
17from requests.adapters import HTTPAdapter18from requests.auth import HTTPDigestAuth, _basic_auth_str19from requests.compat import (20 Morsel, cookielib, getproxies, str, urlparse,21 builtin_str, OrderedDict)21 builtin_str)22from requests.cookies import (23 cookiejar_from_dict, morsel_to_cookie)24from requests.exceptions import (25 ConnectionError, ConnectTimeout, InvalidSchema, InvalidURL,
103 unmodified lines
129 request = requests.Request('GET', url, params={"a": "b"}).prepare()130 assert request.url == expected131132 def test_params_original_order_is_preserved_by_default(self):133 param_ordered_dict = OrderedDict((('z', 1), ('a', 1), ('k', 1), ('d', 1)))133 param_ordered_dict = collections.OrderedDict((('z', 1), ('a', 1), ('k', 1), ('d', 1)))134 session = requests.Session()135 request = requests.Request('GET', 'http://example.com/', params=param_ordered_dict)136 prep = session.prepare_request(request)137 assert prep.url == 'http://example.com/?z=1&a=1&k=1&d=1'
307 unmodified lines
445446 def test_headers_preserve_order(self, httpbin):447 """Preserve order when headers provided as OrderedDict."""448 ses = requests.Session()449 ses.headers = OrderedDict()449 ses.headers = collections.OrderedDict()450 ses.headers['Accept-Encoding'] = 'identity'451 ses.headers['First'] = '1'452 ses.headers['Second'] = '2'453 headers = OrderedDict([('Third', '3'), ('Fourth', '4')])453 headers = collections.OrderedDict([('Third', '3'), ('Fourth', '4')])454 headers['Fifth'] = '5'455 headers['Second'] = '222'456 req = requests.Request('GET', httpbin('get'), headers=headers)457 prep = ses.prepare_request(req)
7 unmodified lines
465466 @pytest.mark.parametrize('key', ('User-agent', 'user-agent'))467 def test_user_agent_transfers(self, httpbin, key):468469 heads = {key: 'Mozilla/5.0 (github.com/requests/requests)'}469 heads = {key: 'Mozilla/5.0 (github.com/psf/requests)'}470471 r = requests.get(httpbin('user-agent'), headers=heads)472 assert heads[key] in r.text473
1737 unmodified lines
2211 except ConnectTimeout:2212 pass22132214 def test_encoded_methods(self, httpbin):2215 """See: https://github.com/requests/requests/issues/2316"""2215 """See: https://github.com/psf/requests/issues/2316"""2216 r = requests.request(b'GET', httpbin('get'))2217 assert r.ok22182219
308 unmodified lines
modified:tests/test_utils.py+3 added-2 removed
31 unmodified lines
32 @pytest.mark.parametrize(33 'stream, value', (34 (StringIO.StringIO, 'Test'),35 (BytesIO, b'Test'),36 pytest.mark.skipif('cStringIO is None')((cStringIO, 'Test')),36 pytest.param(cStringIO, 'Test',37 marks=pytest.mark.skipif('cStringIO is None')),38 ))39 def test_io_streams(self, stream, value):40 """Ensures that we properly deal with different kinds of IO streams."""41 assert super_len(stream()) == 0
356 unmodified lines
398 'http://example.com/fiz?buz=%25ppicture',399 ),400 ))401def test_requote_uri_with_unquoted_percents(uri, expected):401 """See: https://github.com/requests/requests/issues/2356"""402 """See: https://github.com/psf/requests/issues/2356"""403 assert requote_uri(uri) == expected404405406@pytest.mark.parametrize(
378 unmodified lines
modified:.gitignore+1 added
17 unmodified lines
18.eggs/19.tox/20.pytest_cache/21.vscode/22.eggs/2324.workon2526t.py
5 unmodified lines
modified:.travis.yml+1 added-19 removed
1 unmodified line
2# command to install dependencies3install: "make"4# command to run tests5script:6 - |7 if [[ "$TRAVIS_PYTHON_VERSION" != "2.6" ]] ; then make test-readme; fi6 - make test-readme7 - make ci8cache: pip9jobs:10 include:11 - stage: test13 script:14 - make test-readme15 - make ci12 python: '2.7'13 - stage: test18 script:19 - make test-readme20 - make ci21 python: '3.4'22 - stage: test23 script:24 - make test-readme25 - make ci14 python: '3.5'15 - stage: test28 script:29 - make test-readme30 - make ci16 python: '3.6'17 - stage: test33 script:34 - make test-readme35 - make ci18 python: '3.7'19 dist: xenial 20 - stage: coverage21 python: '3.6'
1 unmodified line
modified:AUTHORS.rst+4 added
187 unmodified lines
188- Demetrios Bairaktaris (`@DemetriosBairaktaris <https://github.com/demetriosbairaktaris>`_)189- Darren Dormer (`@ddormer <https://github.com/ddormer>`_)190- Rajiv Mayani (`@mayani <https://github.com/mayani>`_)191- Antti Kaihola (`@akaihola <https://github.com/akaihola>`_)192- "Dull Bananas" <dull.bananas0@gmail.com> (`@dullbananas <https://github.com/dullbananas>`_)193- Alessio Izzo (`@aless10 <https://github.com/aless10>`_)194- Belavin Denis (`@luckydenis <https://github.com/luckydenis>`_)195- Dull Bananas <dull.bananas0@gmail.com> (`@dullbananas <https://github.com/dullbananas>`_)
modified:HISTORY.md+22 added-10 removed
6 unmodified lines
7**Bugfixes**89- \[Short description of non-trivial change.\]10112.22.0 (2019-05-15)12-------------------1314**Dependencies**1516- Requests now supports urllib3 v1.25.2.17 (note: 1.25.0 and 1.25.1 are incompatible)1819**Deprecations**2021- Requests has officially stopped support for Python 3.4.22232.21.0 (2018-12-10)24-------------------2526**Dependencies**
521 unmodified lines
548 status code registry.549550**Bugfixes**551540- For file-like objects that are not seeked to the very beginning, we552- For file-like objects that are not sought to the very beginning, we553 now send the content length for the number of bytes we will actually554 read, rather than the total size of the file, allowing partial file555 uploads.556- When uploading file-like objects, if they are empty or have no
235 unmodified lines
792793- Unicode URL improvements for Python 2.794- Re-order JSON param for backwards compat.795- Automatically defrag authentication schemes from host/pass URIs.784 ([\#2249](https://github.com/requests/requests/issues/2249))796 ([\#2249](https://github.com/psf/requests/issues/2249))7977982.4.2 (2014-10-05)799------------------800801**Improvements**802803- FINALLY! Add json parameter for uploads!792 ([\#2258](https://github.com/requests/requests/pull/2258))804 ([\#2258](https://github.com/psf/requests/pull/2258))805- Support for bytestring URLs on Python 3.x794 ([\#2238](https://github.com/requests/requests/pull/2238))806 ([\#2238](https://github.com/psf/requests/pull/2238))807808**Bugfixes**809810- Avoid getting stuck in a loop799 ([\#2244](https://github.com/requests/requests/pull/2244))811 ([\#2244](https://github.com/psf/requests/pull/2244))812- Multiple calls to iter\* fail with unhelpful error.801 ([\#2240](https://github.com/requests/requests/issues/2240),802 [\#2241](https://github.com/requests/requests/issues/2241))813 ([\#2240](https://github.com/psf/requests/issues/2240),814 [\#2241](https://github.com/psf/requests/issues/2241))815816**Documentation**817818- Correct redirection introduction807 ([\#2245](https://github.com/requests/requests/pull/2245/))819 ([\#2245](https://github.com/psf/requests/pull/2245/))820- Added example of how to send multiple files in one request.809 ([\#2227](https://github.com/requests/requests/pull/2227/))821 ([\#2227](https://github.com/psf/requests/pull/2227/))822- Clarify how to pass a custom set of CAs811 ([\#2248](https://github.com/requests/requests/pull/2248/))823 ([\#2248](https://github.com/psf/requests/pull/2248/))8248252.4.1 (2014-09-09)826------------------827
823 unmodified lines
modified:Pipfile+3 added-3 removed
2 unmodified lines
3verify_ssl = true4name = "pypi"56[dev-packages]7pytest = ">=2.8.0,<4.1"7pytest = ">=2.8.0,<=3.10.1"8codecov = "*"9pytest-httpbin = ">=0.0.7"9pytest-httpbin = ">=0.0.7,<1.0"10pytest-mock = "*"11pytest-cov = "*"12pytest-xdist = "*"12pytest-xdist = "<=1.25"13alabaster = "*"14readme-renderer = "*"15sphinx = "<=1.5.5"16pysocks = "*"
8 unmodified lines
modified:Pipfile.lock+355 added-258 removed
1{2 "_meta": {3 "hash": {4 "sha256": "0735b243455d8e924fbd05188ed435bfd3917f4acdade9b9e8f14741f3fc47e9"4 "sha256": "33206a3ef69c36187f33224ccf8e694a323ff4f7b2cc92c35fe8e71898b525a0"5 },6 "pipfile-spec": 6,7 "requires": {},8 "sources": [
6 unmodified lines
15 },16 "default": {17 "certifi": {18 "hashes": [19 "sha256:13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7",20 "sha256:9fa520c1bacfb634fa7af20a76bcbd3d5fb390481724c597da32c719a7dca4b0"19 "sha256:59b7658e26ca9c7339e00f8f4636cdfe59d34fa37b9b04f6f9e9926b3cece1a5",20 "sha256:b26104d6835d1f5e49452a26eb2ff87fe7090b89dfcaee5ea2212697e1e1d7ae"21 ],22 "version": "==2018.4.16"22 "version": "==2019.3.9"23 },24 "chardet": {25 "hashes": [26 "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
9 unmodified lines
36 "path": "."37 },38 "idna": {39 "hashes": [40 "sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f",41 "sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4"40 "sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407",41 "sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"42 ],43 "version": "==2.6"43 "version": "==2.8"44 },45 "pysocks": {46 "hashes": [47 "sha256:3fe52c55890a248676fd69dc9e3c4e811718b777834bcaab7a8125cf9deac672"47 "sha256:15d38914b60dbcb231d276f64882a20435c049450160e953ca7d313d1405f16f",48 "sha256:32238918ac0f19e9fd870a8692ac9bd14f5e8752b3c62624cda5851424642210",49 "sha256:d9031ea45fdfacbe59a99273e9f0448ddb33c1580fe3831c1b09557c5718977c"50 ],49 "version": "==1.6.8"51 "version": "==1.7.0"52 },53 "requests": {54 "editable": true,55 "extras": [56 "socks"57 ],58 "path": ".",59 "version": "==2.22.0"60 },61 "urllib3": {62 "hashes": [53 "sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b",54 "sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"63 "sha256:a53063d8b9210a7bdec15e7b272776b9d42b2fd6816401a0d43006ad2f9902db",64 "sha256:d363e3607d8de0c220d31950a8f38b18d5ba7c0830facd71a1c6b1036b7ce06c"65 ],56 "version": "==1.22"66 "version": "==1.25.2"67 },68 "win-inet-pton": {69 "hashes": [70 "sha256:dd03d942c0d3e2b1cf8bab511844546dfa5f74cb61b241699fa379ad707dea4f",71 "sha256:eaf0193cbe7152ac313598a0da7313fb479f769343c0c16c5308f64887dc885b"72 ],73 "markers": "sys_platform == 'win32' and python_version == '2.7'",74 "version": "==1.1.0"75 }76 },77 "develop": {78 "alabaster": {79 "hashes": [62 "sha256:2eef172f44e8d301d25aff8068fddd65f767a3f04b5f15b0f4922f113aa1c732",63 "sha256:37cdcb9e9954ed60912ebc1ca12a9d12178c26637abdf124e3cde2341c257fe0"80 "sha256:446438bdcca0e05bd45ea2de1668c1d9b032e1a9154c2c259092d77031ddd359",81 "sha256:a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02"82 ],83 "index": "pypi",66 "version": "==0.7.10"84 "version": "==0.7.12"85 },86 "apipkg": {87 "hashes": [70 "sha256:2e38399dbe842891fe85392601aab8f40a8f4cc5a9053c326de35a1cc0297ac6",71 "sha256:65d2aa68b28e7d31233bb2ba8eb31cda40e4671f8ac2d6b241e358c9652a74b9"88 "sha256:37228cda29411948b422fae072f57e31d3396d2ee1c9783775980ee9c9990af6",89 "sha256:58587dd4dc3daefad0487f6d9ae32b4542b185e1c36db6993290e7c41ca2b47c"90 ],73 "version": "==1.4"91 "version": "==1.5"92 },93 "atomicwrites": {94 "hashes": [95 "sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4",96 "sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6"97 ],98 "version": "==1.3.0"99 },100 "attrs": {101 "hashes": [77 "sha256:4b90b09eeeb9b88c35bc642cbac057e45a5fd85367b985bd2809c62b7b939265",78 "sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b"102 "sha256:69c0dbf2ed392de1cb5ec704444b08a5ef81680a61cb899dc08127123af36a79",103 "sha256:f0b870f674851ecbfbbbd364d6b5cbdff9dcedbc7f3f5e18a6891057f21fe399"104 ],80 "version": "==18.1.0"105 "version": "==19.1.0"106 },107 "babel": {108 "hashes": [84 "sha256:8ce4cb6fdd4393edd323227cba3a077bceb2a6ce5201c902c65e730046f41f14",85 "sha256:ad209a68d7162c4cff4b29cdebe3dec4cef75492df501b0049a9433c96ce6f80"109 "sha256:6778d85147d5d85345c14a26aada5e478ab04e39b078b0745ee6870c2b5cf669",110 "sha256:8cba50f48c529ca3fa18cf81fa9403be176d374ac4d60738b839122dfaaa3d23"111 ],87 "version": "==2.5.3"112 "version": "==2.6.0"113 },114 "bleach": {115 "hashes": [91 "sha256:b8fa79e91f96c2c2cd9fd1f9eda906efb1b88b483048978ba62fef680e962b34",92 "sha256:eb7386f632349d10d9ce9d4a838b134d4731571851149f9cc2c05a9a837a9a44"116 "sha256:213336e49e102af26d9cde77dd2d0397afabc5a6bf2fed985dc35b5d1e285a16",117 "sha256:3fdf7f77adcf649c9911387df51254b813185e32b2c6619f690b593a617e19fa"118 ],94 "version": "==2.1.3"119 "version": "==3.1.0"120 },121 "blinker": {122 "hashes": [123 "sha256:471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6"
35 unmodified lines
159 "version": "==0.7.0"160 },161 "certifi": {162 "hashes": [138 "sha256:13e698f54293db9f89122b0581843a782ad0934a4fe0172d2a980ba77fc61bb7",139 "sha256:9fa520c1bacfb634fa7af20a76bcbd3d5fb390481724c597da32c719a7dca4b0"163 "sha256:59b7658e26ca9c7339e00f8f4636cdfe59d34fa37b9b04f6f9e9926b3cece1a5",164 "sha256:b26104d6835d1f5e49452a26eb2ff87fe7090b89dfcaee5ea2212697e1e1d7ae"165 ],141 "version": "==2018.4.16"166 "version": "==2019.3.9"167 },168 "cffi": {169 "hashes": [145 "sha256:151b7eefd035c56b2b2e1eb9963c90c6302dc15fbd8c1c0a83a163ff2c7d7743",146 "sha256:1553d1e99f035ace1c0544050622b7bc963374a00c467edafac50ad7bd276aef",147 "sha256:1b0493c091a1898f1136e3f4f991a784437fac3673780ff9de3bcf46c80b6b50",148 "sha256:2ba8a45822b7aee805ab49abfe7eec16b90587f7f26df20c71dd89e45a97076f",149 "sha256:3c85641778460581c42924384f5e68076d724ceac0f267d66c757f7535069c93",150 "sha256:3eb6434197633b7748cea30bf0ba9f66727cdce45117a712b29a443943733257",151 "sha256:4c91af6e967c2015729d3e69c2e51d92f9898c330d6a851bf8f121236f3defd3",152 "sha256:770f3782b31f50b68627e22f91cb182c48c47c02eb405fd689472aa7b7aa16dc",153 "sha256:79f9b6f7c46ae1f8ded75f68cf8ad50e5729ed4d590c74840471fc2823457d04",154 "sha256:7a33145e04d44ce95bcd71e522b478d282ad0eafaf34fe1ec5bbd73e662f22b6",155 "sha256:857959354ae3a6fa3da6651b966d13b0a8bed6bbc87a0de7b38a549db1d2a359",156 "sha256:87f37fe5130574ff76c17cab61e7d2538a16f843bb7bca8ebbc4b12de3078596",157 "sha256:95d5251e4b5ca00061f9d9f3d6fe537247e145a8524ae9fd30a2f8fbce993b5b",158 "sha256:9d1d3e63a4afdc29bd76ce6aa9d58c771cd1599fbba8cf5057e7860b203710dd",159 "sha256:a36c5c154f9d42ec176e6e620cb0dd275744aa1d804786a71ac37dc3661a5e95",160 "sha256:ae5e35a2c189d397b91034642cb0eab0e346f776ec2eb44a49a459e6615d6e2e",161 "sha256:b0f7d4a3df8f06cf49f9f121bead236e328074de6449866515cea4907bbc63d6",162 "sha256:b75110fb114fa366b29a027d0c9be3709579602ae111ff61674d28c93606acca",163 "sha256:ba5e697569f84b13640c9e193170e89c13c6244c24400fc57e88724ef610cd31",164 "sha256:be2a9b390f77fd7676d80bc3cdc4f8edb940d8c198ed2d8c0be1319018c778e1",165 "sha256:d5d8555d9bfc3f02385c1c37e9f998e2011f0db4f90e250e5bc0c0a85a813085",166 "sha256:e55e22ac0a30023426564b1059b035973ec82186ddddbac867078435801c7801",167 "sha256:e90f17980e6ab0f3c2f3730e56d1fe9bcba1891eeea58966e89d352492cc74f4",168 "sha256:ecbb7b01409e9b782df5ded849c178a0aa7c906cf8c5a67368047daab282b184",169 "sha256:ed01918d545a38998bfa5902c7c00e0fee90e957ce036a4000a88e3fe2264917",170 "sha256:edabd457cd23a02965166026fd9bfd196f4324fe6032e866d0f3bd0301cd486f",171 "sha256:fdf1c1dc5bafc32bc5d08b054f94d659422b05aba244d6be4ddc1c72d9aa70fb"170 "sha256:041c81822e9f84b1d9c401182e174996f0bae9991f33725d059b771744290774",171 "sha256:046ef9a22f5d3eed06334d01b1e836977eeef500d9b78e9ef693f9380ad0b83d",172 "sha256:066bc4c7895c91812eff46f4b1c285220947d4aa46fa0a2651ff85f2afae9c90",173 "sha256:066c7ff148ae33040c01058662d6752fd73fbc8e64787229ea8498c7d7f4041b",174 "sha256:2444d0c61f03dcd26dbf7600cf64354376ee579acad77aef459e34efcb438c63",175 "sha256:300832850b8f7967e278870c5d51e3819b9aad8f0a2c8dbe39ab11f119237f45",176 "sha256:34c77afe85b6b9e967bd8154e3855e847b70ca42043db6ad17f26899a3df1b25",177 "sha256:46de5fa00f7ac09f020729148ff632819649b3e05a007d286242c4882f7b1dc3",178 "sha256:4aa8ee7ba27c472d429b980c51e714a24f47ca296d53f4d7868075b175866f4b",179 "sha256:4d0004eb4351e35ed950c14c11e734182591465a33e960a4ab5e8d4f04d72647",180 "sha256:4e3d3f31a1e202b0f5a35ba3bc4eb41e2fc2b11c1eff38b362de710bcffb5016",181 "sha256:50bec6d35e6b1aaeb17f7c4e2b9374ebf95a8975d57863546fa83e8d31bdb8c4",182 "sha256:55cad9a6df1e2a1d62063f79d0881a414a906a6962bc160ac968cc03ed3efcfb",183 "sha256:5662ad4e4e84f1eaa8efce5da695c5d2e229c563f9d5ce5b0113f71321bcf753",184 "sha256:59b4dc008f98fc6ee2bb4fd7fc786a8d70000d058c2bbe2698275bc53a8d3fa7",185 "sha256:73e1ffefe05e4ccd7bcea61af76f36077b914f92b76f95ccf00b0c1b9186f3f9",186 "sha256:a1f0fd46eba2d71ce1589f7e50a9e2ffaeb739fb2c11e8192aa2b45d5f6cc41f",187 "sha256:a2e85dc204556657661051ff4bab75a84e968669765c8a2cd425918699c3d0e8",188 "sha256:a5457d47dfff24882a21492e5815f891c0ca35fefae8aa742c6c263dac16ef1f",189 "sha256:a8dccd61d52a8dae4a825cdbb7735da530179fea472903eb871a5513b5abbfdc",190 "sha256:ae61af521ed676cf16ae94f30fe202781a38d7178b6b4ab622e4eec8cefaff42",191 "sha256:b012a5edb48288f77a63dba0840c92d0504aa215612da4541b7b42d849bc83a3",192 "sha256:d2c5cfa536227f57f97c92ac30c8109688ace8fa4ac086d19d0af47d134e2909",193 "sha256:d42b5796e20aacc9d15e66befb7a345454eef794fdb0737d1af593447c6c8f45",194 "sha256:dee54f5d30d775f525894d67b1495625dd9322945e7fee00731952e0368ff42d",195 "sha256:e070535507bd6aa07124258171be2ee8dfc19119c28ca94c9dfb7efd23564512",196 "sha256:e1ff2748c84d97b065cc95429814cdba39bcbd77c9c85c89344b317dc0d9cbff",197 "sha256:ed851c75d1e0e043cbf5ca9a8e1b13c4c90f3fbd863dacb01c0808e2b5204201"198 ],173 "version": "==1.11.5"199 "version": "==1.12.3"200 },201 "chardet": {202 "hashes": [203 "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
2 unmodified lines
206 "version": "==3.0.4"207 },208 "click": {209 "hashes": [184 "sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d",185 "sha256:f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"210 "sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13",211 "sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7"212 ],187 "version": "==6.7"213 "version": "==7.0"214 },189 "cmarkgfm": {190 "hashes": [191 "sha256:0186dccca79483e3405217993b83b914ba4559fe9a8396efc4eea56561b74061",192 "sha256:1a625afc6f62da428df96ec325dc30866cc5781520cbd904ff4ec44cf018171c",193 "sha256:275905bb371a99285c74931700db3f0c078e7603bed383e8cf1a09f3ee05a3de",194 "sha256:50098f1c4950722521f0671e54139e0edc1837d63c990cf0f3d2c49607bb51a2",195 "sha256:50ed116d0b60a07df0dc7b180c28569064b9d37d1578d4c9021cff04d725cb63",196 "sha256:61a72def110eed903cd1848245897bcb80d295cd9d13944d4f9f30cba5b76655",197 "sha256:64186fb75d973a06df0e6ea12879533b71f6e7ba1ab01ffee7fc3e7534758889",198 "sha256:665303d34d7f14f10d7b0651082f25ebf7107f29ef3d699490cac16cdc0fc8ce",199 "sha256:70b18f843aec58e4e64aadce48a897fe7c50426718b7753aaee399e72df64190",200 "sha256:761ee7b04d1caee2931344ac6bfebf37102ffb203b136b676b0a71a3f0ea3c87",201 "sha256:811527e9b7280b136734ed6cb6845e5fbccaeaa132ddf45f0246cbe544016957",202 "sha256:987b0e157f70c72a84f3c2f9ef2d7ab0f26c08f2bf326c12c087ff9eebcb3ff5",203 "sha256:9fc6a2183d0a9b0974ec7cdcdad42bd78a3be674cc3e65f87dd694419b3b0ab7",204 "sha256:c573ea89dd95d41b6d8cf36799c34b6d5b1eac4aed0212dee0f0a11fb7b01e8f",205 "sha256:c5f1b9e8592d2c448c44e6bc0d91224b16ea5f8293908b1561de1f6d2d0658b1",206 "sha256:cbe581456357d8f0674d6a590b1aaf46c11d01dd0a23af147a51a798c3818034",207 "sha256:cf219bec69e601fe27e3974b7307d2f06082ab385d42752738ad2eb630a47d65",208 "sha256:d08bad67fa18f7e8ff738c090628ee0cbf0505d74a991c848d6d04abfe67b697",209 "sha256:d6f716d7b1182bf35862b5065112f933f43dd1aa4f8097c9bcfb246f71528a34",210 "sha256:e08e479102627641c7cb4ece421c6ed4124820b1758765db32201136762282d9",211 "sha256:e20ac21418af0298437d29599f7851915497ce9f2866bc8e86b084d8911ee061",212 "sha256:e25f53c37e319241b9a412382140dffac98ca756ba8f360ac7ab5e30cad9670a",213 "sha256:f20900f16377f2109783ae9348d34bc80530808439591c3d3df73d5c7ef1a00c"214 ],215 "version": "==0.4.2"216 },215 "codecov": {216 "hashes": [217 "sha256:8ed8b7c6791010d359baed66f84f061bba5bd41174bf324c31311e8737602788",218 "sha256:ae00d68e18d8a20e9c3288ba3875ae03db3a8e892115bf9b83ef20507732bed4"
2 unmodified lines
221 "version": "==2.0.15"222 },223 "configparser": {224 "hashes": [227 "sha256:5308b47021bc2340965c371f0f058cc6971a04502638d4244225c49d80db273a"225 "sha256:8be81d89d6e7b4c0d4e44bcc525845f6da25821de80cb5e06e7e0238a2899e32",226 "sha256:da60d0014fd8c55eb48c1c5354352e363e2d30bbf7057e5e171a468390184c75"227 ],228 "markers": "python_version < '3.2'",230 "version": "==3.5.0"229 "version": "==3.7.4"230 },231 "contextlib2": {232 "hashes": [233 "sha256:509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48",
3 unmodified lines
237 "version": "==0.5.5"238 },239 "coverage": {240 "hashes": [242 "sha256:03481e81d558d30d230bc12999e3edffe392d244349a90f4ef9b88425fac74ba",243 "sha256:0b136648de27201056c1869a6c0d4e23f464750fd9a9ba9750b8336a244429ed",244 "sha256:104ab3934abaf5be871a583541e8829d6c19ce7bde2923b2751e0d3ca44db60a",245 "sha256:15b111b6a0f46ee1a485414a52a7ad1d703bdf984e9ed3c288a4414d3871dcbd",246 "sha256:198626739a79b09fa0a2f06e083ffd12eb55449b5f8bfdbeed1df4910b2ca640",247 "sha256:1c383d2ef13ade2acc636556fd544dba6e14fa30755f26812f54300e401f98f2",248 "sha256:28b2191e7283f4f3568962e373b47ef7f0392993bb6660d079c62bd50fe9d162",249 "sha256:2eb564bbf7816a9d68dd3369a510be3327f1c618d2357fa6b1216994c2e3d508",250 "sha256:337ded681dd2ef9ca04ef5d93cfc87e52e09db2594c296b4a0a3662cb1b41249",251 "sha256:3a2184c6d797a125dca8367878d3b9a178b6fdd05fdc2d35d758c3006a1cd694",252 "sha256:3c79a6f7b95751cdebcd9037e4d06f8d5a9b60e4ed0cd231342aa8ad7124882a",253 "sha256:3d72c20bd105022d29b14a7d628462ebdc61de2f303322c0212a054352f3b287",254 "sha256:3eb42bf89a6be7deb64116dd1cc4b08171734d721e7a7e57ad64cc4ef29ed2f1",255 "sha256:4635a184d0bbe537aa185a34193898eee409332a8ccb27eea36f262566585000",256 "sha256:56e448f051a201c5ebbaa86a5efd0ca90d327204d8b059ab25ad0f35fbfd79f1",257 "sha256:5a13ea7911ff5e1796b6d5e4fbbf6952381a611209b736d48e675c2756f3f74e",258 "sha256:69bf008a06b76619d3c3f3b1983f5145c75a305a0fea513aca094cae5c40a8f5",259 "sha256:6bc583dc18d5979dc0f6cec26a8603129de0304d5ae1f17e57a12834e7235062",260 "sha256:701cd6093d63e6b8ad7009d8a92425428bc4d6e7ab8d75efbb665c806c1d79ba",261 "sha256:7608a3dd5d73cb06c531b8925e0ef8d3de31fed2544a7de6c63960a1e73ea4bc",262 "sha256:76ecd006d1d8f739430ec50cc872889af1f9c1b6b8f48e29941814b09b0fd3cc",263 "sha256:7aa36d2b844a3e4a4b356708d79fd2c260281a7390d678a10b91ca595ddc9e99",264 "sha256:7d3f553904b0c5c016d1dad058a7554c7ac4c91a789fca496e7d8347ad040653",265 "sha256:7e1fe19bd6dce69d9fd159d8e4a80a8f52101380d5d3a4d374b6d3eae0e5de9c",266 "sha256:8c3cb8c35ec4d9506979b4cf90ee9918bc2e49f84189d9bf5c36c0c1119c6558",267 "sha256:9d6dd10d49e01571bf6e147d3b505141ffc093a06756c60b053a859cb2128b1f",268 "sha256:9e112fcbe0148a6fa4f0a02e8d58e94470fc6cb82a5481618fea901699bf34c4",269 "sha256:ac4fef68da01116a5c117eba4dd46f2e06847a497de5ed1d64bb99a5fda1ef91",270 "sha256:b8815995e050764c8610dbc82641807d196927c3dbed207f0a079833ffcf588d",271 "sha256:be6cfcd8053d13f5f5eeb284aa8a814220c3da1b0078fa859011c7fffd86dab9",272 "sha256:c1bb572fab8208c400adaf06a8133ac0712179a334c09224fb11393e920abcdd",273 "sha256:de4418dadaa1c01d497e539210cb6baa015965526ff5afc078c57ca69160108d",274 "sha256:e05cb4d9aad6233d67e0541caa7e511fa4047ed7750ec2510d466e806e0255d6",275 "sha256:e4d96c07229f58cb686120f168276e434660e4358cc9cf3b0464210b04913e77",276 "sha256:f3f501f345f24383c0000395b26b726e46758b71393267aeae0bd36f8b3ade80",277 "sha256:f8a923a85cb099422ad5a2e345fe877bbc89a8a8b23235824a93488150e45f6e"241 "sha256:0c5fe441b9cfdab64719f24e9684502a59432df7570521563d7b1aff27ac755f",242 "sha256:2b412abc4c7d6e019ce7c27cbc229783035eef6d5401695dccba80f481be4eb3",243 "sha256:3684fabf6b87a369017756b551cef29e505cb155ddb892a7a29277b978da88b9",244 "sha256:39e088da9b284f1bd17c750ac672103779f7954ce6125fd4382134ac8d152d74",245 "sha256:3c205bc11cc4fcc57b761c2da73b9b72a59f8d5ca89979afb0c1c6f9e53c7390",246 "sha256:42692db854d13c6c5e9541b6ffe0fe921fe16c9c446358d642ccae1462582d3b",247 "sha256:465ce53a8c0f3a7950dfb836438442f833cf6663d407f37d8c52fe7b6e56d7e8",248 "sha256:48020e343fc40f72a442c8a1334284620f81295256a6b6ca6d8aa1350c763bbe",249 "sha256:4ec30ade438d1711562f3786bea33a9da6107414aed60a5daa974d50a8c2c351",250 "sha256:5296fc86ab612ec12394565c500b412a43b328b3907c0d14358950d06fd83baf",251 "sha256:5f61bed2f7d9b6a9ab935150a6b23d7f84b8055524e7be7715b6513f3328138e",252 "sha256:6899797ac384b239ce1926f3cb86ffc19996f6fa3a1efbb23cb49e0c12d8c18c",253 "sha256:68a43a9f9f83693ce0414d17e019daee7ab3f7113a70c79a3dd4c2f704e4d741",254 "sha256:6b8033d47fe22506856fe450470ccb1d8ba1ffb8463494a15cfc96392a288c09",255 "sha256:7ad7536066b28863e5835e8cfeaa794b7fe352d99a8cded9f43d1161be8e9fbd",256 "sha256:7bacb89ccf4bedb30b277e96e4cc68cd1369ca6841bde7b005191b54d3dd1034",257 "sha256:839dc7c36501254e14331bcb98b27002aa415e4af7ea039d9009409b9d2d5420",258 "sha256:8e679d1bde5e2de4a909efb071f14b472a678b788904440779d2c449c0355b27",259 "sha256:8f9a95b66969cdea53ec992ecea5406c5bd99c9221f539bca1e8406b200ae98c",260 "sha256:932c03d2d565f75961ba1d3cec41ddde00e162c5b46d03f7423edcb807734eab",261 "sha256:93f965415cc51604f571e491f280cff0f5be35895b4eb5e55b47ae90c02a497b",262 "sha256:988529edadc49039d205e0aa6ce049c5ccda4acb2d6c3c5c550c17e8c02c05ba",263 "sha256:998d7e73548fe395eeb294495a04d38942edb66d1fa61eb70418871bc621227e",264 "sha256:9de60893fb447d1e797f6bf08fdf0dbcda0c1e34c1b06c92bd3a363c0ea8c609",265 "sha256:9e80d45d0c7fcee54e22771db7f1b0b126fb4a6c0a2e5afa72f66827207ff2f2",266 "sha256:a545a3dfe5082dc8e8c3eb7f8a2cf4f2870902ff1860bd99b6198cfd1f9d1f49",267 "sha256:a5d8f29e5ec661143621a8f4de51adfb300d7a476224156a39a392254f70687b",268 "sha256:a9abc8c480e103dc05d9b332c6cc9fb1586330356fc14f1aa9c0ca5745097d19",269 "sha256:aca06bfba4759bbdb09bf52ebb15ae20268ee1f6747417837926fae990ebc41d",270 "sha256:bb23b7a6fd666e551a3094ab896a57809e010059540ad20acbeec03a154224ce",271 "sha256:bfd1d0ae7e292105f29d7deaa9d8f2916ed8553ab9d5f39ec65bcf5deadff3f9",272 "sha256:c22ab9f96cbaff05c6a84e20ec856383d27eae09e511d3e6ac4479489195861d",273 "sha256:c62ca0a38958f541a73cf86acdab020c2091631c137bd359c4f5bddde7b75fd4",274 "sha256:c709d8bda72cf4cd348ccec2a4881f2c5848fd72903c185f363d361b2737f773",275 "sha256:c968a6aa7e0b56ecbd28531ddf439c2ec103610d3e2bf3b75b813304f8cb7723",276 "sha256:ca58eba39c68010d7e87a823f22a081b5290e3e3c64714aac3c91481d8b34d22",277 "sha256:df785d8cb80539d0b55fd47183264b7002077859028dfe3070cf6359bf8b2d9c",278 "sha256:f406628ca51e0ae90ae76ea8398677a921b36f0bd71aab2099dfed08abd0322f",279 "sha256:f46087bbd95ebae244a0eda01a618aff11ec7a069b15a3ef8f6b520db523dcf1",280 "sha256:f8019c5279eb32360ca03e9fac40a12667715546eed5c5eb59eb381f2f501260",281 "sha256:fc5f4d209733750afd2714e9109816a29500718b32dd9a5db01c0cb3a019b96a"282 ],279 "version": "==4.5.1"283 "version": "==4.5.3"284 },285 "decorator": {286 "hashes": [283 "sha256:2c51dff8ef3c447388fe5e4453d24a2bf128d3a4c32af3fabef1f01c6851ab82",284 "sha256:c39efa13fbdeb4506c476c9b3babf6a718da943dab7811c206005a4a956c080c"287 "sha256:86156361c50488b84a3f148056ea716ca587df2f0de1d34750d35c21312725de",288 "sha256:f069f3a01830ca754ba5258fde2278454a0b5b79e0d7f5c13b3b97e57d4acff6"289 ],286 "version": "==4.3.0"290 "version": "==4.4.0"291 },292 "detox": {293 "hashes": [290 "sha256:cb24895a0e4f95c0bcb1087a201c453600e075568af00848e91518fb2b984568",291 "sha256:f3119bca4444f1e8a1d7189b064c52cfdd9a89ad3a1c921d78b49bf7f5dc5b1b"294 "sha256:e650f95f0c7f5858578014b3b193e5dac76c89285c1bbe4bae598fd641bf9cd3",295 "sha256:fcad009e2d20ce61176dc826a2c1562bd712fe53953ca603b455171cf819080f"296 ],297 "index": "pypi",294 "version": "==0.12"298 "version": "==0.19"299 },300 "dnspython": {301 "hashes": [302 "sha256:36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01",303 "sha256:f69c21288a962f4da86e56c4905b49d11aba7938d3d740e80d9e366ee4f1632d"304 ],305 "version": "==1.16.0"306 },307 "docutils": {308 "hashes": [309 "sha256:02aec4bd92ab067f6ff27a38a38a41173bf01bed8f89157768c1573f53e474a6",310 "sha256:51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274",
1 unmodified line
312 ],313 "index": "pypi",314 "version": "==0.14"315 },316 "entrypoints": {317 "hashes": [318 "sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19",319 "sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451"320 ],321 "version": "==0.3"322 },323 "enum34": {324 "hashes": [325 "sha256:2d81cbbe0e73112bdfe6ef8576f2238f2ba27dd0d55752a776c41d38b7da2850",326 "sha256:644837f692e5f550741432dd3f223bbb9852018674981b1664e5dc339387588a",
4 unmodified lines
331 "version": "==1.1.6"332 },333 "eventlet": {334 "hashes": [317 "sha256:06cffa55b335cc4fc32d0079242a81e8a9cddf2581d64d5f0543e2d412b26ca8",318 "sha256:554a50dad7abee0a9775b0780ce9d9c0bd9123dda4743c46d4314170267c6c47"335 "sha256:c584163e006e613707e224552fafc63e4e0aa31d7de0ab18b481ac0b385254c8",336 "sha256:d9d31a3c8dbcedbcce5859a919956d934685b17323fc80e1077cb344a2ffa68d"337 ],320 "version": "==0.23.0"338 "version": "==0.24.1"339 },340 "execnet": {341 "hashes": [324 "sha256:a7a84d5fa07a089186a329528f127c9d73b9de57f1a1131b82bb5320ee651f6a",325 "sha256:fc155a6b553c66c838d1a22dba1dc9f5f505c43285a878c6f74a79c024750b83"342 "sha256:027ee5d961afa01e97b90d6ccc34b4ed976702bc58e7f092b3c513ea288cb6d2",343 "sha256:752a3786f17416d491f833a29217dda3ea4a471fc5269c492eebcee8cc4772d3"344 ],327 "version": "==1.5.0"345 "version": "==1.6.0"346 },347 "filelock": {348 "hashes": [349 "sha256:b8d5ca5ca1c815e1574aee746650ea7301de63d87935b3463d26368b76e31633",350 "sha256:d610c1bb404daf85976d7a82eb2ada120f04671007266b708606565dd03b5be6"351 ],352 "version": "==3.0.10"353 },354 "flake8": {355 "hashes": [331 "sha256:7253265f7abd8b313e3892944044a365e3f4ac3fcdcfb4298f55ee9ddf188ba0",332 "sha256:c7841163e2b576d435799169b78703ad6ac1bbb0f199994fc05f700b2a90ea37"356 "sha256:859996073f341f2670741b51ec1e67a01da142831aa1fdc6242dbf88dffbe661",357 "sha256:a796a115208f5c03b18f332f7c11729812c8c3ded6c46319c59b53efd3819da8"358 ],359 "index": "pypi",335 "version": "==3.5.0"360 "version": "==3.7.7"361 },362 "flask": {363 "hashes": [364 "sha256:2271c0070dbcb5275fad4a82e29f23ab92682dc45f9dfbc22c02ba9b9322ce48",
5 unmodified lines
370 "hashes": [371 "sha256:330cc27ccbf7f1e992e69fef78261dc7c6569012cf397db8d3de0234e6c937ca",372 "sha256:a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50"373 ],349 "markers": "python_version < '3.3'",374 "markers": "python_version < '3.0'",375 "version": "==1.0.2"376 },352 "future": {377 "functools32": {378 "hashes": [354 "sha256:e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb"379 "sha256:89d824aa6c358c421a234d7f9ee0bd75933a67c29588ce50aaa3acdf4d403fa0",380 "sha256:f6253dfbe0538ad2e387bd8fdfd9293c925d63553f5813c4e587745416501e6d"381 ],382 "markers": "python_version < '3.2'",356 "version": "==0.16.0"383 "version": "==3.2.3.post2"384 },385 "greenlet": {386 "hashes": [360 "sha256:09ef2636ea35782364c830f07127d6c7a70542b178268714a9a9ba16318e7e8b",361 "sha256:0fef83d43bf87a5196c91e73cb9772f945a4caaff91242766c5916d1dd1381e4",362 "sha256:1b7df09c6598f5cfb40f843ade14ed1eb40596e75cd79b6fa2efc750ba01bb01",363 "sha256:1fff21a2da5f9e03ddc5bd99131a6b8edf3d7f9d6bc29ba21784323d17806ed7",364 "sha256:42118bf608e0288e35304b449a2d87e2ba77d1e373e8aa221ccdea073de026fa",365 "sha256:50643fd6d54fd919f9a0a577c5f7b71f5d21f0959ab48767bd4bb73ae0839500",366 "sha256:58798b5d30054bb4f6cf0f712f08e6092df23a718b69000786634a265e8911a9",367 "sha256:5b49b3049697aeae17ef7bf21267e69972d9e04917658b4e788986ea5cc518e8",368 "sha256:75c413551a436b462d5929255b6dc9c0c3c2b25cbeaee5271a56c7fda8ca49c0",369 "sha256:769b740aeebd584cd59232be84fdcaf6270b8adc356596cdea5b2152c82caaac",370 "sha256:ad2383d39f13534f3ca5c48fe1fc0975676846dc39c2cece78c0f1f9891418e0",371 "sha256:b417bb7ff680d43e7bd7a13e2e08956fa6acb11fd432f74c97b7664f8bdb6ec1",372 "sha256:b6ef0cabaf5a6ecb5ac122e689d25ba12433a90c7b067b12e5f28bdb7fb78254",373 "sha256:c2de19c88bdb0366c976cc125dca1002ec1b346989d59524178adfd395e62421",374 "sha256:c7b04a6dc74087b1598de8d713198de4718fa30ec6cbb84959b26426c198e041",375 "sha256:f8f2a0ae8de0b49c7b5b2daca4f150fdd9c1173e854df2cce3b04123244f9f45",376 "sha256:fcfadaf4bf68a27e5dc2f42cbb2f4b4ceea9f05d1d0b8f7787e640bed2801634"387 "sha256:000546ad01e6389e98626c1367be58efa613fa82a1be98b0c6fc24b563acc6d0",388 "sha256:0d48200bc50cbf498716712129eef819b1729339e34c3ae71656964dac907c28",389 "sha256:23d12eacffa9d0f290c0fe0c4e81ba6d5f3a5b7ac3c30a5eaf0126bf4deda5c8",390 "sha256:37c9ba82bd82eb6a23c2e5acc03055c0e45697253b2393c9a50cef76a3985304",391 "sha256:51503524dd6f152ab4ad1fbd168fc6c30b5795e8c70be4410a64940b3abb55c0",392 "sha256:8041e2de00e745c0e05a502d6e6db310db7faa7c979b3a5877123548a4c0b214",393 "sha256:81fcd96a275209ef117e9ec91f75c731fa18dcfd9ffaa1c0adbdaa3616a86043",394 "sha256:853da4f9563d982e4121fed8c92eea1a4594a2299037b3034c3c898cb8e933d6",395 "sha256:8b4572c334593d449113f9dc8d19b93b7b271bdbe90ba7509eb178923327b625",396 "sha256:9416443e219356e3c31f1f918a91badf2e37acf297e2fa13d24d1cc2380f8fbc",397 "sha256:9854f612e1b59ec66804931df5add3b2d5ef0067748ea29dc60f0efdcda9a638",398 "sha256:99a26afdb82ea83a265137a398f570402aa1f2b5dfb4ac3300c026931817b163",399 "sha256:a19bf883b3384957e4a4a13e6bd1ae3d85ae87f4beb5957e35b0be287f12f4e4",400 "sha256:a9f145660588187ff835c55a7d2ddf6abfc570c2651c276d3d4be8a2766db490",401 "sha256:ac57fcdcfb0b73bb3203b58a14501abb7e5ff9ea5e2edfa06bb03035f0cff248",402 "sha256:bcb530089ff24f6458a81ac3fa699e8c00194208a724b644ecc68422e1111939",403 "sha256:beeabe25c3b704f7d56b573f7d2ff88fc99f0138e43480cecdfcaa3b87fe4f87",404 "sha256:d634a7ea1fc3380ff96f9e44d8d22f38418c1c381d5fac680b272d7d90883720",405 "sha256:d97b0661e1aead761f0ded3b769044bb00ed5d33e1ec865e891a8b128bf7c656"406 ],378 "version": "==0.4.13"407 "version": "==0.4.15"408 },380 "html5lib": {381 "hashes": [382 "sha256:20b159aa3badc9d5ee8f5c647e5efd02ed2a66ab8d354930bd9ff139fc1dc0a3",383 "sha256:66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736"384 ],385 "version": "==1.0.1"386 },409 "httpbin": {410 "hashes": [411 "sha256:7a04b5904c80b7aa04dd0a6af6520d68ce17a5db175e66a64b971f8e93d73a26",412 "sha256:cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa"
2 unmodified lines
415 "version": "==0.7.0"416 },417 "idna": {418 "hashes": [397 "sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f",398 "sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4"419 "sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407",420 "sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"421 ],400 "version": "==2.6"422 "version": "==2.8"423 },424 "imagesize": {425 "hashes": [404 "sha256:3620cc0cadba3f7475f9940d22431fc4d407269f1be59ec9b8edcca26440cf18",405 "sha256:5b326e4678b6925158ccc66a9fa3122b6106d7c876ee32d7de6ce59385b96315"426 "sha256:3f349de3eb99145973fefb7dbe38554414e5c30abd0c8e4b970a7c9d09f3a1d8",427 "sha256:f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5"428 ],407 "version": "==1.0.0"429 "version": "==1.1.0"430 },431 "itsdangerous": {432 "hashes": [411 "sha256:cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519"433 "sha256:321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19",434 "sha256:b12271b2047cb23eeb98c8b5622e2e5c5e9abd9784a153e9d8ef9cb4dd09d749"435 ],413 "version": "==0.24"436 "version": "==1.1.0"437 },438 "jinja2": {439 "hashes": [417 "sha256:74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd",418 "sha256:f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4"440 "sha256:065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013",441 "sha256:14dd6caf1527abb21f08f86c784eac40853ba93edb79552aa1e4b8aef1b61c7b"442 ],420 "version": "==2.10"443 "version": "==2.10.1"444 },445 "markupsafe": {446 "hashes": [424 "sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665"447 "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473",448 "sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161",449 "sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235",450 "sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5",451 "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff",452 "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b",453 "sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1",454 "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e",455 "sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183",456 "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66",457 "sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1",458 "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1",459 "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e",460 "sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b",461 "sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905",462 "sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735",463 "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d",464 "sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e",465 "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d",466 "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c",467 "sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21",468 "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2",469 "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5",470 "sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b",471 "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6",472 "sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f",473 "sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f",474 "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7"475 ],426 "version": "==1.0"476 "version": "==1.1.1"477 },478 "mccabe": {479 "hashes": [480 "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42",
2 unmodified lines
483 "version": "==0.6.1"484 },485 "mock": {486 "hashes": [437 "sha256:5ce3c71c5545b472da17b72268978914d0252980348636840bd34a00b5cc96c1",438 "sha256:b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba"487 "sha256:83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3",488 "sha256:d157e52d4e5b938c550f39eb2fd15610db062441a9c2747d3dbfa9298211d0f8"489 ],490 "markers": "python_version < '3.0'",441 "version": "==2.0.0"491 "version": "==3.0.5"492 },493 "monotonic": {494 "hashes": [495 "sha256:23953d55076df038541e648a53676fb24980f7a1be290cdda21300b3bc21dfb0",496 "sha256:552a91f381532e33cbd07c6a2655a21908088962bb8fa7239ecbcc6ad1140cc7"497 ],498 "version": "==1.5"499 },500 "more-itertools": {501 "hashes": [445 "sha256:0dd8f72eeab0d2c3bd489025bb2f6a1b8342f9b198f6fc37b52d15cfa4531fea",446 "sha256:11a625025954c20145b37ff6309cd54e39ca94f72f6bb9576d1195db6fa2442e",447 "sha256:c9ce7eccdcb901a2c75d326ea134e0886abfbea5f93e91cc95de9507c0816c44"502 "sha256:38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4",503 "sha256:c0a5785b1109a6bd7fac76d6837fd1feca158e54e521ccd2ae8bfe393cc9d4fc",504 "sha256:fe7a7cae1ccb57d33952113ff4fa1bc5f879963600ed74918f1236e212ee50b9"505 ],449 "version": "==4.1.0"506 "version": "==5.0.0"507 },451 "pbr": {508 "pathlib2": {509 "hashes": [453 "sha256:680bf5ba9b28dd56e08eb7c267991a37c7a5f90a92c2e07108829931a50ff80a",454 "sha256:6874feb22334a1e9a515193cba797664e940b763440c88115009ec323a7f2df5"510 "sha256:25199318e8cc3c25dcb45cbe084cc061051336d5a9ea2a12448d3d8cb748f742",511 "sha256:5887121d7f7df3603bca2f710e7219f3eca0eb69e0b7cc6e0a022e155ac931a7"512 ],513 "markers": "python_version < '3.6'",456 "version": "==4.0.3"514 "version": "==2.3.3"515 },516 "pluggy": {517 "hashes": [460 "sha256:7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff",461 "sha256:d345c8fe681115900d6da8d048ba67c25df42973bda370783cd58826442dcd7c",462 "sha256:e160a7fcf25762bb60efc7e171d4497ff1d8d2d75a3d0df7a21b76821ecbf5c5"518 "sha256:25a1bc1d148c9a640211872b4ff859878d422bccb59c9965e04eed468a0aa180",519 "sha256:964cedd2b27c492fbf0b7f58b3284a09cf7f99b0f715941fb24a439b3af1bd1a"520 ],464 "version": "==0.6.0"521 "version": "==0.11.0"522 },523 "py": {524 "hashes": [468 "sha256:29c9fab495d7528e80ba1e343b958684f4ace687327e6f789a94bf3d1915f881",469 "sha256:983f77f3331356039fdd792e9220b7b8ee1aa6bd2b25f567a963ff1de5a64f6a"525 "sha256:64f65755aee5b381cea27766a3a147c3f15b9b6b9ac88676de66ba2ae36793fa",526 "sha256:dc639b046a6e2cff5bbe40194ad65936d6ba360b52b3c3fe1d08a82dd50b5e53"527 ],471 "version": "==1.5.3"528 "version": "==1.8.0"529 },530 "pycodestyle": {531 "hashes": [475 "sha256:682256a5b318149ca0d2a9185d365d8864a768a28db66a84a2ea946bcc426766",476 "sha256:6c4245ade1edfad79c3446fadfc96b0de2759662dc29d07d80a6f27ad1ca6ba9"532 "sha256:95a2219d12372f05704562a14ec30bc76b05a5b297b21a5dfe3f6fac3491ae56",533 "sha256:e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c"534 ],478 "version": "==2.3.1"535 "version": "==2.5.0"536 },537 "pycparser": {538 "hashes": [482 "sha256:99a8ca03e29851d96616ad0404b4aad7d9ee16f25c9f9708a11faf2810f7b226"539 "sha256:a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3"540 ],484 "version": "==2.18"541 "version": "==2.19"542 },543 "pyflakes": {544 "hashes": [488 "sha256:08bd6a50edf8cffa9fa09a463063c425ecaaf10d1eb0335a7e8b1401aef89e6f",489 "sha256:8d616a382f243dbf19b54743f280b80198be0bca3a5396f1d2e1fca6223e8805"545 "sha256:17dbeb2e3f4d772725c777fabc446d5634d1038f234e77343108ce445ea69ce0",546 "sha256:d976835886f8c5b31d47970ed689944a0262b5f3afa00a5a7b4dc81e5449f8a2"547 ],491 "version": "==1.6.0"548 "version": "==2.1.1"549 },550 "pygments": {551 "hashes": [495 "sha256:78f3f434bcc5d6ee09020f92ba487f95ba50f1e3ef83ae96b9d5ffa1bab25c5d",496 "sha256:dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc"552 "sha256:31cba6ffb739f099a85e243eff8cb717089fdd3c7300767d9fc34cb8e1b065f5",553 "sha256:5ad302949b3c98dd73f8d9fcdc7e9cb592f120e32a18e23efd7f3dc51194472b"554 ],498 "version": "==2.2.0"555 "version": "==2.4.0"556 },557 "pysocks": {558 "hashes": [502 "sha256:3fe52c55890a248676fd69dc9e3c4e811718b777834bcaab7a8125cf9deac672"559 "sha256:15d38914b60dbcb231d276f64882a20435c049450160e953ca7d313d1405f16f",560 "sha256:32238918ac0f19e9fd870a8692ac9bd14f5e8752b3c62624cda5851424642210",561 "sha256:d9031ea45fdfacbe59a99273e9f0448ddb33c1580fe3831c1b09557c5718977c"562 ],504 "version": "==1.6.8"563 "version": "==1.7.0"564 },565 "pytest": {566 "hashes": [508 "sha256:54713b26c97538db6ff0703a12b19aeaeb60b5e599de542e7fca0ec83b9038e8",509 "sha256:829230122facf05a5f81a6d4dfe6454a04978ea3746853b2b84567ecf8e5c526"567 "sha256:3f193df1cfe1d1609d4c583838bea3d532b18d6160fd3f55c9447fdca30848ec",568 "sha256:e246cf173c01169b9617fc07264b7b1316e78d7a650055235d6d897bc80d9660"569 ],570 "index": "pypi",512 "version": "==3.5.1"571 "version": "==3.10.1"572 },573 "pytest-cov": {574 "hashes": [516 "sha256:03aa752cf11db41d281ea1d807d954c4eda35cfa1b21d6971966cc041bbf6e2d",517 "sha256:890fe5565400902b0c78b5357004aab1c814115894f4f21370e2433256a3eeec"575 "sha256:2b097cde81a302e1047331b48cadacf23577e431b61e9c6f49a1170bbe3d3da6",576 "sha256:e00ea4fdde970725482f1f35630d12f074e121a23801aabf2ae154ec6bdd343a"577 ],578 "index": "pypi",520 "version": "==2.5.1"579 "version": "==2.7.1"580 },581 "pytest-forked": {582 "hashes": [524 "sha256:e4500cd0509ec4a26535f7d4112a8cc0f17d3a41c29ffd4eab479d2a55b30805",525 "sha256:f275cb48a73fc61a6710726348e1da6d68a978f0ec0c54ece5a5fae5977e5a08"583 "sha256:5fe33fbd07d7b1302c95310803a5e5726a4ff7f19d5a542b7ce57c76fed8135f",584 "sha256:d352aaced2ebd54d42a65825722cb433004b4446ab5d2044851d9cc7a00c9e38"585 ],527 "version": "==0.2"586 "version": "==1.0.2"587 },588 "pytest-httpbin": {589 "hashes": [590 "sha256:8cd57e27418a7d7d205fcc9802eea246ed06170e3065abfa76c6d9b40553592c",
3 unmodified lines
594 "version": "==0.3.0"595 },596 "pytest-mock": {597 "hashes": [539 "sha256:53801e621223d34724926a5c98bd90e8e417ce35264365d39d6c896388dcc928",540 "sha256:d89a8209d722b8307b5e351496830d5cc5e192336003a485443ae9adeb7dd4c0"598 "sha256:43ce4e9dd5074993e7c021bb1c22cbb5363e612a2b5a76bc6d956775b10758b7",599 "sha256:5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568"600 ],601 "index": "pypi",543 "version": "==1.10.0"602 "version": "==1.10.4"603 },604 "pytest-xdist": {605 "hashes": [547 "sha256:be2662264b035920ba740ed6efb1c816a83c8a22253df7766d129f6a7bfdbd35",548 "sha256:e8f5744acc270b3e7d915bdb4d5f471670f049b6fbd163d4cbd52203b075d30f"606 "sha256:96f893094c89fddeaff3f4783f4807f7aeb138be1a0d87a8805057b6af1201b5",607 "sha256:aab1402f2b063df48bf044b042707610f8fcc4c49d0eb9c10e79e30b3f26074f"608 ],609 "index": "pypi",551 "version": "==1.22.2"610 "version": "==1.25.0"611 },612 "pytz": {613 "hashes": [555 "sha256:65ae0c8101309c45772196b21b74c46b2e5d11b6275c45d251b150d5da334555",556 "sha256:c06425302f2cf668f1bba7a0a03f3c1d34d4ebeef2c72003da308b3947c7f749"614 "sha256:303879e36b721603cc54604edcac9d20401bdbe31e1e4fdee5b9f98d5d31dfda",615 "sha256:d747dd3d23d77ef44c6a3526e274af6efeb0a6f1afd5a69ba4d5be4098c8e141"616 ],558 "version": "==2018.4"617 "version": "==2019.1"618 },619 "raven": {620 "extras": [621 "flask"622 ],623 "hashes": [562 "sha256:1c641e5ebc2d4185560608e253970ca0d4b98475f4edf67735015a415f9e1d48",563 "sha256:95aecf76c414facaddbb056f3e98c7936318123e467728f2e50b3a66b65a6ef7"624 "sha256:3fa6de6efa2493a7c827472e984ce9b020797d0da16f1db67197bcc23c8fae54",625 "sha256:44a13f87670836e153951af9a3c80405d36b43097db869a36e92809673692ce4"626 ],565 "version": "==6.8.0"627 "version": "==6.10.0"628 },629 "readme-renderer": {630 "hashes": [569 "sha256:bde909eaa84d65b7942f7e6998c8b427b90b568b2630ff0306f4ca75f6d2a909",570 "sha256:e7e43a7ba49f08c3cb660d0f2e25b561f6b10b36c63f029060230aab2dc2875e"631 "sha256:bb16f55b259f27f75f640acf5e00cf897845a8b3e4731b5c1a436e4b8529202f",632 "sha256:c8532b79afc0375a85f10433eca157d6b50f7d6990f337fa498c96cd4bfc203d"633 ],634 "index": "pypi",573 "version": "==20.0"635 "version": "==24.0"636 },637 "requests": {638 "editable": true,639 "extras": [640 "socks"641 ],642 "path": ".",643 "version": "==2.22.0"644 },645 "scandir": {646 "hashes": [577 "sha256:6a1b267aa90cac58ac3a765d067950e7dbbf75b1da07e895d1f594193a40a38b",578 "sha256:9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e"647 "sha256:2586c94e907d99617887daed6c1d102b5ca28f1085f90446554abf1faf73123e",648 "sha256:2ae41f43797ca0c11591c0c35f2f5875fa99f8797cb1a1fd440497ec0ae4b022",649 "sha256:2b8e3888b11abb2217a32af0766bc06b65cc4a928d8727828ee68af5a967fa6f",650 "sha256:2c712840c2e2ee8dfaf36034080108d30060d759c7b73a01a52251cc8989f11f",651 "sha256:4d4631f6062e658e9007ab3149a9b914f3548cb38bfb021c64f39a025ce578ae",652 "sha256:67f15b6f83e6507fdc6fca22fedf6ef8b334b399ca27c6b568cbfaa82a364173",653 "sha256:7d2d7a06a252764061a020407b997dd036f7bd6a175a5ba2b345f0a357f0b3f4",654 "sha256:8c5922863e44ffc00c5c693190648daa6d15e7c1207ed02d6f46a8dcc2869d32",655 "sha256:92c85ac42f41ffdc35b6da57ed991575bdbe69db895507af88b9f499b701c188",656 "sha256:b24086f2375c4a094a6b51e78b4cf7ca16c721dcee2eddd7aa6494b42d6d519d",657 "sha256:cb925555f43060a1745d0a321cca94bcea927c50114b623d73179189a4e100ac"658 ],659 "markers": "python_version < '3.5'",580 "version": "==2.18.4"660 "version": "==1.10.0"661 },662 "six": {663 "hashes": [584 "sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9",585 "sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"664 "sha256:3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c",665 "sha256:d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73"666 ],587 "version": "==1.11.0"667 "version": "==1.12.0"668 },669 "snowballstemmer": {670 "hashes": [671 "sha256:919f26a68b2c17a7634da993d91339e288964f93c274f1343e3bbbe2096e1128",
8 unmodified lines
680 ],681 "index": "pypi",682 "version": "==1.5.5"683 },684 "toml": {685 "hashes": [686 "sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c",687 "sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e",688 "sha256:f1db651f9657708513243e61e6cc67d101a39bad662eaa9b5546f789338e07a3"689 ],690 "version": "==0.10.0"691 },692 "tox": {693 "hashes": [606 "sha256:96efa09710a3daeeb845561ebbe1497641d9cef2ee0aea30db6969058b2bda2f",607 "sha256:9ee7de958a43806402a38c0d2aa07fa8553f4d2c20a15b140e9f771c2afeade0"694 "sha256:2a8d8a63660563e41e64e3b5b677e81ce1ffa5e2a93c2c565d3768c287445800",695 "sha256:edfca7809925f49bdc110d0a2d9966bbf35a0c25637216d9586e7a5c5de17bfb"696 ],697 "index": "pypi",610 "version": "==3.0.0"698 "version": "==3.6.1"699 },700 "typing": {701 "hashes": [702 "sha256:4027c5f6127a6267a435201981ba156de91ad0d1d98e9ddc2aa173453453492d",703 "sha256:57dcf675a99b74d64dacf6fba08fb17cf7e3d5fdff53d4a30ea2a5e7e52543d4",704 "sha256:a4c8473ce11a65999c8f59cb093e70686b6c84c98df58c1dae9b3b196089858a"705 ],706 "markers": "python_version < '3.5'",707 "version": "==3.6.6"708 },709 "urllib3": {710 "hashes": [614 "sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b",615 "sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"711 "sha256:a53063d8b9210a7bdec15e7b272776b9d42b2fd6816401a0d43006ad2f9902db",712 "sha256:d363e3607d8de0c220d31950a8f38b18d5ba7c0830facd71a1c6b1036b7ce06c"713 ],617 "version": "==1.22"714 "version": "==1.25.2"715 },716 "virtualenv": {717 "hashes": [621 "sha256:1d7e241b431e7afce47e77f8843a276f652699d1fa4f93b9d8ce0076fd7b0b54",622 "sha256:e8e05d4714a1c51a2f5921e62f547fcb0f713ebbe959e0a7f585cc8bef71d11f"718 "sha256:99acaf1e35c7ccf9763db9ba2accbca2f4254d61d1912c5ee364f9cc4a8942a0",719 "sha256:fe51cdbf04e5d8152af06c075404745a7419de27495a83f0d72518ad50be3ce8"720 ],624 "version": "==15.2.0"721 "version": "==16.6.0"722 },723 "webencodings": {724 "hashes": [725 "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78",
2 unmodified lines
728 "version": "==0.5.1"729 },730 "werkzeug": {731 "hashes": [635 "sha256:c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c",636 "sha256:d5da73735293558eb1651ee2fddc4d0dedcfa06538b8813a2e20011583c9e49b"732 "sha256:865856ebb55c4dcd0630cdd8f3331a1847a819dda7e8c750d3db6f2aa6c0209c",733 "sha256:a0b915f0815982fb2a09161cb8f31708052d0951c3ba433ccc5e1aa276507ca6"734 ],638 "version": "==0.14.1"735 "version": "==0.15.4"736 }737 }738}
modified:pytest.ini+2 added-1 removed
1[pytest]2addopts = -p no:warnings2addopts = -p no:warnings --doctest-modules3doctest_optionflags= NORMALIZE_WHITESPACE ELLIPSIS
modified:README.md+12 added-12 removed
2 unmodified lines
34[![image](https://img.shields.io/pypi/v/requests.svg)](https://pypi.org/project/requests/)5[![image](https://img.shields.io/pypi/l/requests.svg)](https://pypi.org/project/requests/)6[![image](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests/)7[![codecov.io](https://codecov.io/github/requests/requests/coverage.svg?branch=master)](https://codecov.io/github/requests/requests)8[![image](https://img.shields.io/github/contributors/requests/requests.svg)](https://github.com/requests/requests/graphs/contributors)7[![codecov.io](https://codecov.io/github/psf/requests/coverage.svg?branch=master)](https://codecov.io/github/psf/requests)8[![image](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)9[![image](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/kennethreitz)1011**If you're interested in financially supporting Kenneth Reitz open source, consider [visiting this link](https://cash.me/$KennethReitz). Your support helps tremendously with sustainability of motivation, as Open Source is no longer part of my day job.**1211Requests is the only *Non-GMO* HTTP library for Python, safe for human12consumption.1314![image](https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg)1516Behold, the power of Requests:1718``` {.sourceCode .python}19>>> import requests20>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))21>>> r.status_code2220023>>> r.headers['content-type']
7 unmodified lines
31```3233See [the similar code, sans Requests](https://gist.github.com/973705).3436[![image](https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.png)](http://docs.python-requests.org/)35[![image](https://raw.githubusercontent.com/psf/requests/master/docs/_static/requests-logo-small.png)](http://docs.python-requests.org/)3637Requests allows you to send *organic, grass-fed* HTTP/1.1 requests,38without the need for manual labor. There's no need to manually add query39strings to your URLs, or to form-encode your POST data. Keep-alive and40HTTP connection pooling are 100% automatic, thanks to41[urllib3](https://github.com/shazow/urllib3).4243Besides, all the cool kids are doing it. Requests is one of the most45downloaded Python packages of all time, pulling in over 11,000,00044downloaded Python packages of all time, pulling in over 50,000,00045downloads every month. You don't want to be left out!4647Feature Support48---------------
40 unmodified lines
8990How to Contribute91-----------------92931. Become more familiar with the project by reading our [Contributor's Guide](http://docs.python-requests.org/en/latest/dev/contributing/) and our [development philosophy](http://docs.python-requests.org/en/latest/dev/philosophy/).941. Check for open issues or open a fresh issue to start a discussion942. Check for open issues or open a fresh issue to start a discussion95 around a feature idea or a bug. There is a [Contributor96 Friendly](https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open)96 Friendly](https://github.com/psf/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open)97 tag for issues that should be ideal for people who are not very98 familiar with the codebase yet.992. Fork [the repository](https://github.com/requests/requests) on993. Fork [the repository](https://github.com/psf/requests) on100 GitHub to start making your changes to the **master** branch (or101 branch off of it).1023. Write a test which shows that the bug was fixed or that the feature1024. Write a test which shows that the bug was fixed or that the feature103 works as expected.1044. Send a pull request and bug the maintainer until it gets merged and1045. Send a [pull request](https://help.github.com/en/articles/creating-a-pull-request-from-a-fork) and bug the maintainer until it gets merged and105 published. :) Make sure to add yourself to106 [AUTHORS](https://github.com/requests/requests/blob/master/AUTHORS.rst).106 [AUTHORS](https://github.com/psf/requests/blob/master/AUTHORS.rst).107
modified:setup.py+7 added-4 removed
42 unmodified lines
4344requires = [45 'chardet>=3.0.2,<3.1.0',46 'idna>=2.5,<2.9',47 'urllib3>=1.21.1,<1.25',47 'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1',48 'certifi>=2017.4.17'4950]51test_requirements = [
1 unmodified line
53 'pytest-cov',54 'pytest-mock',55 'pytest-xdist',56 'PySocks>=1.5.6, !=1.5.7',57 'pytest>=2.8.0'57 'pytest>=3'58]5960about = {}61with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:
16 unmodified lines
78 packages=packages,79 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},80 package_dir={'requests': 'requests'},81 include_package_data=True,82 python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",82 python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",83 install_requires=requires,84 license=about['__license__'],85 zip_safe=False,86 classifiers=[
4 unmodified lines
91 'Programming Language :: Python',92 'Programming Language :: Python :: 2',93 'Programming Language :: Python :: 2.7',94 'Programming Language :: Python :: 3',95 'Programming Language :: Python :: 3.4',95 'Programming Language :: Python :: 3.5',96 'Programming Language :: Python :: 3.6',97 'Programming Language :: Python :: 3.7',98 'Programming Language :: Python :: Implementation :: CPython',
5 unmodified lines
104 'security': ['pyOpenSSL >= 0.14', 'cryptography>=1.3.4', 'idna>=2.0.0'],105 'socks': ['PySocks>=1.5.6, !=1.5.7'],106 'socks:sys_platform == "win32" and python_version == "2.7"': ['win_inet_pton'],107 },108 project_urls={109 'Documentation': 'http://docs.python-requests.org',110 'Source': 'https://github.com/kennethreitz/requests',111 },112)
modified:tox.ini+1 added-1 removed
1[tox]2envlist = py27,py34,py35,py36,py372envlist = py27,py35,py36,py3734[testenv]56commands =
1 unmodified line