diff --git a/.buildinfo b/.buildinfo new file mode 100644 index 00000000..931ce9a9 --- /dev/null +++ b/.buildinfo @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: 939fdf6b6a6d6f30be7259302ed38c4b +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/_sources/api/api.rst.txt b/_sources/api/api.rst.txt new file mode 100644 index 00000000..b38e0179 --- /dev/null +++ b/_sources/api/api.rst.txt @@ -0,0 +1,26 @@ +pyflyby API +=========== + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + autoimp + cmdline + comms + dbg + file + flags + format + idents + importclns + importdb + imports2s + importstmt + interactive + livepatch + log + modules + parse + py + util diff --git a/_sources/api/autoimp.rst.txt b/_sources/api/autoimp.rst.txt new file mode 100644 index 00000000..a7d9d3f0 --- /dev/null +++ b/_sources/api/autoimp.rst.txt @@ -0,0 +1,4 @@ +_autoimp module +=============== +.. automodule:: pyflyby._autoimp + :members: diff --git a/_sources/api/cmdline.rst.txt b/_sources/api/cmdline.rst.txt new file mode 100644 index 00000000..952eb0e3 --- /dev/null +++ b/_sources/api/cmdline.rst.txt @@ -0,0 +1,4 @@ +_cmdline module +=============== +.. automodule:: pyflyby._cmdline + :members: diff --git a/_sources/api/comms.rst.txt b/_sources/api/comms.rst.txt new file mode 100644 index 00000000..44357153 --- /dev/null +++ b/_sources/api/comms.rst.txt @@ -0,0 +1,4 @@ +_comms module +============= +.. automodule:: pyflyby._comms + :members: diff --git a/_sources/api/dbg.rst.txt b/_sources/api/dbg.rst.txt new file mode 100644 index 00000000..a147161a --- /dev/null +++ b/_sources/api/dbg.rst.txt @@ -0,0 +1,4 @@ +_dbg module +=========== +.. automodule:: pyflyby._dbg + :members: diff --git a/_sources/api/file.rst.txt b/_sources/api/file.rst.txt new file mode 100644 index 00000000..0943e92c --- /dev/null +++ b/_sources/api/file.rst.txt @@ -0,0 +1,4 @@ +_file module +============ +.. automodule:: pyflyby._file + :members: diff --git a/_sources/api/flags.rst.txt b/_sources/api/flags.rst.txt new file mode 100644 index 00000000..699275e9 --- /dev/null +++ b/_sources/api/flags.rst.txt @@ -0,0 +1,6 @@ +_flags module +============= +.. automodule:: pyflyby._flags + :members: + + .. autofunction:: pyflyby._flags.CompilerFlags diff --git a/_sources/api/format.rst.txt b/_sources/api/format.rst.txt new file mode 100644 index 00000000..76e42930 --- /dev/null +++ b/_sources/api/format.rst.txt @@ -0,0 +1,4 @@ +_format module +=============== +.. automodule:: pyflyby._format + :members: \ No newline at end of file diff --git a/_sources/api/idents.rst.txt b/_sources/api/idents.rst.txt new file mode 100644 index 00000000..7ce0170f --- /dev/null +++ b/_sources/api/idents.rst.txt @@ -0,0 +1,5 @@ +_idents module +============== +.. automodule:: pyflyby._idents + :members: + :exclude-members: _my_iskeyword \ No newline at end of file diff --git a/_sources/api/importclns.rst.txt b/_sources/api/importclns.rst.txt new file mode 100644 index 00000000..435d949c --- /dev/null +++ b/_sources/api/importclns.rst.txt @@ -0,0 +1,4 @@ +_importclns module +================== +.. automodule:: pyflyby._importclns + :members: \ No newline at end of file diff --git a/_sources/api/importdb.rst.txt b/_sources/api/importdb.rst.txt new file mode 100644 index 00000000..fa5bbcf9 --- /dev/null +++ b/_sources/api/importdb.rst.txt @@ -0,0 +1,4 @@ +_importdb module +================ +.. automodule:: pyflyby._importdb + :members: \ No newline at end of file diff --git a/_sources/api/imports2s.rst.txt b/_sources/api/imports2s.rst.txt new file mode 100644 index 00000000..d7480dba --- /dev/null +++ b/_sources/api/imports2s.rst.txt @@ -0,0 +1,4 @@ +_imports2s module +================= +.. automodule:: pyflyby._imports2s + :members: \ No newline at end of file diff --git a/_sources/api/importstmt.rst.txt b/_sources/api/importstmt.rst.txt new file mode 100644 index 00000000..f3314e32 --- /dev/null +++ b/_sources/api/importstmt.rst.txt @@ -0,0 +1,4 @@ +_importstmt module +================== +.. automodule:: pyflyby._importstmt + :members: \ No newline at end of file diff --git a/_sources/api/interactive.rst.txt b/_sources/api/interactive.rst.txt new file mode 100644 index 00000000..8529552d --- /dev/null +++ b/_sources/api/interactive.rst.txt @@ -0,0 +1,4 @@ +_interactive module +=================== +.. automodule:: pyflyby._interactive + :members: \ No newline at end of file diff --git a/_sources/api/livepatch.rst.txt b/_sources/api/livepatch.rst.txt new file mode 100644 index 00000000..fa5ae23d --- /dev/null +++ b/_sources/api/livepatch.rst.txt @@ -0,0 +1,4 @@ +_livepatch module +================= +.. automodule:: pyflyby._livepatch + :members: \ No newline at end of file diff --git a/_sources/api/log.rst.txt b/_sources/api/log.rst.txt new file mode 100644 index 00000000..265db9d3 --- /dev/null +++ b/_sources/api/log.rst.txt @@ -0,0 +1,4 @@ +_log module +=========== +.. automodule:: pyflyby._log + :members: \ No newline at end of file diff --git a/_sources/api/modules.rst.txt b/_sources/api/modules.rst.txt new file mode 100644 index 00000000..c07cd96b --- /dev/null +++ b/_sources/api/modules.rst.txt @@ -0,0 +1,4 @@ +_modules module +=============== +.. automodule:: pyflyby._modules + :members: \ No newline at end of file diff --git a/_sources/api/parse.rst.txt b/_sources/api/parse.rst.txt new file mode 100644 index 00000000..eef01eed --- /dev/null +++ b/_sources/api/parse.rst.txt @@ -0,0 +1,4 @@ +_parse module +============= +.. automodule:: pyflyby._parse + :members: \ No newline at end of file diff --git a/_sources/api/py.rst.txt b/_sources/api/py.rst.txt new file mode 100644 index 00000000..abe23bdf --- /dev/null +++ b/_sources/api/py.rst.txt @@ -0,0 +1,4 @@ +_py module +========== +.. automodule:: pyflyby._py + :members: \ No newline at end of file diff --git a/_sources/api/util.rst.txt b/_sources/api/util.rst.txt new file mode 100644 index 00000000..f4c621cb --- /dev/null +++ b/_sources/api/util.rst.txt @@ -0,0 +1,4 @@ +_util module +============ +.. automodule:: pyflyby._util + :members: \ No newline at end of file diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt new file mode 100644 index 00000000..488658fb --- /dev/null +++ b/_sources/index.rst.txt @@ -0,0 +1,16 @@ +.. include:: ../README.rst + +Table of Contents +================= + +.. toctree:: + :maxdepth: -1 + + ./api/api + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/_static/_sphinx_javascript_frameworks_compat.js b/_static/_sphinx_javascript_frameworks_compat.js new file mode 100644 index 00000000..81415803 --- /dev/null +++ b/_static/_sphinx_javascript_frameworks_compat.js @@ -0,0 +1,123 @@ +/* Compatability shim for jQuery and underscores.js. + * + * Copyright Sphinx contributors + * Released under the two clause BSD licence + */ + +/** + * small helper function to urldecode strings + * + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL + */ +jQuery.urldecode = function(x) { + if (!x) { + return x + } + return decodeURIComponent(x.replace(/\+/g, ' ')); +}; + +/** + * small helper function to urlencode strings + */ +jQuery.urlencode = encodeURIComponent; + +/** + * This function returns the parsed url parameters of the + * current request. Multiple values per key are supported, + * it will always return arrays of strings for the value parts. + */ +jQuery.getQueryParameters = function(s) { + if (typeof s === 'undefined') + s = document.location.search; + var parts = s.substr(s.indexOf('?') + 1).split('&'); + var result = {}; + for (var i = 0; i < parts.length; i++) { + var tmp = parts[i].split('=', 2); + var key = jQuery.urldecode(tmp[0]); + var value = jQuery.urldecode(tmp[1]); + if (key in result) + result[key].push(value); + else + result[key] = [value]; + } + return result; +}; + +/** + * highlight a given string on a jquery object by wrapping it in + * span elements with the given class name. + */ +jQuery.fn.highlightText = function(text, className) { + function highlight(node, addItems) { + if (node.nodeType === 3) { + var val = node.nodeValue; + var pos = val.toLowerCase().indexOf(text); + if (pos >= 0 && + !jQuery(node.parentNode).hasClass(className) && + !jQuery(node.parentNode).hasClass("nohighlight")) { + var span; + var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.className = className; + } + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + node.parentNode.insertBefore(span, node.parentNode.insertBefore( + document.createTextNode(val.substr(pos + text.length)), + node.nextSibling)); + node.nodeValue = val.substr(0, pos); + if (isInSVG) { + var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); + var bbox = node.parentElement.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute('class', className); + addItems.push({ + "parent": node.parentNode, + "target": rect}); + } + } + } + else if (!jQuery(node).is("button, select, textarea")) { + jQuery.each(node.childNodes, function() { + highlight(this, addItems); + }); + } + } + var addItems = []; + var result = this.each(function() { + highlight(this, addItems); + }); + for (var i = 0; i < addItems.length; ++i) { + jQuery(addItems[i].parent).before(addItems[i].target); + } + return result; +}; + +/* + * backward compatibility for jQuery.browser + * This will be supported until firefox bug is fixed. + */ +if (!jQuery.browser) { + jQuery.uaMatch = function(ua) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || + /(webkit)[ \/]([\w.]+)/.exec(ua) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || + /(msie) ([\w.]+)/.exec(ua) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + jQuery.browser = {}; + jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; +} diff --git a/_static/basic.css b/_static/basic.css new file mode 100644 index 00000000..30fee9d0 --- /dev/null +++ b/_static/basic.css @@ -0,0 +1,925 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +div.section::after { + display: block; + content: ''; + clear: left; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; + word-wrap: break-word; + overflow-wrap : break-word; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox form.search { + overflow: hidden; +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; + padding: 0.25em; + box-sizing: border-box; +} + + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li p.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; + margin-left: auto; + margin-right: auto; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable ul { + margin-top: 0; + margin-bottom: 0; + list-style-type: none; +} + +table.indextable > tbody > tr > td > ul { + padding-left: 0em; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- domain module index --------------------------------------------------- */ + +table.modindextable td { + padding: 2px; + border-collapse: collapse; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body { + min-width: 360px; + max-width: 800px; +} + +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: auto; + -ms-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +a.headerlink { + visibility: hidden; +} + +a:visited { + color: #551A8B; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, figure.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, figure.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, figure.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.align-default, figure.align-default, .figure.align-default { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-default { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar, +aside.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px; + background-color: #ffe; + width: 40%; + float: right; + clear: right; + overflow-x: auto; +} + +p.sidebar-title { + font-weight: bold; +} + +nav.contents, +aside.topic, +div.admonition, div.topic, blockquote { + clear: left; +} + +/* -- topics ---------------------------------------------------------------- */ + +nav.contents, +aside.topic, +div.topic { + border: 1px solid #ccc; + padding: 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- content of sidebars/topics/admonitions -------------------------------- */ + +div.sidebar > :last-child, +aside.sidebar > :last-child, +nav.contents > :last-child, +aside.topic > :last-child, +div.topic > :last-child, +div.admonition > :last-child { + margin-bottom: 0; +} + +div.sidebar::after, +aside.sidebar::after, +nav.contents::after, +aside.topic::after, +div.topic::after, +div.admonition::after, +blockquote::after { + display: block; + content: ''; + clear: both; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + margin-top: 10px; + margin-bottom: 10px; + border: 0; + border-collapse: collapse; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +table.align-default { + margin-left: auto; + margin-right: auto; +} + +table caption span.caption-number { + font-style: italic; +} + +table caption span.caption-text { +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +th > :first-child, +td > :first-child { + margin-top: 0px; +} + +th > :last-child, +td > :last-child { + margin-bottom: 0px; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure, figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption, figcaption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number, +figcaption span.caption-number { + font-style: italic; +} + +div.figure p.caption span.caption-text, +figcaption span.caption-text { +} + +/* -- field list styles ----------------------------------------------------- */ + +table.field-list td, table.field-list th { + border: 0 !important; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +/* -- hlist styles ---------------------------------------------------------- */ + +table.hlist { + margin: 1em 0; +} + +table.hlist td { + vertical-align: top; +} + +/* -- object description styles --------------------------------------------- */ + +.sig { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; +} + +.sig-name, code.descname { + background-color: transparent; + font-weight: bold; +} + +.sig-name { + font-size: 1.1em; +} + +code.descname { + font-size: 1.2em; +} + +.sig-prename, code.descclassname { + background-color: transparent; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.sig-param.n { + font-style: italic; +} + +/* C++ specific styling */ + +.sig-inline.c-texpr, +.sig-inline.cpp-texpr { + font-family: unset; +} + +.sig.c .k, .sig.c .kt, +.sig.cpp .k, .sig.cpp .kt { + color: #0033B3; +} + +.sig.c .m, +.sig.cpp .m { + color: #1750EB; +} + +.sig.c .s, .sig.c .sc, +.sig.cpp .s, .sig.cpp .sc { + color: #067D17; +} + + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +:not(li) > ol > li:first-child > :first-child, +:not(li) > ul > li:first-child > :first-child { + margin-top: 0px; +} + +:not(li) > ol > li:last-child > :last-child, +:not(li) > ul > li:last-child > :last-child { + margin-bottom: 0px; +} + +ol.simple ol p, +ol.simple ul p, +ul.simple ol p, +ul.simple ul p { + margin-top: 0; +} + +ol.simple > li:not(:first-child) > p, +ul.simple > li:not(:first-child) > p { + margin-top: 0; +} + +ol.simple p, +ul.simple p { + margin-bottom: 0; +} + +aside.footnote > span, +div.citation > span { + float: left; +} +aside.footnote > span:last-of-type, +div.citation > span:last-of-type { + padding-right: 0.5em; +} +aside.footnote > p { + margin-left: 2em; +} +div.citation > p { + margin-left: 4em; +} +aside.footnote > p:last-of-type, +div.citation > p:last-of-type { + margin-bottom: 0em; +} +aside.footnote > p:last-of-type:after, +div.citation > p:last-of-type:after { + content: ""; + clear: both; +} + +dl.field-list { + display: grid; + grid-template-columns: fit-content(30%) auto; +} + +dl.field-list > dt { + font-weight: bold; + word-break: break-word; + padding-left: 0.5em; + padding-right: 5px; +} + +dl.field-list > dd { + padding-left: 0.5em; + margin-top: 0em; + margin-left: 0em; + margin-bottom: 0em; +} + +dl { + margin-bottom: 15px; +} + +dd > :first-child { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +.sig dd { + margin-top: 0px; + margin-bottom: 0px; +} + +.sig dl { + margin-top: 0px; + margin-bottom: 0px; +} + +dl > dd:last-child, +dl > dd:last-child > :last-child { + margin-bottom: 0; +} + +dt:target, span.highlighted { + background-color: #fbe54e; +} + +rect.highlighted { + fill: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +.classifier:before { + font-style: normal; + margin: 0 0.5em; + content: ":"; + display: inline-block; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +.translated { + background-color: rgba(207, 255, 207, 0.2) +} + +.untranslated { + background-color: rgba(255, 207, 207, 0.2) +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +pre, div[class*="highlight-"] { + clear: both; +} + +span.pre { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; + white-space: nowrap; +} + +div[class*="highlight-"] { + margin: 1em 0; +} + +td.linenos pre { + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + display: block; +} + +table.highlighttable tbody { + display: block; +} + +table.highlighttable tr { + display: flex; +} + +table.highlighttable td { + margin: 0; + padding: 0; +} + +table.highlighttable td.linenos { + padding-right: 0.5em; +} + +table.highlighttable td.code { + flex: 1; + overflow: hidden; +} + +.highlight .hll { + display: block; +} + +div.highlight pre, +table.highlighttable pre { + margin: 0; +} + +div.code-block-caption + div { + margin-top: 0; +} + +div.code-block-caption { + margin-top: 1em; + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +table.highlighttable td.linenos, +span.linenos, +div.highlight span.gp { /* gp: Generic.Prompt */ + user-select: none; + -webkit-user-select: text; /* Safari fallback only */ + -webkit-user-select: none; /* Chrome/Safari */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* IE10+ */ +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.code-block-caption span.caption-text { +} + +div.literal-block-wrapper { + margin: 1em 0; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +span.eqno a.headerlink { + position: absolute; + z-index: 1; +} + +div.math:hover a.headerlink { + visibility: visible; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/_static/css/badge_only.css b/_static/css/badge_only.css new file mode 100644 index 00000000..c718cee4 --- /dev/null +++ b/_static/css/badge_only.css @@ -0,0 +1 @@ +.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#FontAwesome) format("svg")}.fa:before{font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1}.fa:before,a .fa{text-decoration:inherit}.fa:before,a .fa,li .fa{display:inline-block}li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before,.icon-book:before{content:"\f02d"}.fa-caret-down:before,.icon-caret-down:before{content:"\f0d7"}.fa-caret-up:before,.icon-caret-up:before{content:"\f0d8"}.fa-caret-left:before,.icon-caret-left:before{content:"\f0d9"}.fa-caret-right:before,.icon-caret-right:before{content:"\f0da"}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60}.rst-versions .rst-current-version:after{clear:both;content:"";display:block}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}} \ No newline at end of file diff --git a/_static/css/fonts/Roboto-Slab-Bold.woff b/_static/css/fonts/Roboto-Slab-Bold.woff new file mode 100644 index 00000000..6cb60000 Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Bold.woff differ diff --git a/_static/css/fonts/Roboto-Slab-Bold.woff2 b/_static/css/fonts/Roboto-Slab-Bold.woff2 new file mode 100644 index 00000000..7059e231 Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Bold.woff2 differ diff --git a/_static/css/fonts/Roboto-Slab-Regular.woff b/_static/css/fonts/Roboto-Slab-Regular.woff new file mode 100644 index 00000000..f815f63f Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Regular.woff differ diff --git a/_static/css/fonts/Roboto-Slab-Regular.woff2 b/_static/css/fonts/Roboto-Slab-Regular.woff2 new file mode 100644 index 00000000..f2c76e5b Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Regular.woff2 differ diff --git a/_static/css/fonts/fontawesome-webfont.eot b/_static/css/fonts/fontawesome-webfont.eot new file mode 100644 index 00000000..e9f60ca9 Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.eot differ diff --git a/_static/css/fonts/fontawesome-webfont.svg b/_static/css/fonts/fontawesome-webfont.svg new file mode 100644 index 00000000..855c845e --- /dev/null +++ b/_static/css/fonts/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/_static/css/fonts/fontawesome-webfont.ttf b/_static/css/fonts/fontawesome-webfont.ttf new file mode 100644 index 00000000..35acda2f Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.ttf differ diff --git a/_static/css/fonts/fontawesome-webfont.woff b/_static/css/fonts/fontawesome-webfont.woff new file mode 100644 index 00000000..400014a4 Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.woff differ diff --git a/_static/css/fonts/fontawesome-webfont.woff2 b/_static/css/fonts/fontawesome-webfont.woff2 new file mode 100644 index 00000000..4d13fc60 Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.woff2 differ diff --git a/_static/css/fonts/lato-bold-italic.woff b/_static/css/fonts/lato-bold-italic.woff new file mode 100644 index 00000000..88ad05b9 Binary files /dev/null and b/_static/css/fonts/lato-bold-italic.woff differ diff --git a/_static/css/fonts/lato-bold-italic.woff2 b/_static/css/fonts/lato-bold-italic.woff2 new file mode 100644 index 00000000..c4e3d804 Binary files /dev/null and b/_static/css/fonts/lato-bold-italic.woff2 differ diff --git a/_static/css/fonts/lato-bold.woff b/_static/css/fonts/lato-bold.woff new file mode 100644 index 00000000..c6dff51f Binary files /dev/null and b/_static/css/fonts/lato-bold.woff differ diff --git a/_static/css/fonts/lato-bold.woff2 b/_static/css/fonts/lato-bold.woff2 new file mode 100644 index 00000000..bb195043 Binary files /dev/null and b/_static/css/fonts/lato-bold.woff2 differ diff --git a/_static/css/fonts/lato-normal-italic.woff b/_static/css/fonts/lato-normal-italic.woff new file mode 100644 index 00000000..76114bc0 Binary files /dev/null and b/_static/css/fonts/lato-normal-italic.woff differ diff --git a/_static/css/fonts/lato-normal-italic.woff2 b/_static/css/fonts/lato-normal-italic.woff2 new file mode 100644 index 00000000..3404f37e Binary files /dev/null and b/_static/css/fonts/lato-normal-italic.woff2 differ diff --git a/_static/css/fonts/lato-normal.woff b/_static/css/fonts/lato-normal.woff new file mode 100644 index 00000000..ae1307ff Binary files /dev/null and b/_static/css/fonts/lato-normal.woff differ diff --git a/_static/css/fonts/lato-normal.woff2 b/_static/css/fonts/lato-normal.woff2 new file mode 100644 index 00000000..3bf98433 Binary files /dev/null and b/_static/css/fonts/lato-normal.woff2 differ diff --git a/_static/css/theme.css b/_static/css/theme.css new file mode 100644 index 00000000..19a446a0 --- /dev/null +++ b/_static/css/theme.css @@ -0,0 +1,4 @@ +html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden],audio:not([controls]){display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;text-decoration:none}ins,mark{color:#000}mark{background:#ff0;font-style:italic;font-weight:700}.rst-content code,.rst-content tt,code,kbd,pre,samp{font-family:monospace,serif;_font-family:courier new,monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:after,q:before{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}dl,ol,ul{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure,form{margin:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{body,html,section{background:none!important}*{box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}.rst-content .toctree-wrapper>p.caption,h2,h3,p{orphans:3;widows:3}.rst-content .toctree-wrapper>p.caption,h2,h3{page-break-after:avoid}}.btn,.fa:before,.icon:before,.rst-content .admonition,.rst-content .admonition-title:before,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .code-block-caption .headerlink:before,.rst-content .danger,.rst-content .eqno .headerlink:before,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713);src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix&v=4.7.0) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa-pull-left.icon,.fa.fa-pull-left,.rst-content .code-block-caption .fa-pull-left.headerlink,.rst-content .eqno .fa-pull-left.headerlink,.rst-content .fa-pull-left.admonition-title,.rst-content code.download span.fa-pull-left:first-child,.rst-content dl dt .fa-pull-left.headerlink,.rst-content h1 .fa-pull-left.headerlink,.rst-content h2 .fa-pull-left.headerlink,.rst-content h3 .fa-pull-left.headerlink,.rst-content h4 .fa-pull-left.headerlink,.rst-content h5 .fa-pull-left.headerlink,.rst-content h6 .fa-pull-left.headerlink,.rst-content p .fa-pull-left.headerlink,.rst-content table>caption .fa-pull-left.headerlink,.rst-content tt.download span.fa-pull-left:first-child,.wy-menu-vertical li.current>a button.fa-pull-left.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-left.toctree-expand,.wy-menu-vertical li button.fa-pull-left.toctree-expand{margin-right:.3em}.fa-pull-right.icon,.fa.fa-pull-right,.rst-content .code-block-caption .fa-pull-right.headerlink,.rst-content .eqno .fa-pull-right.headerlink,.rst-content .fa-pull-right.admonition-title,.rst-content code.download span.fa-pull-right:first-child,.rst-content dl dt .fa-pull-right.headerlink,.rst-content h1 .fa-pull-right.headerlink,.rst-content h2 .fa-pull-right.headerlink,.rst-content h3 .fa-pull-right.headerlink,.rst-content h4 .fa-pull-right.headerlink,.rst-content h5 .fa-pull-right.headerlink,.rst-content h6 .fa-pull-right.headerlink,.rst-content p .fa-pull-right.headerlink,.rst-content table>caption .fa-pull-right.headerlink,.rst-content tt.download span.fa-pull-right:first-child,.wy-menu-vertical li.current>a button.fa-pull-right.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-right.toctree-expand,.wy-menu-vertical li button.fa-pull-right.toctree-expand{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.pull-left.icon,.rst-content .code-block-caption .pull-left.headerlink,.rst-content .eqno .pull-left.headerlink,.rst-content .pull-left.admonition-title,.rst-content code.download span.pull-left:first-child,.rst-content dl dt .pull-left.headerlink,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content p .pull-left.headerlink,.rst-content table>caption .pull-left.headerlink,.rst-content tt.download span.pull-left:first-child,.wy-menu-vertical li.current>a button.pull-left.toctree-expand,.wy-menu-vertical li.on a button.pull-left.toctree-expand,.wy-menu-vertical li button.pull-left.toctree-expand{margin-right:.3em}.fa.pull-right,.pull-right.icon,.rst-content .code-block-caption .pull-right.headerlink,.rst-content .eqno .pull-right.headerlink,.rst-content .pull-right.admonition-title,.rst-content code.download span.pull-right:first-child,.rst-content dl dt .pull-right.headerlink,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-content h4 .pull-right.headerlink,.rst-content h5 .pull-right.headerlink,.rst-content h6 .pull-right.headerlink,.rst-content p .pull-right.headerlink,.rst-content table>caption .pull-right.headerlink,.rst-content tt.download span.pull-right:first-child,.wy-menu-vertical li.current>a button.pull-right.toctree-expand,.wy-menu-vertical li.on a button.pull-right.toctree-expand,.wy-menu-vertical li button.pull-right.toctree-expand{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before,.icon-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-close:before,.fa-remove:before,.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-trash-o:before{content:""}.fa-home:before,.icon-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before,.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-repeat:before,.fa-rotate-right:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before,.icon-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before{content:""}.fa-check-circle:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before,.rst-content .admonition-title:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before,.icon-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-exclamation-triangle:before,.fa-warning:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before,.fa-bar-chart:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook-f:before,.fa-facebook:before{content:""}.fa-github:before,.icon-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before,.icon-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.icon-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before,.icon-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-floppy-o:before,.fa-save:before{content:""}.fa-square:before{content:""}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before,.icon-caret-down:before,.wy-dropdown .caret:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-bolt:before,.fa-flash:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-clipboard:before,.fa-paste:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-chain-broken:before,.fa-unlink:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:""}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:""}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:""}.fa-eur:before,.fa-euro:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-inr:before,.fa-rupee:before{content:""}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:""}.fa-krw:before,.fa-won:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before,.icon-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before,.fa-gratipay:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-try:before,.fa-turkish-lira:before{content:""}.fa-plus-square-o:before,.wy-menu-vertical li button.toctree-expand:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-bank:before,.fa-institution:before,.fa-university:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-pp:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:""}.fa-file-archive-o:before,.fa-file-zip-o:before{content:""}.fa-file-audio-o:before,.fa-file-sound-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:""}.fa-empire:before,.fa-ge:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-paper-plane:before,.fa-send:before{content:""}.fa-paper-plane-o:before,.fa-send-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:""}.fa-tty:before{content:""}.fa-binoculars:before{content:""}.fa-plug:before{content:""}.fa-slideshare:before{content:""}.fa-twitch:before{content:""}.fa-yelp:before{content:""}.fa-newspaper-o:before{content:""}.fa-wifi:before{content:""}.fa-calculator:before{content:""}.fa-paypal:before{content:""}.fa-google-wallet:before{content:""}.fa-cc-visa:before{content:""}.fa-cc-mastercard:before{content:""}.fa-cc-discover:before{content:""}.fa-cc-amex:before{content:""}.fa-cc-paypal:before{content:""}.fa-cc-stripe:before{content:""}.fa-bell-slash:before{content:""}.fa-bell-slash-o:before{content:""}.fa-trash:before{content:""}.fa-copyright:before{content:""}.fa-at:before{content:""}.fa-eyedropper:before{content:""}.fa-paint-brush:before{content:""}.fa-birthday-cake:before{content:""}.fa-area-chart:before{content:""}.fa-pie-chart:before{content:""}.fa-line-chart:before{content:""}.fa-lastfm:before{content:""}.fa-lastfm-square:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-bicycle:before{content:""}.fa-bus:before{content:""}.fa-ioxhost:before{content:""}.fa-angellist:before{content:""}.fa-cc:before{content:""}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:""}.fa-meanpath:before{content:""}.fa-buysellads:before{content:""}.fa-connectdevelop:before{content:""}.fa-dashcube:before{content:""}.fa-forumbee:before{content:""}.fa-leanpub:before{content:""}.fa-sellsy:before{content:""}.fa-shirtsinbulk:before{content:""}.fa-simplybuilt:before{content:""}.fa-skyatlas:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-diamond:before{content:""}.fa-ship:before{content:""}.fa-user-secret:before{content:""}.fa-motorcycle:before{content:""}.fa-street-view:before{content:""}.fa-heartbeat:before{content:""}.fa-venus:before{content:""}.fa-mars:before{content:""}.fa-mercury:before{content:""}.fa-intersex:before,.fa-transgender:before{content:""}.fa-transgender-alt:before{content:""}.fa-venus-double:before{content:""}.fa-mars-double:before{content:""}.fa-venus-mars:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-v:before{content:""}.fa-mars-stroke-h:before{content:""}.fa-neuter:before{content:""}.fa-genderless:before{content:""}.fa-facebook-official:before{content:""}.fa-pinterest-p:before{content:""}.fa-whatsapp:before{content:""}.fa-server:before{content:""}.fa-user-plus:before{content:""}.fa-user-times:before{content:""}.fa-bed:before,.fa-hotel:before{content:""}.fa-viacoin:before{content:""}.fa-train:before{content:""}.fa-subway:before{content:""}.fa-medium:before{content:""}.fa-y-combinator:before,.fa-yc:before{content:""}.fa-optin-monster:before{content:""}.fa-opencart:before{content:""}.fa-expeditedssl:before{content:""}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-three-quarters:before{content:""}.fa-battery-2:before,.fa-battery-half:before{content:""}.fa-battery-1:before,.fa-battery-quarter:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-mouse-pointer:before{content:""}.fa-i-cursor:before{content:""}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-sticky-note:before{content:""}.fa-sticky-note-o:before{content:""}.fa-cc-jcb:before{content:""}.fa-cc-diners-club:before{content:""}.fa-clone:before{content:""}.fa-balance-scale:before{content:""}.fa-hourglass-o:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass:before{content:""}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:""}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:""}.fa-hand-scissors-o:before{content:""}.fa-hand-lizard-o:before{content:""}.fa-hand-spock-o:before{content:""}.fa-hand-pointer-o:before{content:""}.fa-hand-peace-o:before{content:""}.fa-trademark:before{content:""}.fa-registered:before{content:""}.fa-creative-commons:before{content:""}.fa-gg:before{content:""}.fa-gg-circle:before{content:""}.fa-tripadvisor:before{content:""}.fa-odnoklassniki:before{content:""}.fa-odnoklassniki-square:before{content:""}.fa-get-pocket:before{content:""}.fa-wikipedia-w:before{content:""}.fa-safari:before{content:""}.fa-chrome:before{content:""}.fa-firefox:before{content:""}.fa-opera:before{content:""}.fa-internet-explorer:before{content:""}.fa-television:before,.fa-tv:before{content:""}.fa-contao:before{content:""}.fa-500px:before{content:""}.fa-amazon:before{content:""}.fa-calendar-plus-o:before{content:""}.fa-calendar-minus-o:before{content:""}.fa-calendar-times-o:before{content:""}.fa-calendar-check-o:before{content:""}.fa-industry:before{content:""}.fa-map-pin:before{content:""}.fa-map-signs:before{content:""}.fa-map-o:before{content:""}.fa-map:before{content:""}.fa-commenting:before{content:""}.fa-commenting-o:before{content:""}.fa-houzz:before{content:""}.fa-vimeo:before{content:""}.fa-black-tie:before{content:""}.fa-fonticons:before{content:""}.fa-reddit-alien:before{content:""}.fa-edge:before{content:""}.fa-credit-card-alt:before{content:""}.fa-codiepie:before{content:""}.fa-modx:before{content:""}.fa-fort-awesome:before{content:""}.fa-usb:before{content:""}.fa-product-hunt:before{content:""}.fa-mixcloud:before{content:""}.fa-scribd:before{content:""}.fa-pause-circle:before{content:""}.fa-pause-circle-o:before{content:""}.fa-stop-circle:before{content:""}.fa-stop-circle-o:before{content:""}.fa-shopping-bag:before{content:""}.fa-shopping-basket:before{content:""}.fa-hashtag:before{content:""}.fa-bluetooth:before{content:""}.fa-bluetooth-b:before{content:""}.fa-percent:before{content:""}.fa-gitlab:before,.icon-gitlab:before{content:""}.fa-wpbeginner:before{content:""}.fa-wpforms:before{content:""}.fa-envira:before{content:""}.fa-universal-access:before{content:""}.fa-wheelchair-alt:before{content:""}.fa-question-circle-o:before{content:""}.fa-blind:before{content:""}.fa-audio-description:before{content:""}.fa-volume-control-phone:before{content:""}.fa-braille:before{content:""}.fa-assistive-listening-systems:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:""}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:""}.fa-glide:before{content:""}.fa-glide-g:before{content:""}.fa-sign-language:before,.fa-signing:before{content:""}.fa-low-vision:before{content:""}.fa-viadeo:before{content:""}.fa-viadeo-square:before{content:""}.fa-snapchat:before{content:""}.fa-snapchat-ghost:before{content:""}.fa-snapchat-square:before{content:""}.fa-pied-piper:before{content:""}.fa-first-order:before{content:""}.fa-yoast:before{content:""}.fa-themeisle:before{content:""}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:""}.fa-fa:before,.fa-font-awesome:before{content:""}.fa-handshake-o:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-o:before{content:""}.fa-linode:before{content:""}.fa-address-book:before{content:""}.fa-address-book-o:before{content:""}.fa-address-card:before,.fa-vcard:before{content:""}.fa-address-card-o:before,.fa-vcard-o:before{content:""}.fa-user-circle:before{content:""}.fa-user-circle-o:before{content:""}.fa-user-o:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-drivers-license-o:before,.fa-id-card-o:before{content:""}.fa-quora:before{content:""}.fa-free-code-camp:before{content:""}.fa-telegram:before{content:""}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:""}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-shower:before{content:""}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:""}.fa-podcast:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:""}.fa-bandcamp:before{content:""}.fa-grav:before{content:""}.fa-etsy:before{content:""}.fa-imdb:before{content:""}.fa-ravelry:before{content:""}.fa-eercast:before{content:""}.fa-microchip:before{content:""}.fa-snowflake-o:before{content:""}.fa-superpowers:before{content:""}.fa-wpexplorer:before{content:""}.fa-meetup:before{content:""}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-dropdown .caret,.wy-inline-validate.wy-inline-validate-danger .wy-input-context,.wy-inline-validate.wy-inline-validate-info .wy-input-context,.wy-inline-validate.wy-inline-validate-success .wy-input-context,.wy-inline-validate.wy-inline-validate-warning .wy-input-context,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{font-family:inherit}.fa:before,.icon:before,.rst-content .admonition-title:before,.rst-content .code-block-caption .headerlink:before,.rst-content .eqno .headerlink:before,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before{font-family:FontAwesome;display:inline-block;font-style:normal;font-weight:400;line-height:1;text-decoration:inherit}.rst-content .code-block-caption a .headerlink,.rst-content .eqno a .headerlink,.rst-content a .admonition-title,.rst-content code.download a span:first-child,.rst-content dl dt a .headerlink,.rst-content h1 a .headerlink,.rst-content h2 a .headerlink,.rst-content h3 a .headerlink,.rst-content h4 a .headerlink,.rst-content h5 a .headerlink,.rst-content h6 a .headerlink,.rst-content p.caption a .headerlink,.rst-content p a .headerlink,.rst-content table>caption a .headerlink,.rst-content tt.download a span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li a button.toctree-expand,a .fa,a .icon,a .rst-content .admonition-title,a .rst-content .code-block-caption .headerlink,a .rst-content .eqno .headerlink,a .rst-content code.download span:first-child,a .rst-content dl dt .headerlink,a .rst-content h1 .headerlink,a .rst-content h2 .headerlink,a .rst-content h3 .headerlink,a .rst-content h4 .headerlink,a .rst-content h5 .headerlink,a .rst-content h6 .headerlink,a .rst-content p.caption .headerlink,a .rst-content p .headerlink,a .rst-content table>caption .headerlink,a .rst-content tt.download span:first-child,a .wy-menu-vertical li button.toctree-expand{display:inline-block;text-decoration:inherit}.btn .fa,.btn .icon,.btn .rst-content .admonition-title,.btn .rst-content .code-block-caption .headerlink,.btn .rst-content .eqno .headerlink,.btn .rst-content code.download span:first-child,.btn .rst-content dl dt .headerlink,.btn .rst-content h1 .headerlink,.btn .rst-content h2 .headerlink,.btn .rst-content h3 .headerlink,.btn .rst-content h4 .headerlink,.btn .rst-content h5 .headerlink,.btn .rst-content h6 .headerlink,.btn .rst-content p .headerlink,.btn .rst-content table>caption .headerlink,.btn .rst-content tt.download span:first-child,.btn .wy-menu-vertical li.current>a button.toctree-expand,.btn .wy-menu-vertical li.on a button.toctree-expand,.btn .wy-menu-vertical li button.toctree-expand,.nav .fa,.nav .icon,.nav .rst-content .admonition-title,.nav .rst-content .code-block-caption .headerlink,.nav .rst-content .eqno .headerlink,.nav .rst-content code.download span:first-child,.nav .rst-content dl dt .headerlink,.nav .rst-content h1 .headerlink,.nav .rst-content h2 .headerlink,.nav .rst-content h3 .headerlink,.nav .rst-content h4 .headerlink,.nav .rst-content h5 .headerlink,.nav .rst-content h6 .headerlink,.nav .rst-content p .headerlink,.nav .rst-content table>caption .headerlink,.nav .rst-content tt.download span:first-child,.nav .wy-menu-vertical li.current>a button.toctree-expand,.nav .wy-menu-vertical li.on a button.toctree-expand,.nav .wy-menu-vertical li button.toctree-expand,.rst-content .btn .admonition-title,.rst-content .code-block-caption .btn .headerlink,.rst-content .code-block-caption .nav .headerlink,.rst-content .eqno .btn .headerlink,.rst-content .eqno .nav .headerlink,.rst-content .nav .admonition-title,.rst-content code.download .btn span:first-child,.rst-content code.download .nav span:first-child,.rst-content dl dt .btn .headerlink,.rst-content dl dt .nav .headerlink,.rst-content h1 .btn .headerlink,.rst-content h1 .nav .headerlink,.rst-content h2 .btn .headerlink,.rst-content h2 .nav .headerlink,.rst-content h3 .btn .headerlink,.rst-content h3 .nav .headerlink,.rst-content h4 .btn .headerlink,.rst-content h4 .nav .headerlink,.rst-content h5 .btn .headerlink,.rst-content h5 .nav .headerlink,.rst-content h6 .btn .headerlink,.rst-content h6 .nav .headerlink,.rst-content p .btn .headerlink,.rst-content p .nav .headerlink,.rst-content table>caption .btn .headerlink,.rst-content table>caption .nav .headerlink,.rst-content tt.download .btn span:first-child,.rst-content tt.download .nav span:first-child,.wy-menu-vertical li .btn button.toctree-expand,.wy-menu-vertical li.current>a .btn button.toctree-expand,.wy-menu-vertical li.current>a .nav button.toctree-expand,.wy-menu-vertical li .nav button.toctree-expand,.wy-menu-vertical li.on a .btn button.toctree-expand,.wy-menu-vertical li.on a .nav button.toctree-expand{display:inline}.btn .fa-large.icon,.btn .fa.fa-large,.btn .rst-content .code-block-caption .fa-large.headerlink,.btn .rst-content .eqno .fa-large.headerlink,.btn .rst-content .fa-large.admonition-title,.btn .rst-content code.download span.fa-large:first-child,.btn .rst-content dl dt .fa-large.headerlink,.btn .rst-content h1 .fa-large.headerlink,.btn .rst-content h2 .fa-large.headerlink,.btn .rst-content h3 .fa-large.headerlink,.btn .rst-content h4 .fa-large.headerlink,.btn .rst-content h5 .fa-large.headerlink,.btn .rst-content h6 .fa-large.headerlink,.btn .rst-content p .fa-large.headerlink,.btn .rst-content table>caption .fa-large.headerlink,.btn .rst-content tt.download span.fa-large:first-child,.btn .wy-menu-vertical li button.fa-large.toctree-expand,.nav .fa-large.icon,.nav .fa.fa-large,.nav .rst-content .code-block-caption .fa-large.headerlink,.nav .rst-content .eqno .fa-large.headerlink,.nav .rst-content .fa-large.admonition-title,.nav .rst-content code.download span.fa-large:first-child,.nav .rst-content dl dt .fa-large.headerlink,.nav .rst-content h1 .fa-large.headerlink,.nav .rst-content h2 .fa-large.headerlink,.nav .rst-content h3 .fa-large.headerlink,.nav .rst-content h4 .fa-large.headerlink,.nav .rst-content h5 .fa-large.headerlink,.nav .rst-content h6 .fa-large.headerlink,.nav .rst-content p .fa-large.headerlink,.nav .rst-content table>caption .fa-large.headerlink,.nav .rst-content tt.download span.fa-large:first-child,.nav .wy-menu-vertical li button.fa-large.toctree-expand,.rst-content .btn .fa-large.admonition-title,.rst-content .code-block-caption .btn .fa-large.headerlink,.rst-content .code-block-caption .nav .fa-large.headerlink,.rst-content .eqno .btn .fa-large.headerlink,.rst-content .eqno .nav .fa-large.headerlink,.rst-content .nav .fa-large.admonition-title,.rst-content code.download .btn span.fa-large:first-child,.rst-content code.download .nav span.fa-large:first-child,.rst-content dl dt .btn .fa-large.headerlink,.rst-content dl dt .nav .fa-large.headerlink,.rst-content h1 .btn .fa-large.headerlink,.rst-content h1 .nav .fa-large.headerlink,.rst-content h2 .btn .fa-large.headerlink,.rst-content h2 .nav .fa-large.headerlink,.rst-content h3 .btn .fa-large.headerlink,.rst-content h3 .nav .fa-large.headerlink,.rst-content h4 .btn .fa-large.headerlink,.rst-content h4 .nav .fa-large.headerlink,.rst-content h5 .btn .fa-large.headerlink,.rst-content h5 .nav .fa-large.headerlink,.rst-content h6 .btn .fa-large.headerlink,.rst-content h6 .nav .fa-large.headerlink,.rst-content p .btn .fa-large.headerlink,.rst-content p .nav .fa-large.headerlink,.rst-content table>caption .btn .fa-large.headerlink,.rst-content table>caption .nav .fa-large.headerlink,.rst-content tt.download .btn span.fa-large:first-child,.rst-content tt.download .nav span.fa-large:first-child,.wy-menu-vertical li .btn button.fa-large.toctree-expand,.wy-menu-vertical li .nav button.fa-large.toctree-expand{line-height:.9em}.btn .fa-spin.icon,.btn .fa.fa-spin,.btn .rst-content .code-block-caption .fa-spin.headerlink,.btn .rst-content .eqno .fa-spin.headerlink,.btn .rst-content .fa-spin.admonition-title,.btn .rst-content code.download span.fa-spin:first-child,.btn .rst-content dl dt .fa-spin.headerlink,.btn .rst-content h1 .fa-spin.headerlink,.btn .rst-content h2 .fa-spin.headerlink,.btn .rst-content h3 .fa-spin.headerlink,.btn .rst-content h4 .fa-spin.headerlink,.btn .rst-content h5 .fa-spin.headerlink,.btn .rst-content h6 .fa-spin.headerlink,.btn .rst-content p .fa-spin.headerlink,.btn .rst-content table>caption .fa-spin.headerlink,.btn .rst-content tt.download span.fa-spin:first-child,.btn .wy-menu-vertical li button.fa-spin.toctree-expand,.nav .fa-spin.icon,.nav .fa.fa-spin,.nav .rst-content .code-block-caption .fa-spin.headerlink,.nav .rst-content .eqno .fa-spin.headerlink,.nav .rst-content .fa-spin.admonition-title,.nav .rst-content code.download span.fa-spin:first-child,.nav .rst-content dl dt .fa-spin.headerlink,.nav .rst-content h1 .fa-spin.headerlink,.nav .rst-content h2 .fa-spin.headerlink,.nav .rst-content h3 .fa-spin.headerlink,.nav .rst-content h4 .fa-spin.headerlink,.nav .rst-content h5 .fa-spin.headerlink,.nav .rst-content h6 .fa-spin.headerlink,.nav .rst-content p .fa-spin.headerlink,.nav .rst-content table>caption .fa-spin.headerlink,.nav .rst-content tt.download span.fa-spin:first-child,.nav .wy-menu-vertical li button.fa-spin.toctree-expand,.rst-content .btn .fa-spin.admonition-title,.rst-content .code-block-caption .btn .fa-spin.headerlink,.rst-content .code-block-caption .nav .fa-spin.headerlink,.rst-content .eqno .btn .fa-spin.headerlink,.rst-content .eqno .nav .fa-spin.headerlink,.rst-content .nav .fa-spin.admonition-title,.rst-content code.download .btn span.fa-spin:first-child,.rst-content code.download .nav span.fa-spin:first-child,.rst-content dl dt .btn .fa-spin.headerlink,.rst-content dl dt .nav .fa-spin.headerlink,.rst-content h1 .btn .fa-spin.headerlink,.rst-content h1 .nav .fa-spin.headerlink,.rst-content h2 .btn .fa-spin.headerlink,.rst-content h2 .nav .fa-spin.headerlink,.rst-content h3 .btn .fa-spin.headerlink,.rst-content h3 .nav .fa-spin.headerlink,.rst-content h4 .btn .fa-spin.headerlink,.rst-content h4 .nav .fa-spin.headerlink,.rst-content h5 .btn .fa-spin.headerlink,.rst-content h5 .nav .fa-spin.headerlink,.rst-content h6 .btn .fa-spin.headerlink,.rst-content h6 .nav .fa-spin.headerlink,.rst-content p .btn .fa-spin.headerlink,.rst-content p .nav .fa-spin.headerlink,.rst-content table>caption .btn .fa-spin.headerlink,.rst-content table>caption .nav .fa-spin.headerlink,.rst-content tt.download .btn span.fa-spin:first-child,.rst-content tt.download .nav span.fa-spin:first-child,.wy-menu-vertical li .btn button.fa-spin.toctree-expand,.wy-menu-vertical li .nav button.fa-spin.toctree-expand{display:inline-block}.btn.fa:before,.btn.icon:before,.rst-content .btn.admonition-title:before,.rst-content .code-block-caption .btn.headerlink:before,.rst-content .eqno .btn.headerlink:before,.rst-content code.download span.btn:first-child:before,.rst-content dl dt .btn.headerlink:before,.rst-content h1 .btn.headerlink:before,.rst-content h2 .btn.headerlink:before,.rst-content h3 .btn.headerlink:before,.rst-content h4 .btn.headerlink:before,.rst-content h5 .btn.headerlink:before,.rst-content h6 .btn.headerlink:before,.rst-content p .btn.headerlink:before,.rst-content table>caption .btn.headerlink:before,.rst-content tt.download span.btn:first-child:before,.wy-menu-vertical li button.btn.toctree-expand:before{opacity:.5;-webkit-transition:opacity .05s ease-in;-moz-transition:opacity .05s ease-in;transition:opacity .05s ease-in}.btn.fa:hover:before,.btn.icon:hover:before,.rst-content .btn.admonition-title:hover:before,.rst-content .code-block-caption .btn.headerlink:hover:before,.rst-content .eqno .btn.headerlink:hover:before,.rst-content code.download span.btn:first-child:hover:before,.rst-content dl dt .btn.headerlink:hover:before,.rst-content h1 .btn.headerlink:hover:before,.rst-content h2 .btn.headerlink:hover:before,.rst-content h3 .btn.headerlink:hover:before,.rst-content h4 .btn.headerlink:hover:before,.rst-content h5 .btn.headerlink:hover:before,.rst-content h6 .btn.headerlink:hover:before,.rst-content p .btn.headerlink:hover:before,.rst-content table>caption .btn.headerlink:hover:before,.rst-content tt.download span.btn:first-child:hover:before,.wy-menu-vertical li button.btn.toctree-expand:hover:before{opacity:1}.btn-mini .fa:before,.btn-mini .icon:before,.btn-mini .rst-content .admonition-title:before,.btn-mini .rst-content .code-block-caption .headerlink:before,.btn-mini .rst-content .eqno .headerlink:before,.btn-mini .rst-content code.download span:first-child:before,.btn-mini .rst-content dl dt .headerlink:before,.btn-mini .rst-content h1 .headerlink:before,.btn-mini .rst-content h2 .headerlink:before,.btn-mini .rst-content h3 .headerlink:before,.btn-mini .rst-content h4 .headerlink:before,.btn-mini .rst-content h5 .headerlink:before,.btn-mini .rst-content h6 .headerlink:before,.btn-mini .rst-content p .headerlink:before,.btn-mini .rst-content table>caption .headerlink:before,.btn-mini .rst-content tt.download span:first-child:before,.btn-mini .wy-menu-vertical li button.toctree-expand:before,.rst-content .btn-mini .admonition-title:before,.rst-content .code-block-caption .btn-mini .headerlink:before,.rst-content .eqno .btn-mini .headerlink:before,.rst-content code.download .btn-mini span:first-child:before,.rst-content dl dt .btn-mini .headerlink:before,.rst-content h1 .btn-mini .headerlink:before,.rst-content h2 .btn-mini .headerlink:before,.rst-content h3 .btn-mini .headerlink:before,.rst-content h4 .btn-mini .headerlink:before,.rst-content h5 .btn-mini .headerlink:before,.rst-content h6 .btn-mini .headerlink:before,.rst-content p .btn-mini .headerlink:before,.rst-content table>caption .btn-mini .headerlink:before,.rst-content tt.download .btn-mini span:first-child:before,.wy-menu-vertical li .btn-mini button.toctree-expand:before{font-size:14px;vertical-align:-15%}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.wy-alert{padding:12px;line-height:24px;margin-bottom:24px;background:#e7f2fa}.rst-content .admonition-title,.wy-alert-title{font-weight:700;display:block;color:#fff;background:#6ab0de;padding:6px 12px;margin:-12px -12px 12px}.rst-content .danger,.rst-content .error,.rst-content .wy-alert-danger.admonition,.rst-content .wy-alert-danger.admonition-todo,.rst-content .wy-alert-danger.attention,.rst-content .wy-alert-danger.caution,.rst-content .wy-alert-danger.hint,.rst-content .wy-alert-danger.important,.rst-content .wy-alert-danger.note,.rst-content .wy-alert-danger.seealso,.rst-content .wy-alert-danger.tip,.rst-content .wy-alert-danger.warning,.wy-alert.wy-alert-danger{background:#fdf3f2}.rst-content .danger .admonition-title,.rst-content .danger .wy-alert-title,.rst-content .error .admonition-title,.rst-content .error .wy-alert-title,.rst-content .wy-alert-danger.admonition-todo .admonition-title,.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,.rst-content .wy-alert-danger.admonition .admonition-title,.rst-content .wy-alert-danger.admonition .wy-alert-title,.rst-content .wy-alert-danger.attention .admonition-title,.rst-content .wy-alert-danger.attention .wy-alert-title,.rst-content .wy-alert-danger.caution .admonition-title,.rst-content .wy-alert-danger.caution .wy-alert-title,.rst-content .wy-alert-danger.hint .admonition-title,.rst-content .wy-alert-danger.hint .wy-alert-title,.rst-content .wy-alert-danger.important .admonition-title,.rst-content .wy-alert-danger.important .wy-alert-title,.rst-content .wy-alert-danger.note .admonition-title,.rst-content .wy-alert-danger.note .wy-alert-title,.rst-content .wy-alert-danger.seealso .admonition-title,.rst-content .wy-alert-danger.seealso .wy-alert-title,.rst-content .wy-alert-danger.tip .admonition-title,.rst-content .wy-alert-danger.tip .wy-alert-title,.rst-content .wy-alert-danger.warning .admonition-title,.rst-content .wy-alert-danger.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-danger .admonition-title,.wy-alert.wy-alert-danger .rst-content .admonition-title,.wy-alert.wy-alert-danger .wy-alert-title{background:#f29f97}.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .warning,.rst-content .wy-alert-warning.admonition,.rst-content .wy-alert-warning.danger,.rst-content .wy-alert-warning.error,.rst-content .wy-alert-warning.hint,.rst-content .wy-alert-warning.important,.rst-content .wy-alert-warning.note,.rst-content .wy-alert-warning.seealso,.rst-content .wy-alert-warning.tip,.wy-alert.wy-alert-warning{background:#ffedcc}.rst-content .admonition-todo .admonition-title,.rst-content .admonition-todo .wy-alert-title,.rst-content .attention .admonition-title,.rst-content .attention .wy-alert-title,.rst-content .caution .admonition-title,.rst-content .caution .wy-alert-title,.rst-content .warning .admonition-title,.rst-content .warning .wy-alert-title,.rst-content .wy-alert-warning.admonition .admonition-title,.rst-content .wy-alert-warning.admonition .wy-alert-title,.rst-content .wy-alert-warning.danger .admonition-title,.rst-content .wy-alert-warning.danger .wy-alert-title,.rst-content .wy-alert-warning.error .admonition-title,.rst-content .wy-alert-warning.error .wy-alert-title,.rst-content .wy-alert-warning.hint .admonition-title,.rst-content .wy-alert-warning.hint .wy-alert-title,.rst-content .wy-alert-warning.important .admonition-title,.rst-content .wy-alert-warning.important .wy-alert-title,.rst-content .wy-alert-warning.note .admonition-title,.rst-content .wy-alert-warning.note .wy-alert-title,.rst-content .wy-alert-warning.seealso .admonition-title,.rst-content .wy-alert-warning.seealso .wy-alert-title,.rst-content .wy-alert-warning.tip .admonition-title,.rst-content .wy-alert-warning.tip .wy-alert-title,.rst-content .wy-alert.wy-alert-warning .admonition-title,.wy-alert.wy-alert-warning .rst-content .admonition-title,.wy-alert.wy-alert-warning .wy-alert-title{background:#f0b37e}.rst-content .note,.rst-content .seealso,.rst-content .wy-alert-info.admonition,.rst-content .wy-alert-info.admonition-todo,.rst-content .wy-alert-info.attention,.rst-content .wy-alert-info.caution,.rst-content .wy-alert-info.danger,.rst-content .wy-alert-info.error,.rst-content .wy-alert-info.hint,.rst-content .wy-alert-info.important,.rst-content .wy-alert-info.tip,.rst-content .wy-alert-info.warning,.wy-alert.wy-alert-info{background:#e7f2fa}.rst-content .note .admonition-title,.rst-content .note .wy-alert-title,.rst-content .seealso .admonition-title,.rst-content .seealso .wy-alert-title,.rst-content .wy-alert-info.admonition-todo .admonition-title,.rst-content .wy-alert-info.admonition-todo .wy-alert-title,.rst-content .wy-alert-info.admonition .admonition-title,.rst-content .wy-alert-info.admonition .wy-alert-title,.rst-content .wy-alert-info.attention .admonition-title,.rst-content .wy-alert-info.attention .wy-alert-title,.rst-content .wy-alert-info.caution .admonition-title,.rst-content .wy-alert-info.caution .wy-alert-title,.rst-content .wy-alert-info.danger .admonition-title,.rst-content .wy-alert-info.danger .wy-alert-title,.rst-content .wy-alert-info.error .admonition-title,.rst-content .wy-alert-info.error .wy-alert-title,.rst-content .wy-alert-info.hint .admonition-title,.rst-content .wy-alert-info.hint .wy-alert-title,.rst-content .wy-alert-info.important .admonition-title,.rst-content .wy-alert-info.important .wy-alert-title,.rst-content .wy-alert-info.tip .admonition-title,.rst-content .wy-alert-info.tip .wy-alert-title,.rst-content .wy-alert-info.warning .admonition-title,.rst-content .wy-alert-info.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-info .admonition-title,.wy-alert.wy-alert-info .rst-content .admonition-title,.wy-alert.wy-alert-info .wy-alert-title{background:#6ab0de}.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .wy-alert-success.admonition,.rst-content .wy-alert-success.admonition-todo,.rst-content .wy-alert-success.attention,.rst-content .wy-alert-success.caution,.rst-content .wy-alert-success.danger,.rst-content .wy-alert-success.error,.rst-content .wy-alert-success.note,.rst-content .wy-alert-success.seealso,.rst-content .wy-alert-success.warning,.wy-alert.wy-alert-success{background:#dbfaf4}.rst-content .hint .admonition-title,.rst-content .hint .wy-alert-title,.rst-content .important .admonition-title,.rst-content .important .wy-alert-title,.rst-content .tip .admonition-title,.rst-content .tip .wy-alert-title,.rst-content .wy-alert-success.admonition-todo .admonition-title,.rst-content .wy-alert-success.admonition-todo .wy-alert-title,.rst-content .wy-alert-success.admonition .admonition-title,.rst-content .wy-alert-success.admonition .wy-alert-title,.rst-content .wy-alert-success.attention .admonition-title,.rst-content .wy-alert-success.attention .wy-alert-title,.rst-content .wy-alert-success.caution .admonition-title,.rst-content .wy-alert-success.caution .wy-alert-title,.rst-content .wy-alert-success.danger .admonition-title,.rst-content .wy-alert-success.danger .wy-alert-title,.rst-content .wy-alert-success.error .admonition-title,.rst-content .wy-alert-success.error .wy-alert-title,.rst-content .wy-alert-success.note .admonition-title,.rst-content .wy-alert-success.note .wy-alert-title,.rst-content .wy-alert-success.seealso .admonition-title,.rst-content .wy-alert-success.seealso .wy-alert-title,.rst-content .wy-alert-success.warning .admonition-title,.rst-content .wy-alert-success.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-success .admonition-title,.wy-alert.wy-alert-success .rst-content .admonition-title,.wy-alert.wy-alert-success .wy-alert-title{background:#1abc9c}.rst-content .wy-alert-neutral.admonition,.rst-content .wy-alert-neutral.admonition-todo,.rst-content .wy-alert-neutral.attention,.rst-content .wy-alert-neutral.caution,.rst-content .wy-alert-neutral.danger,.rst-content .wy-alert-neutral.error,.rst-content .wy-alert-neutral.hint,.rst-content .wy-alert-neutral.important,.rst-content .wy-alert-neutral.note,.rst-content .wy-alert-neutral.seealso,.rst-content .wy-alert-neutral.tip,.rst-content .wy-alert-neutral.warning,.wy-alert.wy-alert-neutral{background:#f3f6f6}.rst-content .wy-alert-neutral.admonition-todo .admonition-title,.rst-content .wy-alert-neutral.admonition-todo .wy-alert-title,.rst-content .wy-alert-neutral.admonition .admonition-title,.rst-content .wy-alert-neutral.admonition .wy-alert-title,.rst-content .wy-alert-neutral.attention .admonition-title,.rst-content .wy-alert-neutral.attention .wy-alert-title,.rst-content .wy-alert-neutral.caution .admonition-title,.rst-content .wy-alert-neutral.caution .wy-alert-title,.rst-content .wy-alert-neutral.danger .admonition-title,.rst-content .wy-alert-neutral.danger .wy-alert-title,.rst-content .wy-alert-neutral.error .admonition-title,.rst-content .wy-alert-neutral.error .wy-alert-title,.rst-content .wy-alert-neutral.hint .admonition-title,.rst-content .wy-alert-neutral.hint .wy-alert-title,.rst-content .wy-alert-neutral.important .admonition-title,.rst-content .wy-alert-neutral.important .wy-alert-title,.rst-content .wy-alert-neutral.note .admonition-title,.rst-content .wy-alert-neutral.note .wy-alert-title,.rst-content .wy-alert-neutral.seealso .admonition-title,.rst-content .wy-alert-neutral.seealso .wy-alert-title,.rst-content .wy-alert-neutral.tip .admonition-title,.rst-content .wy-alert-neutral.tip .wy-alert-title,.rst-content .wy-alert-neutral.warning .admonition-title,.rst-content .wy-alert-neutral.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-neutral .admonition-title,.wy-alert.wy-alert-neutral .rst-content .admonition-title,.wy-alert.wy-alert-neutral .wy-alert-title{color:#404040;background:#e1e4e5}.rst-content .wy-alert-neutral.admonition-todo a,.rst-content .wy-alert-neutral.admonition a,.rst-content .wy-alert-neutral.attention a,.rst-content .wy-alert-neutral.caution a,.rst-content .wy-alert-neutral.danger a,.rst-content .wy-alert-neutral.error a,.rst-content .wy-alert-neutral.hint a,.rst-content .wy-alert-neutral.important a,.rst-content .wy-alert-neutral.note a,.rst-content .wy-alert-neutral.seealso a,.rst-content .wy-alert-neutral.tip a,.rst-content .wy-alert-neutral.warning a,.wy-alert.wy-alert-neutral a{color:#2980b9}.rst-content .admonition-todo p:last-child,.rst-content .admonition p:last-child,.rst-content .attention p:last-child,.rst-content .caution p:last-child,.rst-content .danger p:last-child,.rst-content .error p:last-child,.rst-content .hint p:last-child,.rst-content .important p:last-child,.rst-content .note p:last-child,.rst-content .seealso p:last-child,.rst-content .tip p:last-child,.rst-content .warning p:last-child,.wy-alert p:last-child{margin-bottom:0}.wy-tray-container{position:fixed;bottom:0;left:0;z-index:600}.wy-tray-container li{display:block;width:300px;background:transparent;color:#fff;text-align:center;box-shadow:0 5px 5px 0 rgba(0,0,0,.1);padding:0 24px;min-width:20%;opacity:0;height:0;line-height:56px;overflow:hidden;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}.wy-tray-container li.wy-tray-item-success{background:#27ae60}.wy-tray-container li.wy-tray-item-info{background:#2980b9}.wy-tray-container li.wy-tray-item-warning{background:#e67e22}.wy-tray-container li.wy-tray-item-danger{background:#e74c3c}.wy-tray-container li.on{opacity:1;height:56px}@media screen and (max-width:768px){.wy-tray-container{bottom:auto;top:0;width:100%}.wy-tray-container li{width:100%}}button{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;cursor:pointer;line-height:normal;-webkit-appearance:button;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button[disabled]{cursor:default}.btn{display:inline-block;border-radius:2px;line-height:normal;white-space:nowrap;text-align:center;cursor:pointer;font-size:100%;padding:6px 12px 8px;color:#fff;border:1px solid rgba(0,0,0,.1);background-color:#27ae60;text-decoration:none;font-weight:400;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 2px -1px hsla(0,0%,100%,.5),inset 0 -2px 0 0 rgba(0,0,0,.1);outline-none:false;vertical-align:middle;*display:inline;zoom:1;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .1s linear;-moz-transition:all .1s linear;transition:all .1s linear}.btn-hover{background:#2e8ece;color:#fff}.btn:hover{background:#2cc36b;color:#fff}.btn:focus{background:#2cc36b;outline:0}.btn:active{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.05),inset 0 2px 0 0 rgba(0,0,0,.1);padding:8px 12px 6px}.btn:visited{color:#fff}.btn-disabled,.btn-disabled:active,.btn-disabled:focus,.btn-disabled:hover,.btn:disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none}.btn::-moz-focus-inner{padding:0;border:0}.btn-small{font-size:80%}.btn-info{background-color:#2980b9!important}.btn-info:hover{background-color:#2e8ece!important}.btn-neutral{background-color:#f3f6f6!important;color:#404040!important}.btn-neutral:hover{background-color:#e5ebeb!important;color:#404040}.btn-neutral:visited{color:#404040!important}.btn-success{background-color:#27ae60!important}.btn-success:hover{background-color:#295!important}.btn-danger{background-color:#e74c3c!important}.btn-danger:hover{background-color:#ea6153!important}.btn-warning{background-color:#e67e22!important}.btn-warning:hover{background-color:#e98b39!important}.btn-invert{background-color:#222}.btn-invert:hover{background-color:#2f2f2f!important}.btn-link{background-color:transparent!important;color:#2980b9;box-shadow:none;border-color:transparent!important}.btn-link:active,.btn-link:hover{background-color:transparent!important;color:#409ad5!important;box-shadow:none}.btn-link:visited{color:#9b59b6}.wy-btn-group .btn,.wy-control .btn{vertical-align:middle}.wy-btn-group{margin-bottom:24px;*zoom:1}.wy-btn-group:after,.wy-btn-group:before{display:table;content:""}.wy-btn-group:after{clear:both}.wy-dropdown{position:relative;display:inline-block}.wy-dropdown-active .wy-dropdown-menu{display:block}.wy-dropdown-menu{position:absolute;left:0;display:none;float:left;top:100%;min-width:100%;background:#fcfcfc;z-index:100;border:1px solid #cfd7dd;box-shadow:0 2px 2px 0 rgba(0,0,0,.1);padding:12px}.wy-dropdown-menu>dd>a{display:block;clear:both;color:#404040;white-space:nowrap;font-size:90%;padding:0 12px;cursor:pointer}.wy-dropdown-menu>dd>a:hover{background:#2980b9;color:#fff}.wy-dropdown-menu>dd.divider{border-top:1px solid #cfd7dd;margin:6px 0}.wy-dropdown-menu>dd.search{padding-bottom:12px}.wy-dropdown-menu>dd.search input[type=search]{width:100%}.wy-dropdown-menu>dd.call-to-action{background:#e3e3e3;text-transform:uppercase;font-weight:500;font-size:80%}.wy-dropdown-menu>dd.call-to-action:hover{background:#e3e3e3}.wy-dropdown-menu>dd.call-to-action .btn{color:#fff}.wy-dropdown.wy-dropdown-up .wy-dropdown-menu{bottom:100%;top:auto;left:auto;right:0}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu{background:#fcfcfc;margin-top:2px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a{padding:6px 12px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover{background:#2980b9;color:#fff}.wy-dropdown.wy-dropdown-left .wy-dropdown-menu{right:0;left:auto;text-align:right}.wy-dropdown-arrow:before{content:" ";border-bottom:5px solid #f5f5f5;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;display:block;top:-4px;left:50%;margin-left:-3px}.wy-dropdown-arrow.wy-dropdown-arrow-left:before{left:11px}.wy-form-stacked select{display:block}.wy-form-aligned .wy-help-inline,.wy-form-aligned input,.wy-form-aligned label,.wy-form-aligned select,.wy-form-aligned textarea{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-form-aligned .wy-control-group>label{display:inline-block;vertical-align:middle;width:10em;margin:6px 12px 0 0;float:left}.wy-form-aligned .wy-control{float:left}.wy-form-aligned .wy-control label{display:block}.wy-form-aligned .wy-control select{margin-top:6px}fieldset{margin:0}fieldset,legend{border:0;padding:0}legend{width:100%;white-space:normal;margin-bottom:24px;font-size:150%;*margin-left:-7px}label,legend{display:block}label{margin:0 0 .3125em;color:#333;font-size:90%}input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}.wy-control-group{margin-bottom:24px;max-width:1200px;margin-left:auto;margin-right:auto;*zoom:1}.wy-control-group:after,.wy-control-group:before{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group.wy-control-group-required>label:after{content:" *";color:#e74c3c}.wy-control-group .wy-form-full,.wy-control-group .wy-form-halves,.wy-control-group .wy-form-thirds{padding-bottom:12px}.wy-control-group .wy-form-full input[type=color],.wy-control-group .wy-form-full input[type=date],.wy-control-group .wy-form-full input[type=datetime-local],.wy-control-group .wy-form-full input[type=datetime],.wy-control-group .wy-form-full input[type=email],.wy-control-group .wy-form-full input[type=month],.wy-control-group .wy-form-full input[type=number],.wy-control-group .wy-form-full input[type=password],.wy-control-group .wy-form-full input[type=search],.wy-control-group .wy-form-full input[type=tel],.wy-control-group .wy-form-full input[type=text],.wy-control-group .wy-form-full input[type=time],.wy-control-group .wy-form-full input[type=url],.wy-control-group .wy-form-full input[type=week],.wy-control-group .wy-form-full select,.wy-control-group .wy-form-halves input[type=color],.wy-control-group .wy-form-halves input[type=date],.wy-control-group .wy-form-halves input[type=datetime-local],.wy-control-group .wy-form-halves input[type=datetime],.wy-control-group .wy-form-halves input[type=email],.wy-control-group .wy-form-halves input[type=month],.wy-control-group .wy-form-halves input[type=number],.wy-control-group .wy-form-halves input[type=password],.wy-control-group .wy-form-halves input[type=search],.wy-control-group .wy-form-halves input[type=tel],.wy-control-group .wy-form-halves input[type=text],.wy-control-group .wy-form-halves input[type=time],.wy-control-group .wy-form-halves input[type=url],.wy-control-group .wy-form-halves input[type=week],.wy-control-group .wy-form-halves select,.wy-control-group .wy-form-thirds input[type=color],.wy-control-group .wy-form-thirds input[type=date],.wy-control-group .wy-form-thirds input[type=datetime-local],.wy-control-group .wy-form-thirds input[type=datetime],.wy-control-group .wy-form-thirds input[type=email],.wy-control-group .wy-form-thirds input[type=month],.wy-control-group .wy-form-thirds input[type=number],.wy-control-group .wy-form-thirds input[type=password],.wy-control-group .wy-form-thirds input[type=search],.wy-control-group .wy-form-thirds input[type=tel],.wy-control-group .wy-form-thirds input[type=text],.wy-control-group .wy-form-thirds input[type=time],.wy-control-group .wy-form-thirds input[type=url],.wy-control-group .wy-form-thirds input[type=week],.wy-control-group .wy-form-thirds select{width:100%}.wy-control-group .wy-form-full{float:left;display:block;width:100%;margin-right:0}.wy-control-group .wy-form-full:last-child{margin-right:0}.wy-control-group .wy-form-halves{float:left;display:block;margin-right:2.35765%;width:48.82117%}.wy-control-group .wy-form-halves:last-child,.wy-control-group .wy-form-halves:nth-of-type(2n){margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(odd){clear:left}.wy-control-group .wy-form-thirds{float:left;display:block;margin-right:2.35765%;width:31.76157%}.wy-control-group .wy-form-thirds:last-child,.wy-control-group .wy-form-thirds:nth-of-type(3n){margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n+1){clear:left}.wy-control-group.wy-control-group-no-input .wy-control,.wy-control-no-input{margin:6px 0 0;font-size:90%}.wy-control-no-input{display:inline-block}.wy-control-group.fluid-input input[type=color],.wy-control-group.fluid-input input[type=date],.wy-control-group.fluid-input input[type=datetime-local],.wy-control-group.fluid-input input[type=datetime],.wy-control-group.fluid-input input[type=email],.wy-control-group.fluid-input input[type=month],.wy-control-group.fluid-input input[type=number],.wy-control-group.fluid-input input[type=password],.wy-control-group.fluid-input input[type=search],.wy-control-group.fluid-input input[type=tel],.wy-control-group.fluid-input input[type=text],.wy-control-group.fluid-input input[type=time],.wy-control-group.fluid-input input[type=url],.wy-control-group.fluid-input input[type=week]{width:100%}.wy-form-message-inline{padding-left:.3em;color:#666;font-size:90%}.wy-form-message{display:block;color:#999;font-size:70%;margin-top:.3125em;font-style:italic}.wy-form-message p{font-size:inherit;font-style:italic;margin-bottom:6px}.wy-form-message p:last-child{margin-bottom:0}input{line-height:normal}input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;*overflow:visible}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:6px;display:inline-block;border:1px solid #ccc;font-size:80%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 3px #ddd;border-radius:0;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}input[type=datetime-local]{padding:.34375em .625em}input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{padding:0;margin-right:.3125em;*height:13px;*width:13px}input[type=checkbox],input[type=radio],input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus{outline:0;outline:thin dotted\9;border-color:#333}input.no-focus:focus{border-color:#ccc!important}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted #333;outline:1px auto #129fea}input[type=color][disabled],input[type=date][disabled],input[type=datetime-local][disabled],input[type=datetime][disabled],input[type=email][disabled],input[type=month][disabled],input[type=number][disabled],input[type=password][disabled],input[type=search][disabled],input[type=tel][disabled],input[type=text][disabled],input[type=time][disabled],input[type=url][disabled],input[type=week][disabled]{cursor:not-allowed;background-color:#fafafa}input:focus:invalid,select:focus:invalid,textarea:focus:invalid{color:#e74c3c;border:1px solid #e74c3c}input:focus:invalid:focus,select:focus:invalid:focus,textarea:focus:invalid:focus{border-color:#e74c3c}input[type=checkbox]:focus:invalid:focus,input[type=file]:focus:invalid:focus,input[type=radio]:focus:invalid:focus{outline-color:#e74c3c}input.wy-input-large{padding:12px;font-size:100%}textarea{overflow:auto;vertical-align:top;width:100%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif}select,textarea{padding:.5em .625em;display:inline-block;border:1px solid #ccc;font-size:80%;box-shadow:inset 0 1px 3px #ddd;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}select{border:1px solid #ccc;background-color:#fff}select[multiple]{height:auto}select:focus,textarea:focus{outline:0}input[readonly],select[disabled],select[readonly],textarea[disabled],textarea[readonly]{cursor:not-allowed;background-color:#fafafa}input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.wy-checkbox,.wy-radio{margin:6px 0;color:#404040;display:block}.wy-checkbox input,.wy-radio input{vertical-align:baseline}.wy-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-input-prefix,.wy-input-suffix{white-space:nowrap;padding:6px}.wy-input-prefix .wy-input-context,.wy-input-suffix .wy-input-context{line-height:27px;padding:0 8px;display:inline-block;font-size:80%;background-color:#f3f6f6;border:1px solid #ccc;color:#999}.wy-input-suffix .wy-input-context{border-left:0}.wy-input-prefix .wy-input-context{border-right:0}.wy-switch{position:relative;display:block;height:24px;margin-top:12px;cursor:pointer}.wy-switch:before{left:0;top:0;width:36px;height:12px;background:#ccc}.wy-switch:after,.wy-switch:before{position:absolute;content:"";display:block;border-radius:4px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wy-switch:after{width:18px;height:18px;background:#999;left:-3px;top:-3px}.wy-switch span{position:absolute;left:48px;display:block;font-size:12px;color:#ccc;line-height:1}.wy-switch.active:before{background:#1e8449}.wy-switch.active:after{left:24px;background:#27ae60}.wy-switch.disabled{cursor:not-allowed;opacity:.8}.wy-control-group.wy-control-group-error .wy-form-message,.wy-control-group.wy-control-group-error>label{color:#e74c3c}.wy-control-group.wy-control-group-error input[type=color],.wy-control-group.wy-control-group-error input[type=date],.wy-control-group.wy-control-group-error input[type=datetime-local],.wy-control-group.wy-control-group-error input[type=datetime],.wy-control-group.wy-control-group-error input[type=email],.wy-control-group.wy-control-group-error input[type=month],.wy-control-group.wy-control-group-error input[type=number],.wy-control-group.wy-control-group-error input[type=password],.wy-control-group.wy-control-group-error input[type=search],.wy-control-group.wy-control-group-error input[type=tel],.wy-control-group.wy-control-group-error input[type=text],.wy-control-group.wy-control-group-error input[type=time],.wy-control-group.wy-control-group-error input[type=url],.wy-control-group.wy-control-group-error input[type=week],.wy-control-group.wy-control-group-error textarea{border:1px solid #e74c3c}.wy-inline-validate{white-space:nowrap}.wy-inline-validate .wy-input-context{padding:.5em .625em;display:inline-block;font-size:80%}.wy-inline-validate.wy-inline-validate-success .wy-input-context{color:#27ae60}.wy-inline-validate.wy-inline-validate-danger .wy-input-context{color:#e74c3c}.wy-inline-validate.wy-inline-validate-warning .wy-input-context{color:#e67e22}.wy-inline-validate.wy-inline-validate-info .wy-input-context{color:#2980b9}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.rotate-180{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.rotate-270{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.mirror{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.mirror.rotate-90{-webkit-transform:scaleX(-1) rotate(90deg);-moz-transform:scaleX(-1) rotate(90deg);-ms-transform:scaleX(-1) rotate(90deg);-o-transform:scaleX(-1) rotate(90deg);transform:scaleX(-1) rotate(90deg)}.mirror.rotate-180{-webkit-transform:scaleX(-1) rotate(180deg);-moz-transform:scaleX(-1) rotate(180deg);-ms-transform:scaleX(-1) rotate(180deg);-o-transform:scaleX(-1) rotate(180deg);transform:scaleX(-1) rotate(180deg)}.mirror.rotate-270{-webkit-transform:scaleX(-1) rotate(270deg);-moz-transform:scaleX(-1) rotate(270deg);-ms-transform:scaleX(-1) rotate(270deg);-o-transform:scaleX(-1) rotate(270deg);transform:scaleX(-1) rotate(270deg)}@media only screen and (max-width:480px){.wy-form button[type=submit]{margin:.7em 0 0}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=text],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week],.wy-form label{margin-bottom:.3em;display:block}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week]{margin-bottom:0}.wy-form-aligned .wy-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.wy-form-aligned .wy-control{margin:1.5em 0 0}.wy-form-message,.wy-form-message-inline,.wy-form .wy-help-inline{display:block;font-size:80%;padding:6px 0}}@media screen and (max-width:768px){.tablet-hide{display:none}}@media screen and (max-width:480px){.mobile-hide{display:none}}.float-left{float:left}.float-right{float:right}.full-width{width:100%}.rst-content table.docutils,.rst-content table.field-list,.wy-table{border-collapse:collapse;border-spacing:0;empty-cells:show;margin-bottom:24px}.rst-content table.docutils caption,.rst-content table.field-list caption,.wy-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.rst-content table.docutils td,.rst-content table.docutils th,.rst-content table.field-list td,.rst-content table.field-list th,.wy-table td,.wy-table th{font-size:90%;margin:0;overflow:visible;padding:8px 16px}.rst-content table.docutils td:first-child,.rst-content table.docutils th:first-child,.rst-content table.field-list td:first-child,.rst-content table.field-list th:first-child,.wy-table td:first-child,.wy-table th:first-child{border-left-width:0}.rst-content table.docutils thead,.rst-content table.field-list thead,.wy-table thead{color:#000;text-align:left;vertical-align:bottom;white-space:nowrap}.rst-content table.docutils thead th,.rst-content table.field-list thead th,.wy-table thead th{font-weight:700;border-bottom:2px solid #e1e4e5}.rst-content table.docutils td,.rst-content table.field-list td,.wy-table td{background-color:transparent;vertical-align:middle}.rst-content table.docutils td p,.rst-content table.field-list td p,.wy-table td p{line-height:18px}.rst-content table.docutils td p:last-child,.rst-content table.field-list td p:last-child,.wy-table td p:last-child{margin-bottom:0}.rst-content table.docutils .wy-table-cell-min,.rst-content table.field-list .wy-table-cell-min,.wy-table .wy-table-cell-min{width:1%;padding-right:0}.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox],.wy-table .wy-table-cell-min input[type=checkbox]{margin:0}.wy-table-secondary{color:grey;font-size:90%}.wy-table-tertiary{color:grey;font-size:80%}.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,.wy-table-backed,.wy-table-odd td,.wy-table-striped tr:nth-child(2n-1) td{background-color:#f3f6f6}.rst-content table.docutils,.wy-table-bordered-all{border:1px solid #e1e4e5}.rst-content table.docutils td,.wy-table-bordered-all td{border-bottom:1px solid #e1e4e5;border-left:1px solid #e1e4e5}.rst-content table.docutils tbody>tr:last-child td,.wy-table-bordered-all tbody>tr:last-child td{border-bottom-width:0}.wy-table-bordered{border:1px solid #e1e4e5}.wy-table-bordered-rows td{border-bottom:1px solid #e1e4e5}.wy-table-bordered-rows tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal td,.wy-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #e1e4e5}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-responsive{margin-bottom:24px;max-width:100%;overflow:auto}.wy-table-responsive table{margin-bottom:0!important}.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}a{color:#2980b9;text-decoration:none;cursor:pointer}a:hover{color:#3091d1}a:visited{color:#9b59b6}html{height:100%}body,html{overflow-x:hidden}body{font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;font-weight:400;color:#404040;min-height:100%;background:#edf0f2}.wy-text-left{text-align:left}.wy-text-center{text-align:center}.wy-text-right{text-align:right}.wy-text-large{font-size:120%}.wy-text-normal{font-size:100%}.wy-text-small,small{font-size:80%}.wy-text-strike{text-decoration:line-through}.wy-text-warning{color:#e67e22!important}a.wy-text-warning:hover{color:#eb9950!important}.wy-text-info{color:#2980b9!important}a.wy-text-info:hover{color:#409ad5!important}.wy-text-success{color:#27ae60!important}a.wy-text-success:hover{color:#36d278!important}.wy-text-danger{color:#e74c3c!important}a.wy-text-danger:hover{color:#ed7669!important}.wy-text-neutral{color:#404040!important}a.wy-text-neutral:hover{color:#595959!important}.rst-content .toctree-wrapper>p.caption,h1,h2,h3,h4,h5,h6,legend{margin-top:0;font-weight:700;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif}p{line-height:24px;font-size:16px;margin:0 0 24px}h1{font-size:175%}.rst-content .toctree-wrapper>p.caption,h2{font-size:150%}h3{font-size:125%}h4{font-size:115%}h5{font-size:110%}h6{font-size:100%}hr{display:block;height:1px;border:0;border-top:1px solid #e1e4e5;margin:24px 0;padding:0}.rst-content code,.rst-content tt,code{white-space:nowrap;max-width:100%;background:#fff;border:1px solid #e1e4e5;font-size:75%;padding:0 5px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#e74c3c;overflow-x:auto}.rst-content tt.code-large,code.code-large{font-size:90%}.rst-content .section ul,.rst-content .toctree-wrapper ul,.rst-content section ul,.wy-plain-list-disc,article ul{list-style:disc;line-height:24px;margin-bottom:24px}.rst-content .section ul li,.rst-content .toctree-wrapper ul li,.rst-content section ul li,.wy-plain-list-disc li,article ul li{list-style:disc;margin-left:24px}.rst-content .section ul li p:last-child,.rst-content .section ul li ul,.rst-content .toctree-wrapper ul li p:last-child,.rst-content .toctree-wrapper ul li ul,.rst-content section ul li p:last-child,.rst-content section ul li ul,.wy-plain-list-disc li p:last-child,.wy-plain-list-disc li ul,article ul li p:last-child,article ul li ul{margin-bottom:0}.rst-content .section ul li li,.rst-content .toctree-wrapper ul li li,.rst-content section ul li li,.wy-plain-list-disc li li,article ul li li{list-style:circle}.rst-content .section ul li li li,.rst-content .toctree-wrapper ul li li li,.rst-content section ul li li li,.wy-plain-list-disc li li li,article ul li li li{list-style:square}.rst-content .section ul li ol li,.rst-content .toctree-wrapper ul li ol li,.rst-content section ul li ol li,.wy-plain-list-disc li ol li,article ul li ol li{list-style:decimal}.rst-content .section ol,.rst-content .section ol.arabic,.rst-content .toctree-wrapper ol,.rst-content .toctree-wrapper ol.arabic,.rst-content section ol,.rst-content section ol.arabic,.wy-plain-list-decimal,article ol{list-style:decimal;line-height:24px;margin-bottom:24px}.rst-content .section ol.arabic li,.rst-content .section ol li,.rst-content .toctree-wrapper ol.arabic li,.rst-content .toctree-wrapper ol li,.rst-content section ol.arabic li,.rst-content section ol li,.wy-plain-list-decimal li,article ol li{list-style:decimal;margin-left:24px}.rst-content .section ol.arabic li ul,.rst-content .section ol li p:last-child,.rst-content .section ol li ul,.rst-content .toctree-wrapper ol.arabic li ul,.rst-content .toctree-wrapper ol li p:last-child,.rst-content .toctree-wrapper ol li ul,.rst-content section ol.arabic li ul,.rst-content section ol li p:last-child,.rst-content section ol li ul,.wy-plain-list-decimal li p:last-child,.wy-plain-list-decimal li ul,article ol li p:last-child,article ol li ul{margin-bottom:0}.rst-content .section ol.arabic li ul li,.rst-content .section ol li ul li,.rst-content .toctree-wrapper ol.arabic li ul li,.rst-content .toctree-wrapper ol li ul li,.rst-content section ol.arabic li ul li,.rst-content section ol li ul li,.wy-plain-list-decimal li ul li,article ol li ul li{list-style:disc}.wy-breadcrumbs{*zoom:1}.wy-breadcrumbs:after,.wy-breadcrumbs:before{display:table;content:""}.wy-breadcrumbs:after{clear:both}.wy-breadcrumbs>li{display:inline-block;padding-top:5px}.wy-breadcrumbs>li.wy-breadcrumbs-aside{float:right}.rst-content .wy-breadcrumbs>li code,.rst-content .wy-breadcrumbs>li tt,.wy-breadcrumbs>li .rst-content tt,.wy-breadcrumbs>li code{all:inherit;color:inherit}.breadcrumb-item:before{content:"/";color:#bbb;font-size:13px;padding:0 6px 0 3px}.wy-breadcrumbs-extra{margin-bottom:0;color:#b3b3b3;font-size:80%;display:inline-block}@media screen and (max-width:480px){.wy-breadcrumbs-extra,.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}@media print{.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}html{font-size:16px}.wy-affix{position:fixed;top:1.618em}.wy-menu a:hover{text-decoration:none}.wy-menu-horiz{*zoom:1}.wy-menu-horiz:after,.wy-menu-horiz:before{display:table;content:""}.wy-menu-horiz:after{clear:both}.wy-menu-horiz li,.wy-menu-horiz ul{display:inline-block}.wy-menu-horiz li:hover{background:hsla(0,0%,100%,.1)}.wy-menu-horiz li.divide-left{border-left:1px solid #404040}.wy-menu-horiz li.divide-right{border-right:1px solid #404040}.wy-menu-horiz a{height:32px;display:inline-block;line-height:32px;padding:0 16px}.wy-menu-vertical{width:300px}.wy-menu-vertical header,.wy-menu-vertical p.caption{color:#55a5d9;height:32px;line-height:32px;padding:0 1.618em;margin:12px 0 0;display:block;font-weight:700;text-transform:uppercase;font-size:85%;white-space:nowrap}.wy-menu-vertical ul{margin-bottom:0}.wy-menu-vertical li.divide-top{border-top:1px solid #404040}.wy-menu-vertical li.divide-bottom{border-bottom:1px solid #404040}.wy-menu-vertical li.current{background:#e3e3e3}.wy-menu-vertical li.current a{color:grey;border-right:1px solid #c9c9c9;padding:.4045em 2.427em}.wy-menu-vertical li.current a:hover{background:#d6d6d6}.rst-content .wy-menu-vertical li tt,.wy-menu-vertical li .rst-content tt,.wy-menu-vertical li code{border:none;background:inherit;color:inherit;padding-left:0;padding-right:0}.wy-menu-vertical li button.toctree-expand{display:block;float:left;margin-left:-1.2em;line-height:18px;color:#4d4d4d;border:none;background:none;padding:0}.wy-menu-vertical li.current>a,.wy-menu-vertical li.on a{color:#404040;font-weight:700;position:relative;background:#fcfcfc;border:none;padding:.4045em 1.618em}.wy-menu-vertical li.current>a:hover,.wy-menu-vertical li.on a:hover{background:#fcfcfc}.wy-menu-vertical li.current>a:hover button.toctree-expand,.wy-menu-vertical li.on a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand{display:block;line-height:18px;color:#333}.wy-menu-vertical li.toctree-l1.current>a{border-bottom:1px solid #c9c9c9;border-top:1px solid #c9c9c9}.wy-menu-vertical .toctree-l1.current .toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .toctree-l11>ul{display:none}.wy-menu-vertical .toctree-l1.current .current.toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .current.toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .current.toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .current.toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .current.toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .current.toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .current.toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .current.toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .current.toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .current.toctree-l11>ul{display:block}.wy-menu-vertical li.toctree-l3,.wy-menu-vertical li.toctree-l4{font-size:.9em}.wy-menu-vertical li.toctree-l2 a,.wy-menu-vertical li.toctree-l3 a,.wy-menu-vertical li.toctree-l4 a,.wy-menu-vertical li.toctree-l5 a,.wy-menu-vertical li.toctree-l6 a,.wy-menu-vertical li.toctree-l7 a,.wy-menu-vertical li.toctree-l8 a,.wy-menu-vertical li.toctree-l9 a,.wy-menu-vertical li.toctree-l10 a{color:#404040}.wy-menu-vertical li.toctree-l2 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l3 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l4 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l5 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l6 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l7 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l8 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l9 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l10 a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a,.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a,.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a,.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a,.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{display:block}.wy-menu-vertical li.toctree-l2.current>a{padding:.4045em 2.427em}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{padding:.4045em 1.618em .4045em 4.045em}.wy-menu-vertical li.toctree-l3.current>a{padding:.4045em 4.045em}.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{padding:.4045em 1.618em .4045em 5.663em}.wy-menu-vertical li.toctree-l4.current>a{padding:.4045em 5.663em}.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a{padding:.4045em 1.618em .4045em 7.281em}.wy-menu-vertical li.toctree-l5.current>a{padding:.4045em 7.281em}.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a{padding:.4045em 1.618em .4045em 8.899em}.wy-menu-vertical li.toctree-l6.current>a{padding:.4045em 8.899em}.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a{padding:.4045em 1.618em .4045em 10.517em}.wy-menu-vertical li.toctree-l7.current>a{padding:.4045em 10.517em}.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a{padding:.4045em 1.618em .4045em 12.135em}.wy-menu-vertical li.toctree-l8.current>a{padding:.4045em 12.135em}.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a{padding:.4045em 1.618em .4045em 13.753em}.wy-menu-vertical li.toctree-l9.current>a{padding:.4045em 13.753em}.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a{padding:.4045em 1.618em .4045em 15.371em}.wy-menu-vertical li.toctree-l10.current>a{padding:.4045em 15.371em}.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{padding:.4045em 1.618em .4045em 16.989em}.wy-menu-vertical li.toctree-l2.current>a,.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{background:#c9c9c9}.wy-menu-vertical li.toctree-l2 button.toctree-expand{color:#a3a3a3}.wy-menu-vertical li.toctree-l3.current>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{background:#bdbdbd}.wy-menu-vertical li.toctree-l3 button.toctree-expand{color:#969696}.wy-menu-vertical li.current ul{display:block}.wy-menu-vertical li ul{margin-bottom:0;display:none}.wy-menu-vertical li ul li a{margin-bottom:0;color:#d9d9d9;font-weight:400}.wy-menu-vertical a{line-height:18px;padding:.4045em 1.618em;display:block;position:relative;font-size:90%;color:#d9d9d9}.wy-menu-vertical a:hover{background-color:#4e4a4a;cursor:pointer}.wy-menu-vertical a:hover button.toctree-expand{color:#d9d9d9}.wy-menu-vertical a:active{background-color:#2980b9;cursor:pointer;color:#fff}.wy-menu-vertical a:active button.toctree-expand{color:#fff}.wy-side-nav-search{display:block;width:300px;padding:.809em;margin-bottom:.809em;z-index:200;background-color:#2980b9;text-align:center;color:#fcfcfc}.wy-side-nav-search input[type=text]{width:100%;border-radius:50px;padding:6px 12px;border-color:#2472a4}.wy-side-nav-search img{display:block;margin:auto auto .809em;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a{color:#fcfcfc;font-size:100%;font-weight:700;display:inline-block;padding:4px 6px;margin-bottom:.809em;max-width:100%}.wy-side-nav-search .wy-dropdown>a:hover,.wy-side-nav-search>a:hover{background:hsla(0,0%,100%,.1)}.wy-side-nav-search .wy-dropdown>a img.logo,.wy-side-nav-search>a img.logo{display:block;margin:0 auto;height:auto;width:auto;border-radius:0;max-width:100%;background:transparent}.wy-side-nav-search .wy-dropdown>a.icon img.logo,.wy-side-nav-search>a.icon img.logo{margin-top:.85em}.wy-side-nav-search>div.version{margin-top:-.4045em;margin-bottom:.809em;font-weight:400;color:hsla(0,0%,100%,.3)}.wy-nav .wy-menu-vertical header{color:#2980b9}.wy-nav .wy-menu-vertical a{color:#b3b3b3}.wy-nav .wy-menu-vertical a:hover{background-color:#2980b9;color:#fff}[data-menu-wrap]{-webkit-transition:all .2s ease-in;-moz-transition:all .2s ease-in;transition:all .2s ease-in;position:absolute;opacity:1;width:100%;opacity:0}[data-menu-wrap].move-center{left:0;right:auto;opacity:1}[data-menu-wrap].move-left{right:auto;left:-100%;opacity:0}[data-menu-wrap].move-right{right:-100%;left:auto;opacity:0}.wy-body-for-nav{background:#fcfcfc}.wy-grid-for-nav{position:absolute;width:100%;height:100%}.wy-nav-side{position:fixed;top:0;bottom:0;left:0;padding-bottom:2em;width:300px;overflow-x:hidden;overflow-y:hidden;min-height:100%;color:#9b9b9b;background:#343131;z-index:200}.wy-side-scroll{width:320px;position:relative;overflow-x:hidden;overflow-y:scroll;height:100%}.wy-nav-top{display:none;background:#2980b9;color:#fff;padding:.4045em .809em;position:relative;line-height:50px;text-align:center;font-size:100%;*zoom:1}.wy-nav-top:after,.wy-nav-top:before{display:table;content:""}.wy-nav-top:after{clear:both}.wy-nav-top a{color:#fff;font-weight:700}.wy-nav-top img{margin-right:12px;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-nav-top i{font-size:30px;float:left;cursor:pointer;padding-top:inherit}.wy-nav-content-wrap{margin-left:300px;background:#fcfcfc;min-height:100%}.wy-nav-content{padding:1.618em 3.236em;height:100%;max-width:800px;margin:auto}.wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.2);display:none;z-index:499}.wy-body-mask.on{display:block}footer{color:grey}footer p{margin-bottom:12px}.rst-content footer span.commit tt,footer span.commit .rst-content tt,footer span.commit code{padding:0;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:1em;background:none;border:none;color:grey}.rst-footer-buttons{*zoom:1}.rst-footer-buttons:after,.rst-footer-buttons:before{width:100%;display:table;content:""}.rst-footer-buttons:after{clear:both}.rst-breadcrumbs-buttons{margin-top:12px;*zoom:1}.rst-breadcrumbs-buttons:after,.rst-breadcrumbs-buttons:before{display:table;content:""}.rst-breadcrumbs-buttons:after{clear:both}#search-results .search li{margin-bottom:24px;border-bottom:1px solid #e1e4e5;padding-bottom:24px}#search-results .search li:first-child{border-top:1px solid #e1e4e5;padding-top:24px}#search-results .search li a{font-size:120%;margin-bottom:12px;display:inline-block}#search-results .context{color:grey;font-size:90%}.genindextable li>ul{margin-left:24px}@media screen and (max-width:768px){.wy-body-for-nav{background:#fcfcfc}.wy-nav-top{display:block}.wy-nav-side{left:-300px}.wy-nav-side.shift{width:85%;left:0}.wy-menu.wy-menu-vertical,.wy-side-nav-search,.wy-side-scroll{width:auto}.wy-nav-content-wrap{margin-left:0}.wy-nav-content-wrap .wy-nav-content{padding:1.618em}.wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden}}@media screen and (min-width:1100px){.wy-nav-content-wrap{background:rgba(0,0,0,.05)}.wy-nav-content{margin:0;background:#fcfcfc}}@media print{.rst-versions,.wy-nav-side,footer{display:none}.wy-nav-content-wrap{margin-left:0}}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60;*zoom:1}.rst-versions .rst-current-version:after,.rst-versions .rst-current-version:before{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-content .code-block-caption .rst-versions .rst-current-version .headerlink,.rst-content .eqno .rst-versions .rst-current-version .headerlink,.rst-content .rst-versions .rst-current-version .admonition-title,.rst-content code.download .rst-versions .rst-current-version span:first-child,.rst-content dl dt .rst-versions .rst-current-version .headerlink,.rst-content h1 .rst-versions .rst-current-version .headerlink,.rst-content h2 .rst-versions .rst-current-version .headerlink,.rst-content h3 .rst-versions .rst-current-version .headerlink,.rst-content h4 .rst-versions .rst-current-version .headerlink,.rst-content h5 .rst-versions .rst-current-version .headerlink,.rst-content h6 .rst-versions .rst-current-version .headerlink,.rst-content p .rst-versions .rst-current-version .headerlink,.rst-content table>caption .rst-versions .rst-current-version .headerlink,.rst-content tt.download .rst-versions .rst-current-version span:first-child,.rst-versions .rst-current-version .fa,.rst-versions .rst-current-version .icon,.rst-versions .rst-current-version .rst-content .admonition-title,.rst-versions .rst-current-version .rst-content .code-block-caption .headerlink,.rst-versions .rst-current-version .rst-content .eqno .headerlink,.rst-versions .rst-current-version .rst-content code.download span:first-child,.rst-versions .rst-current-version .rst-content dl dt .headerlink,.rst-versions .rst-current-version .rst-content h1 .headerlink,.rst-versions .rst-current-version .rst-content h2 .headerlink,.rst-versions .rst-current-version .rst-content h3 .headerlink,.rst-versions .rst-current-version .rst-content h4 .headerlink,.rst-versions .rst-current-version .rst-content h5 .headerlink,.rst-versions .rst-current-version .rst-content h6 .headerlink,.rst-versions .rst-current-version .rst-content p .headerlink,.rst-versions .rst-current-version .rst-content table>caption .headerlink,.rst-versions .rst-current-version .rst-content tt.download span:first-child,.rst-versions .rst-current-version .wy-menu-vertical li button.toctree-expand,.wy-menu-vertical li .rst-versions .rst-current-version button.toctree-expand{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}.rst-content .toctree-wrapper>p.caption,.rst-content h1,.rst-content h2,.rst-content h3,.rst-content h4,.rst-content h5,.rst-content h6{margin-bottom:24px}.rst-content img{max-width:100%;height:auto}.rst-content div.figure,.rst-content figure{margin-bottom:24px}.rst-content div.figure .caption-text,.rst-content figure .caption-text{font-style:italic}.rst-content div.figure p:last-child.caption,.rst-content figure p:last-child.caption{margin-bottom:0}.rst-content div.figure.align-center,.rst-content figure.align-center{text-align:center}.rst-content .section>a>img,.rst-content .section>img,.rst-content section>a>img,.rst-content section>img{margin-bottom:24px}.rst-content abbr[title]{text-decoration:none}.rst-content.style-external-links a.reference.external:after{font-family:FontAwesome;content:"\f08e";color:#b3b3b3;vertical-align:super;font-size:60%;margin:0 .2em}.rst-content blockquote{margin-left:24px;line-height:24px;margin-bottom:24px}.rst-content pre.literal-block{white-space:pre;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;display:block;overflow:auto}.rst-content div[class^=highlight],.rst-content pre.literal-block{border:1px solid #e1e4e5;overflow-x:auto;margin:1px 0 24px}.rst-content div[class^=highlight] div[class^=highlight],.rst-content pre.literal-block div[class^=highlight]{padding:0;border:none;margin:0}.rst-content div[class^=highlight] td.code{width:100%}.rst-content .linenodiv pre{border-right:1px solid #e6e9ea;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;user-select:none;pointer-events:none}.rst-content div[class^=highlight] pre{white-space:pre;margin:0;padding:12px;display:block;overflow:auto}.rst-content div[class^=highlight] pre .hll{display:block;margin:0 -12px;padding:0 12px}.rst-content .linenodiv pre,.rst-content div[class^=highlight] pre,.rst-content pre.literal-block{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:12px;line-height:1.4}.rst-content div.highlight .gp,.rst-content div.highlight span.linenos{user-select:none;pointer-events:none}.rst-content div.highlight span.linenos{display:inline-block;padding-left:0;padding-right:12px;margin-right:12px;border-right:1px solid #e6e9ea}.rst-content .code-block-caption{font-style:italic;font-size:85%;line-height:1;padding:1em 0;text-align:center}@media print{.rst-content .codeblock,.rst-content div[class^=highlight],.rst-content div[class^=highlight] pre{white-space:pre-wrap}}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning{clear:both}.rst-content .admonition-todo .last,.rst-content .admonition-todo>:last-child,.rst-content .admonition .last,.rst-content .admonition>:last-child,.rst-content .attention .last,.rst-content .attention>:last-child,.rst-content .caution .last,.rst-content .caution>:last-child,.rst-content .danger .last,.rst-content .danger>:last-child,.rst-content .error .last,.rst-content .error>:last-child,.rst-content .hint .last,.rst-content .hint>:last-child,.rst-content .important .last,.rst-content .important>:last-child,.rst-content .note .last,.rst-content .note>:last-child,.rst-content .seealso .last,.rst-content .seealso>:last-child,.rst-content .tip .last,.rst-content .tip>:last-child,.rst-content .warning .last,.rst-content .warning>:last-child{margin-bottom:0}.rst-content .admonition-title:before{margin-right:4px}.rst-content .admonition table{border-color:rgba(0,0,0,.1)}.rst-content .admonition table td,.rst-content .admonition table th{background:transparent!important;border-color:rgba(0,0,0,.1)!important}.rst-content .section ol.loweralpha,.rst-content .section ol.loweralpha>li,.rst-content .toctree-wrapper ol.loweralpha,.rst-content .toctree-wrapper ol.loweralpha>li,.rst-content section ol.loweralpha,.rst-content section ol.loweralpha>li{list-style:lower-alpha}.rst-content .section ol.upperalpha,.rst-content .section ol.upperalpha>li,.rst-content .toctree-wrapper ol.upperalpha,.rst-content .toctree-wrapper ol.upperalpha>li,.rst-content section ol.upperalpha,.rst-content section ol.upperalpha>li{list-style:upper-alpha}.rst-content .section ol li>*,.rst-content .section ul li>*,.rst-content .toctree-wrapper ol li>*,.rst-content .toctree-wrapper ul li>*,.rst-content section ol li>*,.rst-content section ul li>*{margin-top:12px;margin-bottom:12px}.rst-content .section ol li>:first-child,.rst-content .section ul li>:first-child,.rst-content .toctree-wrapper ol li>:first-child,.rst-content .toctree-wrapper ul li>:first-child,.rst-content section ol li>:first-child,.rst-content section ul li>:first-child{margin-top:0}.rst-content .section ol li>p,.rst-content .section ol li>p:last-child,.rst-content .section ul li>p,.rst-content .section ul li>p:last-child,.rst-content .toctree-wrapper ol li>p,.rst-content .toctree-wrapper ol li>p:last-child,.rst-content .toctree-wrapper ul li>p,.rst-content .toctree-wrapper ul li>p:last-child,.rst-content section ol li>p,.rst-content section ol li>p:last-child,.rst-content section ul li>p,.rst-content section ul li>p:last-child{margin-bottom:12px}.rst-content .section ol li>p:only-child,.rst-content .section ol li>p:only-child:last-child,.rst-content .section ul li>p:only-child,.rst-content .section ul li>p:only-child:last-child,.rst-content .toctree-wrapper ol li>p:only-child,.rst-content .toctree-wrapper ol li>p:only-child:last-child,.rst-content .toctree-wrapper ul li>p:only-child,.rst-content .toctree-wrapper ul li>p:only-child:last-child,.rst-content section ol li>p:only-child,.rst-content section ol li>p:only-child:last-child,.rst-content section ul li>p:only-child,.rst-content section ul li>p:only-child:last-child{margin-bottom:0}.rst-content .section ol li>ol,.rst-content .section ol li>ul,.rst-content .section ul li>ol,.rst-content .section ul li>ul,.rst-content .toctree-wrapper ol li>ol,.rst-content .toctree-wrapper ol li>ul,.rst-content .toctree-wrapper ul li>ol,.rst-content .toctree-wrapper ul li>ul,.rst-content section ol li>ol,.rst-content section ol li>ul,.rst-content section ul li>ol,.rst-content section ul li>ul{margin-bottom:12px}.rst-content .section ol.simple li>*,.rst-content .section ol.simple li ol,.rst-content .section ol.simple li ul,.rst-content .section ul.simple li>*,.rst-content .section ul.simple li ol,.rst-content .section ul.simple li ul,.rst-content .toctree-wrapper ol.simple li>*,.rst-content .toctree-wrapper ol.simple li ol,.rst-content .toctree-wrapper ol.simple li ul,.rst-content .toctree-wrapper ul.simple li>*,.rst-content .toctree-wrapper ul.simple li ol,.rst-content .toctree-wrapper ul.simple li ul,.rst-content section ol.simple li>*,.rst-content section ol.simple li ol,.rst-content section ol.simple li ul,.rst-content section ul.simple li>*,.rst-content section ul.simple li ol,.rst-content section ul.simple li ul{margin-top:0;margin-bottom:0}.rst-content .line-block{margin-left:0;margin-bottom:24px;line-height:24px}.rst-content .line-block .line-block{margin-left:24px;margin-bottom:0}.rst-content .topic-title{font-weight:700;margin-bottom:12px}.rst-content .toc-backref{color:#404040}.rst-content .align-right{float:right;margin:0 0 24px 24px}.rst-content .align-left{float:left;margin:0 24px 24px 0}.rst-content .align-center{margin:auto}.rst-content .align-center:not(table){display:block}.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink{opacity:0;font-size:14px;font-family:FontAwesome;margin-left:.5em}.rst-content .code-block-caption .headerlink:focus,.rst-content .code-block-caption:hover .headerlink,.rst-content .eqno .headerlink:focus,.rst-content .eqno:hover .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink:focus,.rst-content .toctree-wrapper>p.caption:hover .headerlink,.rst-content dl dt .headerlink:focus,.rst-content dl dt:hover .headerlink,.rst-content h1 .headerlink:focus,.rst-content h1:hover .headerlink,.rst-content h2 .headerlink:focus,.rst-content h2:hover .headerlink,.rst-content h3 .headerlink:focus,.rst-content h3:hover .headerlink,.rst-content h4 .headerlink:focus,.rst-content h4:hover .headerlink,.rst-content h5 .headerlink:focus,.rst-content h5:hover .headerlink,.rst-content h6 .headerlink:focus,.rst-content h6:hover .headerlink,.rst-content p.caption .headerlink:focus,.rst-content p.caption:hover .headerlink,.rst-content p .headerlink:focus,.rst-content p:hover .headerlink,.rst-content table>caption .headerlink:focus,.rst-content table>caption:hover .headerlink{opacity:1}.rst-content p a{overflow-wrap:anywhere}.rst-content .wy-table td p,.rst-content .wy-table td ul,.rst-content .wy-table th p,.rst-content .wy-table th ul,.rst-content table.docutils td p,.rst-content table.docutils td ul,.rst-content table.docutils th p,.rst-content table.docutils th ul,.rst-content table.field-list td p,.rst-content table.field-list td ul,.rst-content table.field-list th p,.rst-content table.field-list th ul{font-size:inherit}.rst-content .btn:focus{outline:2px solid}.rst-content table>caption .headerlink:after{font-size:12px}.rst-content .centered{text-align:center}.rst-content .sidebar{float:right;width:40%;display:block;margin:0 0 24px 24px;padding:24px;background:#f3f6f6;border:1px solid #e1e4e5}.rst-content .sidebar dl,.rst-content .sidebar p,.rst-content .sidebar ul{font-size:90%}.rst-content .sidebar .last,.rst-content .sidebar>:last-child{margin-bottom:0}.rst-content .sidebar .sidebar-title{display:block;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;font-weight:700;background:#e1e4e5;padding:6px 12px;margin:-24px -24px 24px;font-size:100%}.rst-content .highlighted{background:#f1c40f;box-shadow:0 0 0 2px #f1c40f;display:inline;font-weight:700}.rst-content .citation-reference,.rst-content .footnote-reference{vertical-align:baseline;position:relative;top:-.4em;line-height:0;font-size:90%}.rst-content .citation-reference>span.fn-bracket,.rst-content .footnote-reference>span.fn-bracket{display:none}.rst-content .hlist{width:100%}.rst-content dl dt span.classifier:before{content:" : "}.rst-content dl dt span.classifier-delimiter{display:none!important}html.writer-html4 .rst-content table.docutils.citation,html.writer-html4 .rst-content table.docutils.footnote{background:none;border:none}html.writer-html4 .rst-content table.docutils.citation td,html.writer-html4 .rst-content table.docutils.citation tr,html.writer-html4 .rst-content table.docutils.footnote td,html.writer-html4 .rst-content table.docutils.footnote tr{border:none;background-color:transparent!important;white-space:normal}html.writer-html4 .rst-content table.docutils.citation td.label,html.writer-html4 .rst-content table.docutils.footnote td.label{padding-left:0;padding-right:0;vertical-align:top}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{display:grid;grid-template-columns:auto minmax(80%,95%)}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{display:inline-grid;grid-template-columns:max-content auto}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{display:grid;grid-template-columns:auto auto minmax(.65rem,auto) minmax(40%,95%)}html.writer-html5 .rst-content aside.citation>span.label,html.writer-html5 .rst-content aside.footnote>span.label,html.writer-html5 .rst-content div.citation>span.label{grid-column-start:1;grid-column-end:2}html.writer-html5 .rst-content aside.citation>span.backrefs,html.writer-html5 .rst-content aside.footnote>span.backrefs,html.writer-html5 .rst-content div.citation>span.backrefs{grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:3}html.writer-html5 .rst-content aside.citation>p,html.writer-html5 .rst-content aside.footnote>p,html.writer-html5 .rst-content div.citation>p{grid-column-start:4;grid-column-end:5}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{margin-bottom:24px}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{padding-left:1rem}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dd,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dd,html.writer-html5 .rst-content dl.footnote>dt{margin-bottom:0}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{font-size:.9rem}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.footnote>dt{margin:0 .5rem .5rem 0;line-height:1.2rem;word-break:break-all;font-weight:400}html.writer-html5 .rst-content dl.citation>dt>span.brackets:before,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:before{content:"["}html.writer-html5 .rst-content dl.citation>dt>span.brackets:after,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:after{content:"]"}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a{word-break:keep-all}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a:not(:first-child):before,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a:not(:first-child):before{content:" "}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.footnote>dd{margin:0 0 .5rem;line-height:1.2rem}html.writer-html5 .rst-content dl.citation>dd p,html.writer-html5 .rst-content dl.footnote>dd p{font-size:.9rem}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{padding-left:1rem;padding-right:1rem;font-size:.9rem;line-height:1.2rem}html.writer-html5 .rst-content aside.citation p,html.writer-html5 .rst-content aside.footnote p,html.writer-html5 .rst-content div.citation p{font-size:.9rem;line-height:1.2rem;margin-bottom:12px}html.writer-html5 .rst-content aside.citation span.backrefs,html.writer-html5 .rst-content aside.footnote span.backrefs,html.writer-html5 .rst-content div.citation span.backrefs{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content aside.citation span.backrefs>a,html.writer-html5 .rst-content aside.footnote span.backrefs>a,html.writer-html5 .rst-content div.citation span.backrefs>a{word-break:keep-all}html.writer-html5 .rst-content aside.citation span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content aside.footnote span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content div.citation span.backrefs>a:not(:first-child):before{content:" "}html.writer-html5 .rst-content aside.citation span.label,html.writer-html5 .rst-content aside.footnote span.label,html.writer-html5 .rst-content div.citation span.label{line-height:1.2rem}html.writer-html5 .rst-content aside.citation-list,html.writer-html5 .rst-content aside.footnote-list,html.writer-html5 .rst-content div.citation-list{margin-bottom:24px}html.writer-html5 .rst-content dl.option-list kbd{font-size:.9rem}.rst-content table.docutils.footnote,html.writer-html4 .rst-content table.docutils.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content aside.footnote-list aside.footnote,html.writer-html5 .rst-content div.citation-list>div.citation,html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{color:grey}.rst-content table.docutils.footnote code,.rst-content table.docutils.footnote tt,html.writer-html4 .rst-content table.docutils.citation code,html.writer-html4 .rst-content table.docutils.citation tt,html.writer-html5 .rst-content aside.footnote-list aside.footnote code,html.writer-html5 .rst-content aside.footnote-list aside.footnote tt,html.writer-html5 .rst-content aside.footnote code,html.writer-html5 .rst-content aside.footnote tt,html.writer-html5 .rst-content div.citation-list>div.citation code,html.writer-html5 .rst-content div.citation-list>div.citation tt,html.writer-html5 .rst-content dl.citation code,html.writer-html5 .rst-content dl.citation tt,html.writer-html5 .rst-content dl.footnote code,html.writer-html5 .rst-content dl.footnote tt{color:#555}.rst-content .wy-table-responsive.citation,.rst-content .wy-table-responsive.footnote{margin-bottom:0}.rst-content .wy-table-responsive.citation+:not(.citation),.rst-content .wy-table-responsive.footnote+:not(.footnote){margin-top:24px}.rst-content .wy-table-responsive.citation:last-child,.rst-content .wy-table-responsive.footnote:last-child{margin-bottom:24px}.rst-content table.docutils th{border-color:#e1e4e5}html.writer-html5 .rst-content table.docutils th{border:1px solid #e1e4e5}html.writer-html5 .rst-content table.docutils td>p,html.writer-html5 .rst-content table.docutils th>p{line-height:1rem;margin-bottom:0;font-size:.9rem}.rst-content table.docutils td .last,.rst-content table.docutils td .last>:last-child{margin-bottom:0}.rst-content table.field-list,.rst-content table.field-list td{border:none}.rst-content table.field-list td p{line-height:inherit}.rst-content table.field-list td>strong{display:inline-block}.rst-content table.field-list .field-name{padding-right:10px;text-align:left;white-space:nowrap}.rst-content table.field-list .field-body{text-align:left}.rst-content code,.rst-content tt{color:#000;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;padding:2px 5px}.rst-content code big,.rst-content code em,.rst-content tt big,.rst-content tt em{font-size:100%!important;line-height:normal}.rst-content code.literal,.rst-content tt.literal{color:#e74c3c;white-space:normal}.rst-content code.xref,.rst-content tt.xref,a .rst-content code,a .rst-content tt{font-weight:700;color:#404040;overflow-wrap:normal}.rst-content kbd,.rst-content pre,.rst-content samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace}.rst-content a code,.rst-content a tt{color:#2980b9}.rst-content dl{margin-bottom:24px}.rst-content dl dt{font-weight:700;margin-bottom:12px}.rst-content dl ol,.rst-content dl p,.rst-content dl table,.rst-content dl ul{margin-bottom:12px}.rst-content dl dd{margin:0 0 12px 24px;line-height:24px}.rst-content dl dd>ol:last-child,.rst-content dl dd>p:last-child,.rst-content dl dd>table:last-child,.rst-content dl dd>ul:last-child{margin-bottom:0}html.writer-html4 .rst-content dl:not(.docutils),html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple){margin-bottom:24px}html.writer-html4 .rst-content dl:not(.docutils)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{display:table;margin:6px 0;font-size:90%;line-height:normal;background:#e7f2fa;color:#2980b9;border-top:3px solid #6ab0de;padding:6px;position:relative}html.writer-html4 .rst-content dl:not(.docutils)>dt:before,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:before{color:#6ab0de}html.writer-html4 .rst-content dl:not(.docutils)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{margin-bottom:6px;border:none;border-left:3px solid #ccc;background:#f0f0f0;color:#555}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils)>dt:first-child,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:first-child{margin-top:0}html.writer-html4 .rst-content dl:not(.docutils) code.descclassname,html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descclassname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{background-color:transparent;border:none;padding:0;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .optional,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .optional{display:inline-block;padding:0 4px;color:#000;font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .property,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .property{display:inline-block;padding-right:8px;max-width:100%}html.writer-html4 .rst-content dl:not(.docutils) .k,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .k{font-style:italic}html.writer-html4 .rst-content dl:not(.docutils) .descclassname,html.writer-html4 .rst-content dl:not(.docutils) .descname,html.writer-html4 .rst-content dl:not(.docutils) .sig-name,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#000}.rst-content .viewcode-back,.rst-content .viewcode-link{display:inline-block;color:#27ae60;font-size:80%;padding-left:24px}.rst-content .viewcode-back{display:block;float:right}.rst-content p.rubric{margin-bottom:12px;font-weight:700}.rst-content code.download,.rst-content tt.download{background:inherit;padding:inherit;font-weight:400;font-family:inherit;font-size:inherit;color:inherit;border:inherit;white-space:inherit}.rst-content code.download span:first-child,.rst-content tt.download span:first-child{-webkit-font-smoothing:subpixel-antialiased}.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{margin-right:4px}.rst-content .guilabel,.rst-content .menuselection{font-size:80%;font-weight:700;border-radius:4px;padding:2.4px 6px;margin:auto 2px}.rst-content .guilabel,.rst-content .menuselection{border:1px solid #7fbbe3;background:#e7f2fa}.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>.kbd,.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>kbd{color:inherit;font-size:80%;background-color:#fff;border:1px solid #a6a6a6;border-radius:4px;box-shadow:0 2px grey;padding:2.4px 6px;margin:auto 0}.rst-content .versionmodified{font-style:italic}@media screen and (max-width:480px){.rst-content .sidebar{width:100%}}span[id*=MathJax-Span]{color:#404040}.math{text-align:center}@font-face{font-family:Lato;src:url(fonts/lato-normal.woff2?bd03a2cc277bbbc338d464e679fe9942) format("woff2"),url(fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a) format("woff");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold.woff2?cccb897485813c7c256901dbca54ecf2) format("woff2"),url(fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b) format("woff");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold-italic.woff2?0b6bb6725576b072c5d0b02ecdd1900d) format("woff2"),url(fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c) format("woff");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-normal-italic.woff2?4eb103b4d12be57cb1d040ed5e162e9d) format("woff2"),url(fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892) format("woff");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:400;src:url(fonts/Roboto-Slab-Regular.woff2?7abf5b8d04d26a2cafea937019bca958) format("woff2"),url(fonts/Roboto-Slab-Regular.woff?c1be9284088d487c5e3ff0a10a92e58c) format("woff");font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:700;src:url(fonts/Roboto-Slab-Bold.woff2?9984f4a9bda09be08e83f2506954adbe) format("woff2"),url(fonts/Roboto-Slab-Bold.woff?bed5564a116b05148e3b3bea6fb1162a) format("woff");font-display:block} \ No newline at end of file diff --git a/_static/doctools.js b/_static/doctools.js new file mode 100644 index 00000000..d06a71d7 --- /dev/null +++ b/_static/doctools.js @@ -0,0 +1,156 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Base JavaScript utilities for all Sphinx HTML documentation. + * + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ + "TEXTAREA", + "INPUT", + "SELECT", + "BUTTON", +]); + +const _ready = (callback) => { + if (document.readyState !== "loading") { + callback(); + } else { + document.addEventListener("DOMContentLoaded", callback); + } +}; + +/** + * Small JavaScript module for the documentation. + */ +const Documentation = { + init: () => { + Documentation.initDomainIndexTable(); + Documentation.initOnKeyListeners(); + }, + + /** + * i18n support + */ + TRANSLATIONS: {}, + PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), + LOCALE: "unknown", + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext: (string) => { + const translated = Documentation.TRANSLATIONS[string]; + switch (typeof translated) { + case "undefined": + return string; // no translation + case "string": + return translated; // translation exists + default: + return translated[0]; // (singular, plural) translation tuple exists + } + }, + + ngettext: (singular, plural, n) => { + const translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated !== "undefined") + return translated[Documentation.PLURAL_EXPR(n)]; + return n === 1 ? singular : plural; + }, + + addTranslations: (catalog) => { + Object.assign(Documentation.TRANSLATIONS, catalog.messages); + Documentation.PLURAL_EXPR = new Function( + "n", + `return (${catalog.plural_expr})` + ); + Documentation.LOCALE = catalog.locale; + }, + + /** + * helper function to focus on search bar + */ + focusSearchBar: () => { + document.querySelectorAll("input[name=q]")[0]?.focus(); + }, + + /** + * Initialise the domain index toggle buttons + */ + initDomainIndexTable: () => { + const toggler = (el) => { + const idNumber = el.id.substr(7); + const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); + if (el.src.substr(-9) === "minus.png") { + el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; + toggledRows.forEach((el) => (el.style.display = "none")); + } else { + el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; + toggledRows.forEach((el) => (el.style.display = "")); + } + }; + + const togglerElements = document.querySelectorAll("img.toggler"); + togglerElements.forEach((el) => + el.addEventListener("click", (event) => toggler(event.currentTarget)) + ); + togglerElements.forEach((el) => (el.style.display = "")); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); + }, + + initOnKeyListeners: () => { + // only install a listener if it is really needed + if ( + !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS + ) + return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.altKey || event.ctrlKey || event.metaKey) return; + + if (!event.shiftKey) { + switch (event.key) { + case "ArrowLeft": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const prevLink = document.querySelector('link[rel="prev"]'); + if (prevLink && prevLink.href) { + window.location.href = prevLink.href; + event.preventDefault(); + } + break; + case "ArrowRight": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const nextLink = document.querySelector('link[rel="next"]'); + if (nextLink && nextLink.href) { + window.location.href = nextLink.href; + event.preventDefault(); + } + break; + } + } + + // some keyboard layouts may need Shift to get / + switch (event.key) { + case "/": + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; + Documentation.focusSearchBar(); + event.preventDefault(); + } + }); + }, +}; + +// quick alias for translations +const _ = Documentation.gettext; + +_ready(Documentation.init); diff --git a/_static/documentation_options.js b/_static/documentation_options.js new file mode 100644 index 00000000..00df563c --- /dev/null +++ b/_static/documentation_options.js @@ -0,0 +1,13 @@ +const DOCUMENTATION_OPTIONS = { + VERSION: '1.8.6', + LANGUAGE: 'en', + COLLAPSE_INDEX: false, + BUILDER: 'html', + FILE_SUFFIX: '.html', + LINK_SUFFIX: '.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '.txt', + NAVIGATION_WITH_KEYS: false, + SHOW_SEARCH_SUMMARY: true, + ENABLE_SEARCH_SHORTCUTS: true, +}; \ No newline at end of file diff --git a/_static/file.png b/_static/file.png new file mode 100644 index 00000000..a858a410 Binary files /dev/null and b/_static/file.png differ diff --git a/_static/jquery.js b/_static/jquery.js new file mode 100644 index 00000000..c4c6022f --- /dev/null +++ b/_static/jquery.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),y.elements=c+" "+a,j(b)}function f(a){var b=x[a[v]];return b||(b={},w++,a[v]=w,x[w]=b),b}function g(a,c,d){if(c||(c=b),q)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():u.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||t.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),q)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return y.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(y,b.frag)}function j(a){a||(a=b);var d=f(a);return!y.shivCSS||p||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),q||i(a,d),a}function k(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(l(b)));return g}function l(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(A+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function m(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+A+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function n(a){for(var b=a.length;b--;)a[b].removeNode()}function o(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,e,g=f(a),h=a.namespaces,i=a.parentWindow;return!B||a.printShived?a:("undefined"==typeof h[A]&&h.add(A),i.attachEvent("onbeforeprint",function(){b();for(var f,g,h,i=a.styleSheets,j=[],l=i.length,n=Array(l);l--;)n[l]=i[l];for(;h=n.pop();)if(!h.disabled&&z.test(h.media)){try{f=h.imports,g=f.length}catch(o){g=0}for(l=0;g>l;l++)n.push(f[l]);try{j.push(h.cssText)}catch(o){}}j=m(j.reverse().join("")),e=k(a),d=c(a,j)}),i.attachEvent("onafterprint",function(){n(e),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var p,q,r="3.7.3",s=a.html5||{},t=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,v="_html5shiv",w=0,x={};!function(){try{var a=b.createElement("a");a.innerHTML="",p="hidden"in a,q=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){p=!0,q=!0}}();var y={elements:s.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:r,shivCSS:s.shivCSS!==!1,supportsUnknownElements:q,shivMethods:s.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=y,j(b);var z=/^$|\b(?:all|print)\b/,A="html5shiv",B=!q&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();y.type+=" print",y.shivPrint=o,o(b),"object"==typeof module&&module.exports&&(module.exports=y)}("undefined"!=typeof window?window:this,document); \ No newline at end of file diff --git a/_static/js/html5shiv.min.js b/_static/js/html5shiv.min.js new file mode 100644 index 00000000..cd1c674f --- /dev/null +++ b/_static/js/html5shiv.min.js @@ -0,0 +1,4 @@ +/** +* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed +*/ +!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3-pre",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document); \ No newline at end of file diff --git a/_static/js/theme.js b/_static/js/theme.js new file mode 100644 index 00000000..1fddb6ee --- /dev/null +++ b/_static/js/theme.js @@ -0,0 +1 @@ +!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(i,o,function(e){return n[e]}.bind(null,o));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){t(1),n.exports=t(3)},function(n,e,t){(function(){var e="undefined"!=typeof window?window.jQuery:t(2);n.exports.ThemeNav={navBar:null,win:null,winScroll:!1,winResize:!1,linkScroll:!1,winPosition:0,winHeight:null,docHeight:null,isRunning:!1,enable:function(n){var t=this;void 0===n&&(n=!0),t.isRunning||(t.isRunning=!0,e((function(e){t.init(e),t.reset(),t.win.on("hashchange",t.reset),n&&t.win.on("scroll",(function(){t.linkScroll||t.winScroll||(t.winScroll=!0,requestAnimationFrame((function(){t.onScroll()})))})),t.win.on("resize",(function(){t.winResize||(t.winResize=!0,requestAnimationFrame((function(){t.onResize()})))})),t.onResize()})))},enableSticky:function(){this.enable(!0)},init:function(n){n(document);var e=this;this.navBar=n("div.wy-side-scroll:first"),this.win=n(window),n(document).on("click","[data-toggle='wy-nav-top']",(function(){n("[data-toggle='wy-nav-shift']").toggleClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift")})).on("click",".wy-menu-vertical .current ul li a",(function(){var t=n(this);n("[data-toggle='wy-nav-shift']").removeClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift"),e.toggleCurrent(t),e.hashChange()})).on("click","[data-toggle='rst-current-version']",(function(){n("[data-toggle='rst-versions']").toggleClass("shift-up")})),n("table.docutils:not(.field-list,.footnote,.citation)").wrap("
"),n("table.docutils.footnote").wrap("
"),n("table.docutils.citation").wrap("
"),n(".wy-menu-vertical ul").not(".simple").siblings("a").each((function(){var t=n(this);expand=n(''),expand.on("click",(function(n){return e.toggleCurrent(t),n.stopPropagation(),!1})),t.prepend(expand)}))},reset:function(){var n=encodeURI(window.location.hash)||"#";try{var e=$(".wy-menu-vertical"),t=e.find('[href="'+n+'"]');if(0===t.length){var i=$('.document [id="'+n.substring(1)+'"]').closest("div.section");0===(t=e.find('[href="#'+i.attr("id")+'"]')).length&&(t=e.find('[href="#"]'))}if(t.length>0){$(".wy-menu-vertical .current").removeClass("current").attr("aria-expanded","false"),t.addClass("current").attr("aria-expanded","true"),t.closest("li.toctree-l1").parent().addClass("current").attr("aria-expanded","true");for(let n=1;n<=10;n++)t.closest("li.toctree-l"+n).addClass("current").attr("aria-expanded","true");t[0].scrollIntoView()}}catch(n){console.log("Error expanding nav for anchor",n)}},onScroll:function(){this.winScroll=!1;var n=this.win.scrollTop(),e=n+this.winHeight,t=this.navBar.scrollTop()+(n-this.winPosition);n<0||e>this.docHeight||(this.navBar.scrollTop(t),this.winPosition=n)},onResize:function(){this.winResize=!1,this.winHeight=this.win.height(),this.docHeight=$(document).height()},hashChange:function(){this.linkScroll=!0,this.win.one("hashchange",(function(){this.linkScroll=!1}))},toggleCurrent:function(n){var e=n.closest("li");e.siblings("li.current").removeClass("current").attr("aria-expanded","false"),e.siblings().find("li.current").removeClass("current").attr("aria-expanded","false");var t=e.find("> ul li");t.length&&(t.removeClass("current").attr("aria-expanded","false"),e.toggleClass("current").attr("aria-expanded",(function(n,e){return"true"==e?"false":"true"})))}},"undefined"!=typeof window&&(window.SphinxRtdTheme={Navigation:n.exports.ThemeNav,StickyNav:n.exports.ThemeNav}),function(){for(var n=0,e=["ms","moz","webkit","o"],t=0;t0 + var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 + var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 + var s_v = "^(" + C + ")?" + v; // vowel in stem + + this.stemWord = function (w) { + var stem; + var suffix; + var firstch; + var origword = w; + + if (w.length < 3) + return w; + + var re; + var re2; + var re3; + var re4; + + firstch = w.substr(0,1); + if (firstch == "y") + w = firstch.toUpperCase() + w.substr(1); + + // Step 1a + re = /^(.+?)(ss|i)es$/; + re2 = /^(.+?)([^s])s$/; + + if (re.test(w)) + w = w.replace(re,"$1$2"); + else if (re2.test(w)) + w = w.replace(re2,"$1$2"); + + // Step 1b + re = /^(.+?)eed$/; + re2 = /^(.+?)(ed|ing)$/; + if (re.test(w)) { + var fp = re.exec(w); + re = new RegExp(mgr0); + if (re.test(fp[1])) { + re = /.$/; + w = w.replace(re,""); + } + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1]; + re2 = new RegExp(s_v); + if (re2.test(stem)) { + w = stem; + re2 = /(at|bl|iz)$/; + re3 = new RegExp("([^aeiouylsz])\\1$"); + re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re2.test(w)) + w = w + "e"; + else if (re3.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + else if (re4.test(w)) + w = w + "e"; + } + } + + // Step 1c + re = /^(.+?)y$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(s_v); + if (re.test(stem)) + w = stem + "i"; + } + + // Step 2 + re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step2list[suffix]; + } + + // Step 3 + re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step3list[suffix]; + } + + // Step 4 + re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + re2 = /^(.+?)(s|t)(ion)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + if (re.test(stem)) + w = stem; + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1] + fp[2]; + re2 = new RegExp(mgr1); + if (re2.test(stem)) + w = stem; + } + + // Step 5 + re = /^(.+?)e$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + re2 = new RegExp(meq1); + re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) + w = stem; + } + re = /ll$/; + re2 = new RegExp(mgr1); + if (re.test(w) && re2.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + + // and turn initial Y back to y + if (firstch == "y") + w = firstch.toLowerCase() + w.substr(1); + return w; + } +} + diff --git a/_static/minus.png b/_static/minus.png new file mode 100644 index 00000000..d96755fd Binary files /dev/null and b/_static/minus.png differ diff --git a/_static/plus.png b/_static/plus.png new file mode 100644 index 00000000..7107cec9 Binary files /dev/null and b/_static/plus.png differ diff --git a/_static/pygments.css b/_static/pygments.css new file mode 100644 index 00000000..84ab3030 --- /dev/null +++ b/_static/pygments.css @@ -0,0 +1,75 @@ +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #f8f8f8; } +.highlight .c { color: #3D7B7B; font-style: italic } /* Comment */ +.highlight .err { border: 1px solid #FF0000 } /* Error */ +.highlight .k { color: #008000; font-weight: bold } /* Keyword */ +.highlight .o { color: #666666 } /* Operator */ +.highlight .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #9C6500 } /* Comment.Preproc */ +.highlight .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ +.highlight .gr { color: #E40000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #008400 } /* Generic.Inserted */ +.highlight .go { color: #717171 } /* Generic.Output */ +.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #008000 } /* Keyword.Pseudo */ +.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #B00040 } /* Keyword.Type */ +.highlight .m { color: #666666 } /* Literal.Number */ +.highlight .s { color: #BA2121 } /* Literal.String */ +.highlight .na { color: #687822 } /* Name.Attribute */ +.highlight .nb { color: #008000 } /* Name.Builtin */ +.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ +.highlight .no { color: #880000 } /* Name.Constant */ +.highlight .nd { color: #AA22FF } /* Name.Decorator */ +.highlight .ni { color: #717171; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0000FF } /* Name.Function */ +.highlight .nl { color: #767600 } /* Name.Label */ +.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ +.highlight .nv { color: #19177C } /* Name.Variable */ +.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #666666 } /* Literal.Number.Bin */ +.highlight .mf { color: #666666 } /* Literal.Number.Float */ +.highlight .mh { color: #666666 } /* Literal.Number.Hex */ +.highlight .mi { color: #666666 } /* Literal.Number.Integer */ +.highlight .mo { color: #666666 } /* Literal.Number.Oct */ +.highlight .sa { color: #BA2121 } /* Literal.String.Affix */ +.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */ +.highlight .sc { color: #BA2121 } /* Literal.String.Char */ +.highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */ +.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #BA2121 } /* Literal.String.Double */ +.highlight .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */ +.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */ +.highlight .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */ +.highlight .sx { color: #008000 } /* Literal.String.Other */ +.highlight .sr { color: #A45A77 } /* Literal.String.Regex */ +.highlight .s1 { color: #BA2121 } /* Literal.String.Single */ +.highlight .ss { color: #19177C } /* Literal.String.Symbol */ +.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0000FF } /* Name.Function.Magic */ +.highlight .vc { color: #19177C } /* Name.Variable.Class */ +.highlight .vg { color: #19177C } /* Name.Variable.Global */ +.highlight .vi { color: #19177C } /* Name.Variable.Instance */ +.highlight .vm { color: #19177C } /* Name.Variable.Magic */ +.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/_static/searchtools.js b/_static/searchtools.js new file mode 100644 index 00000000..7918c3fa --- /dev/null +++ b/_static/searchtools.js @@ -0,0 +1,574 @@ +/* + * searchtools.js + * ~~~~~~~~~~~~~~~~ + * + * Sphinx JavaScript utilities for the full-text search. + * + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +/** + * Simple result scoring code. + */ +if (typeof Scorer === "undefined") { + var Scorer = { + // Implement the following function to further tweak the score for each result + // The function takes a result array [docname, title, anchor, descr, score, filename] + // and returns the new score. + /* + score: result => { + const [docname, title, anchor, descr, score, filename] = result + return score + }, + */ + + // query matches the full name of an object + objNameMatch: 11, + // or matches in the last dotted part of the object name + objPartialMatch: 6, + // Additive scores depending on the priority of the object + objPrio: { + 0: 15, // used to be importantResults + 1: 5, // used to be objectResults + 2: -5, // used to be unimportantResults + }, + // Used when the priority is not in the mapping. + objPrioDefault: 0, + + // query found in title + title: 15, + partialTitle: 7, + // query found in terms + term: 5, + partialTerm: 2, + }; +} + +const _removeChildren = (element) => { + while (element && element.lastChild) element.removeChild(element.lastChild); +}; + +/** + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping + */ +const _escapeRegExp = (string) => + string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string + +const _displayItem = (item, searchTerms, highlightTerms) => { + const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; + const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX; + const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; + const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; + const contentRoot = document.documentElement.dataset.content_root; + + const [docName, title, anchor, descr, score, _filename] = item; + + let listItem = document.createElement("li"); + let requestUrl; + let linkUrl; + if (docBuilder === "dirhtml") { + // dirhtml builder + let dirname = docName + "/"; + if (dirname.match(/\/index\/$/)) + dirname = dirname.substring(0, dirname.length - 6); + else if (dirname === "index/") dirname = ""; + requestUrl = contentRoot + dirname; + linkUrl = requestUrl; + } else { + // normal html builders + requestUrl = contentRoot + docName + docFileSuffix; + linkUrl = docName + docLinkSuffix; + } + let linkEl = listItem.appendChild(document.createElement("a")); + linkEl.href = linkUrl + anchor; + linkEl.dataset.score = score; + linkEl.innerHTML = title; + if (descr) { + listItem.appendChild(document.createElement("span")).innerHTML = + " (" + descr + ")"; + // highlight search terms in the description + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + } + else if (showSearchSummary) + fetch(requestUrl) + .then((responseData) => responseData.text()) + .then((data) => { + if (data) + listItem.appendChild( + Search.makeSearchSummary(data, searchTerms) + ); + // highlight search terms in the summary + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + }); + Search.output.appendChild(listItem); +}; +const _finishSearch = (resultCount) => { + Search.stopPulse(); + Search.title.innerText = _("Search Results"); + if (!resultCount) + Search.status.innerText = Documentation.gettext( + "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." + ); + else + Search.status.innerText = _( + `Search finished, found ${resultCount} page(s) matching the search query.` + ); +}; +const _displayNextItem = ( + results, + resultCount, + searchTerms, + highlightTerms, +) => { + // results left, load the summary and display it + // this is intended to be dynamic (don't sub resultsCount) + if (results.length) { + _displayItem(results.pop(), searchTerms, highlightTerms); + setTimeout( + () => _displayNextItem(results, resultCount, searchTerms, highlightTerms), + 5 + ); + } + // search finished, update title and status message + else _finishSearch(resultCount); +}; + +/** + * Default splitQuery function. Can be overridden in ``sphinx.search`` with a + * custom function per language. + * + * The regular expression works by splitting the string on consecutive characters + * that are not Unicode letters, numbers, underscores, or emoji characters. + * This is the same as ``\W+`` in Python, preserving the surrogate pair area. + */ +if (typeof splitQuery === "undefined") { + var splitQuery = (query) => query + .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu) + .filter(term => term) // remove remaining empty strings +} + +/** + * Search Module + */ +const Search = { + _index: null, + _queued_query: null, + _pulse_status: -1, + + htmlToText: (htmlString) => { + const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html'); + htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() }); + const docContent = htmlElement.querySelector('[role="main"]'); + if (docContent !== undefined) return docContent.textContent; + console.warn( + "Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template." + ); + return ""; + }, + + init: () => { + const query = new URLSearchParams(window.location.search).get("q"); + document + .querySelectorAll('input[name="q"]') + .forEach((el) => (el.value = query)); + if (query) Search.performSearch(query); + }, + + loadIndex: (url) => + (document.body.appendChild(document.createElement("script")).src = url), + + setIndex: (index) => { + Search._index = index; + if (Search._queued_query !== null) { + const query = Search._queued_query; + Search._queued_query = null; + Search.query(query); + } + }, + + hasIndex: () => Search._index !== null, + + deferQuery: (query) => (Search._queued_query = query), + + stopPulse: () => (Search._pulse_status = -1), + + startPulse: () => { + if (Search._pulse_status >= 0) return; + + const pulse = () => { + Search._pulse_status = (Search._pulse_status + 1) % 4; + Search.dots.innerText = ".".repeat(Search._pulse_status); + if (Search._pulse_status >= 0) window.setTimeout(pulse, 500); + }; + pulse(); + }, + + /** + * perform a search for something (or wait until index is loaded) + */ + performSearch: (query) => { + // create the required interface elements + const searchText = document.createElement("h2"); + searchText.textContent = _("Searching"); + const searchSummary = document.createElement("p"); + searchSummary.classList.add("search-summary"); + searchSummary.innerText = ""; + const searchList = document.createElement("ul"); + searchList.classList.add("search"); + + const out = document.getElementById("search-results"); + Search.title = out.appendChild(searchText); + Search.dots = Search.title.appendChild(document.createElement("span")); + Search.status = out.appendChild(searchSummary); + Search.output = out.appendChild(searchList); + + const searchProgress = document.getElementById("search-progress"); + // Some themes don't use the search progress node + if (searchProgress) { + searchProgress.innerText = _("Preparing search..."); + } + Search.startPulse(); + + // index already loaded, the browser was quick! + if (Search.hasIndex()) Search.query(query); + else Search.deferQuery(query); + }, + + /** + * execute search (requires search index to be loaded) + */ + query: (query) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + const allTitles = Search._index.alltitles; + const indexEntries = Search._index.indexentries; + + // stem the search terms and add them to the correct list + const stemmer = new Stemmer(); + const searchTerms = new Set(); + const excludedTerms = new Set(); + const highlightTerms = new Set(); + const objectTerms = new Set(splitQuery(query.toLowerCase().trim())); + splitQuery(query.trim()).forEach((queryTerm) => { + const queryTermLower = queryTerm.toLowerCase(); + + // maybe skip this "word" + // stopwords array is from language_data.js + if ( + stopwords.indexOf(queryTermLower) !== -1 || + queryTerm.match(/^\d+$/) + ) + return; + + // stem the word + let word = stemmer.stemWord(queryTermLower); + // select the correct list + if (word[0] === "-") excludedTerms.add(word.substr(1)); + else { + searchTerms.add(word); + highlightTerms.add(queryTermLower); + } + }); + + if (SPHINX_HIGHLIGHT_ENABLED) { // set in sphinx_highlight.js + localStorage.setItem("sphinx_highlight_terms", [...highlightTerms].join(" ")) + } + + // console.debug("SEARCH: searching for:"); + // console.info("required: ", [...searchTerms]); + // console.info("excluded: ", [...excludedTerms]); + + // array of [docname, title, anchor, descr, score, filename] + let results = []; + _removeChildren(document.getElementById("search-progress")); + + const queryLower = query.toLowerCase(); + for (const [title, foundTitles] of Object.entries(allTitles)) { + if (title.toLowerCase().includes(queryLower) && (queryLower.length >= title.length/2)) { + for (const [file, id] of foundTitles) { + let score = Math.round(100 * queryLower.length / title.length) + results.push([ + docNames[file], + titles[file] !== title ? `${titles[file]} > ${title}` : title, + id !== null ? "#" + id : "", + null, + score, + filenames[file], + ]); + } + } + } + + // search for explicit entries in index directives + for (const [entry, foundEntries] of Object.entries(indexEntries)) { + if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) { + for (const [file, id] of foundEntries) { + let score = Math.round(100 * queryLower.length / entry.length) + results.push([ + docNames[file], + titles[file], + id ? "#" + id : "", + null, + score, + filenames[file], + ]); + } + } + } + + // lookup as object + objectTerms.forEach((term) => + results.push(...Search.performObjectSearch(term, objectTerms)) + ); + + // lookup as search terms in fulltext + results.push(...Search.performTermsSearch(searchTerms, excludedTerms)); + + // let the scorer override scores with a custom scoring function + if (Scorer.score) results.forEach((item) => (item[4] = Scorer.score(item))); + + // now sort the results by score (in opposite order of appearance, since the + // display function below uses pop() to retrieve items) and then + // alphabetically + results.sort((a, b) => { + const leftScore = a[4]; + const rightScore = b[4]; + if (leftScore === rightScore) { + // same score: sort alphabetically + const leftTitle = a[1].toLowerCase(); + const rightTitle = b[1].toLowerCase(); + if (leftTitle === rightTitle) return 0; + return leftTitle > rightTitle ? -1 : 1; // inverted is intentional + } + return leftScore > rightScore ? 1 : -1; + }); + + // remove duplicate search results + // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept + let seen = new Set(); + results = results.reverse().reduce((acc, result) => { + let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(','); + if (!seen.has(resultStr)) { + acc.push(result); + seen.add(resultStr); + } + return acc; + }, []); + + results = results.reverse(); + + // for debugging + //Search.lastresults = results.slice(); // a copy + // console.info("search results:", Search.lastresults); + + // print the results + _displayNextItem(results, results.length, searchTerms, highlightTerms); + }, + + /** + * search for object names + */ + performObjectSearch: (object, objectTerms) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const objects = Search._index.objects; + const objNames = Search._index.objnames; + const titles = Search._index.titles; + + const results = []; + + const objectSearchCallback = (prefix, match) => { + const name = match[4] + const fullname = (prefix ? prefix + "." : "") + name; + const fullnameLower = fullname.toLowerCase(); + if (fullnameLower.indexOf(object) < 0) return; + + let score = 0; + const parts = fullnameLower.split("."); + + // check for different match types: exact matches of full name or + // "last name" (i.e. last dotted part) + if (fullnameLower === object || parts.slice(-1)[0] === object) + score += Scorer.objNameMatch; + else if (parts.slice(-1)[0].indexOf(object) > -1) + score += Scorer.objPartialMatch; // matches in last name + + const objName = objNames[match[1]][2]; + const title = titles[match[0]]; + + // If more than one term searched for, we require other words to be + // found in the name/title/description + const otherTerms = new Set(objectTerms); + otherTerms.delete(object); + if (otherTerms.size > 0) { + const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase(); + if ( + [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0) + ) + return; + } + + let anchor = match[3]; + if (anchor === "") anchor = fullname; + else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname; + + const descr = objName + _(", in ") + title; + + // add custom score for some objects according to scorer + if (Scorer.objPrio.hasOwnProperty(match[2])) + score += Scorer.objPrio[match[2]]; + else score += Scorer.objPrioDefault; + + results.push([ + docNames[match[0]], + fullname, + "#" + anchor, + descr, + score, + filenames[match[0]], + ]); + }; + Object.keys(objects).forEach((prefix) => + objects[prefix].forEach((array) => + objectSearchCallback(prefix, array) + ) + ); + return results; + }, + + /** + * search for full-text terms in the index + */ + performTermsSearch: (searchTerms, excludedTerms) => { + // prepare search + const terms = Search._index.terms; + const titleTerms = Search._index.titleterms; + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + + const scoreMap = new Map(); + const fileMap = new Map(); + + // perform the search on the required terms + searchTerms.forEach((word) => { + const files = []; + const arr = [ + { files: terms[word], score: Scorer.term }, + { files: titleTerms[word], score: Scorer.title }, + ]; + // add support for partial matches + if (word.length > 2) { + const escapedWord = _escapeRegExp(word); + Object.keys(terms).forEach((term) => { + if (term.match(escapedWord) && !terms[word]) + arr.push({ files: terms[term], score: Scorer.partialTerm }); + }); + Object.keys(titleTerms).forEach((term) => { + if (term.match(escapedWord) && !titleTerms[word]) + arr.push({ files: titleTerms[word], score: Scorer.partialTitle }); + }); + } + + // no match but word was a required one + if (arr.every((record) => record.files === undefined)) return; + + // found search word in contents + arr.forEach((record) => { + if (record.files === undefined) return; + + let recordFiles = record.files; + if (recordFiles.length === undefined) recordFiles = [recordFiles]; + files.push(...recordFiles); + + // set score for the word in each file + recordFiles.forEach((file) => { + if (!scoreMap.has(file)) scoreMap.set(file, {}); + scoreMap.get(file)[word] = record.score; + }); + }); + + // create the mapping + files.forEach((file) => { + if (fileMap.has(file) && fileMap.get(file).indexOf(word) === -1) + fileMap.get(file).push(word); + else fileMap.set(file, [word]); + }); + }); + + // now check if the files don't contain excluded terms + const results = []; + for (const [file, wordList] of fileMap) { + // check if all requirements are matched + + // as search terms with length < 3 are discarded + const filteredTermCount = [...searchTerms].filter( + (term) => term.length > 2 + ).length; + if ( + wordList.length !== searchTerms.size && + wordList.length !== filteredTermCount + ) + continue; + + // ensure that none of the excluded terms is in the search result + if ( + [...excludedTerms].some( + (term) => + terms[term] === file || + titleTerms[term] === file || + (terms[term] || []).includes(file) || + (titleTerms[term] || []).includes(file) + ) + ) + break; + + // select one (max) score for the file. + const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w])); + // add result to the result list + results.push([ + docNames[file], + titles[file], + "", + null, + score, + filenames[file], + ]); + } + return results; + }, + + /** + * helper function to return a node containing the + * search summary for a given text. keywords is a list + * of stemmed words. + */ + makeSearchSummary: (htmlText, keywords) => { + const text = Search.htmlToText(htmlText); + if (text === "") return null; + + const textLower = text.toLowerCase(); + const actualStartPosition = [...keywords] + .map((k) => textLower.indexOf(k.toLowerCase())) + .filter((i) => i > -1) + .slice(-1)[0]; + const startWithContext = Math.max(actualStartPosition - 120, 0); + + const top = startWithContext === 0 ? "" : "..."; + const tail = startWithContext + 240 < text.length ? "..." : ""; + + let summary = document.createElement("p"); + summary.classList.add("context"); + summary.textContent = top + text.substr(startWithContext, 240).trim() + tail; + + return summary; + }, +}; + +_ready(Search.init); diff --git a/_static/sphinx_highlight.js b/_static/sphinx_highlight.js new file mode 100644 index 00000000..8a96c69a --- /dev/null +++ b/_static/sphinx_highlight.js @@ -0,0 +1,154 @@ +/* Highlighting utilities for Sphinx HTML documentation. */ +"use strict"; + +const SPHINX_HIGHLIGHT_ENABLED = true + +/** + * highlight a given string on a node by wrapping it in + * span elements with the given class name. + */ +const _highlight = (node, addItems, text, className) => { + if (node.nodeType === Node.TEXT_NODE) { + const val = node.nodeValue; + const parent = node.parentNode; + const pos = val.toLowerCase().indexOf(text); + if ( + pos >= 0 && + !parent.classList.contains(className) && + !parent.classList.contains("nohighlight") + ) { + let span; + + const closestNode = parent.closest("body, svg, foreignObject"); + const isInSVG = closestNode && closestNode.matches("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.classList.add(className); + } + + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + const rest = document.createTextNode(val.substr(pos + text.length)); + parent.insertBefore( + span, + parent.insertBefore( + rest, + node.nextSibling + ) + ); + node.nodeValue = val.substr(0, pos); + /* There may be more occurrences of search term in this node. So call this + * function recursively on the remaining fragment. + */ + _highlight(rest, addItems, text, className); + + if (isInSVG) { + const rect = document.createElementNS( + "http://www.w3.org/2000/svg", + "rect" + ); + const bbox = parent.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute("class", className); + addItems.push({ parent: parent, target: rect }); + } + } + } else if (node.matches && !node.matches("button, select, textarea")) { + node.childNodes.forEach((el) => _highlight(el, addItems, text, className)); + } +}; +const _highlightText = (thisNode, text, className) => { + let addItems = []; + _highlight(thisNode, addItems, text, className); + addItems.forEach((obj) => + obj.parent.insertAdjacentElement("beforebegin", obj.target) + ); +}; + +/** + * Small JavaScript module for the documentation. + */ +const SphinxHighlight = { + + /** + * highlight the search words provided in localstorage in the text + */ + highlightSearchWords: () => { + if (!SPHINX_HIGHLIGHT_ENABLED) return; // bail if no highlight + + // get and clear terms from localstorage + const url = new URL(window.location); + const highlight = + localStorage.getItem("sphinx_highlight_terms") + || url.searchParams.get("highlight") + || ""; + localStorage.removeItem("sphinx_highlight_terms") + url.searchParams.delete("highlight"); + window.history.replaceState({}, "", url); + + // get individual terms from highlight string + const terms = highlight.toLowerCase().split(/\s+/).filter(x => x); + if (terms.length === 0) return; // nothing to do + + // There should never be more than one element matching "div.body" + const divBody = document.querySelectorAll("div.body"); + const body = divBody.length ? divBody[0] : document.querySelector("body"); + window.setTimeout(() => { + terms.forEach((term) => _highlightText(body, term, "highlighted")); + }, 10); + + const searchBox = document.getElementById("searchbox"); + if (searchBox === null) return; + searchBox.appendChild( + document + .createRange() + .createContextualFragment( + '" + ) + ); + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords: () => { + document + .querySelectorAll("#searchbox .highlight-link") + .forEach((el) => el.remove()); + document + .querySelectorAll("span.highlighted") + .forEach((el) => el.classList.remove("highlighted")); + localStorage.removeItem("sphinx_highlight_terms") + }, + + initEscapeListener: () => { + // only install a listener if it is really needed + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return; + if (DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS && (event.key === "Escape")) { + SphinxHighlight.hideSearchWords(); + event.preventDefault(); + } + }); + }, +}; + +_ready(() => { + /* Do not call highlightSearchWords() when we are on the search page. + * It will highlight words from the *previous* search query. + */ + if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords(); + SphinxHighlight.initEscapeListener(); +}); diff --git a/api/api.html b/api/api.html new file mode 100644 index 00000000..e3a2e7e6 --- /dev/null +++ b/api/api.html @@ -0,0 +1,1030 @@ + + + + + + + pyflyby API — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

pyflyby API

+
+

Contents:

+ +
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/autoimp.html b/api/autoimp.html new file mode 100644 index 00000000..09a64599 --- /dev/null +++ b/api/autoimp.html @@ -0,0 +1,1343 @@ + + + + + + + _autoimp module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_autoimp module

+
+
+exception pyflyby._autoimp.LoadSymbolError
+
+ +
+
+class pyflyby._autoimp.ScopeStack(arg, _class_delayed=None)
+

A stack of namespace scopes, as a tuple of dict s.

+

Each entry is a dict.

+

Ordered from most-global to most-local. +Builtins are always included. +Duplicates are removed.

+
+
+_abc_impl = <_abc._abc_data object>
+
+ +
+
+_cached_has_star_import = False
+
+ +
+
+clone_top()
+

Return a new ScopeStack referencing the same namespaces as self, +but cloning the topmost namespace (and aliasing the others).

+
+ +
+
+has_star_import()
+

Return whether there are any star-imports in this ScopeStack. +Only relevant in AST-based static analysis mode.

+
+ +
+
+merged_to_two()
+

Return a 2-tuple of dicts.

+

These can be used for functions that take a globals and locals +argument, such as eval.

+

If there is only one entry, then return it twice.

+

If there are more than two entries, then create a new dict that merges +the more-global ones. The most-local stack will alias the dict from +the existing ScopeStack.

+
+
Return type:
+

tuple of (dict, dict)

+
+
+
+ +
+
+with_new_scope(include_class_scopes=False, new_class_scope=False, unhide_classdef=False)
+

Return a new ScopeStack with an additional empty scope.

+
+
Parameters:
+
    +
  • include_class_scopes – Whether to include previous scopes that are meant for ClassDefs.

  • +
  • new_class_scope – Whether the new scope is for a ClassDef.

  • +
  • unhide_classdef – Unhide class definitiion scope (when we enter a method)

  • +
+
+
Return type:
+

ScopeStack

+
+
+
+ +
+ +
+
+class pyflyby._autoimp._ClassScope
+
+ +
+
+pyflyby._autoimp._IMPORT_FAILED = {}
+

Set of imports we’ve already attempted and failed.

+
+ +
+
+class pyflyby._autoimp._MissingImportFinder(scopestack, find_unused_imports=False, parse_docstrings=False)
+

A helper class to be used only by _find_missing_imports_in_ast.

+

This class visits every AST node and collects symbols that require +importing. A symbol requires importing if it is not already imported or +otherwise defined/assigned in this scope.

+

For attributes like “foo.bar.baz”, we need to be more sophisticated:

+

Suppose the user imports “foo.bar” and then accesses “foo.bar.baz.quux”. +Baz may be already available just by importing foo.bar, or it may require +further import. We decide as follows. If foo.bar is not a module, then +we assume whatever’s under it can’t be imported. If foo.bar is a module +but does not have a ‘baz’ attribute, then it does require import.

+
+
+_NewScopeCtx(**kwargs)
+

Context manager that temporarily pushes a new empty namespace onto the +stack of namespaces.

+
+ +
+
+_UpScopeCtx()
+

Context manager that temporarily moves up one in the scope stack

+
+ +
+
+_check_load(fullname, scopestack, lineno)
+

Check if the symbol needs import. (As a side effect, if the object +is a _UseChecker, this will mark it as used.

+

TODO: It would be +better to refactor symbol_needs_import so that it just returns the +object it found, and we mark it as used here.)

+
+ +
+
+_finish_deferred_load_checks()
+
+ +
+
+_get_scope_info()
+
+ +
+
+_remove_from_missing_imports(fullname)
+
+ +
+
+_scan_node(node)
+
+ +
+
+_scan_unused_imports()
+
+ +
+
+_visit_Load(fullname)
+
+ +
+
+_visit_Load_defered(fullname)
+
+ +
+
+_visit_Load_defered_global(fullname)
+

Some things will be resolved in global scope later.

+
+ +
+
+_visit_Load_immediate(fullname)
+
+ +
+
+_visit_Store(fullname, value=None)
+
+ +
+
+_visit_StoreImport(node, modulename)
+
+ +
+
+_visit__all__(node)
+
+ +
+
+_visit_fullname(fullname, ctx)
+
+ +
+
+_visit_typecomment(typecomment)
+

Warning, when a type comment the node is a string, not an ast node. +We also get two types of type comments:

+

The signature one just after a function definition

+
+
+
def foo(a):

# type: int -> None +pass

+
+
+
+

And the variable annotation ones:

+
+
+
def foo(a #type: int

): +pass

+
+
+
+

ast parse “func_type” mode only support the first one.

+
+ +
+
+find_missing_imports(node)
+
+ +
+
+generic_visit(node)
+

Generic visitor that visits all of the node’s field values, in the +order declared by node._fields.

+

Called if no explicit visitor function exists for a node.

+
+ +
+
+scan_for_import_issues(codeblock)
+
+ +
+
+visit(node)
+

Visit a node.

+
+
+
+ +
+
+visit_Assign(node)
+
+ +
+
+visit_AsyncFunctionDef(node)
+
+ +
+
+visit_Attribute(node)
+
+ +
+
+visit_ClassDef(node)
+
+ +
+
+visit_Delete(node)
+
+ +
+
+visit_Dict(node)
+
+ +
+
+visit_DictComp(node)
+
+ +
+
+visit_ExceptHandler(node)
+
+ +
+
+visit_FunctionDef(node)
+
+ +
+
+visit_GeneratorExp(node)
+
+ +
+
+visit_ImportFrom(node)
+
+ +
+
+visit_Lambda(node)
+
+ +
+
+visit_ListComp(node)
+
+ +
+
+visit_Name(node)
+
+ +
+
+visit_SetComp(node)
+
+ +
+
+visit_alias(node, modulename=None)
+
+ +
+
+visit_arg(node)
+
+ +
+
+visit_arguments(node)
+
+ +
+
+visit_comprehension(node)
+
+ +
+ +
+
+class pyflyby._autoimp._UseChecker(name, source, lineno)
+

An object that can check whether it was used.

+
+
+used = False
+
+ +
+ +
+
+pyflyby._autoimp._find_earliest_backjump_label(bytecode)
+

Find the earliest target of a backward jump.

+

These normally represent loops.

+

For example, given the source code:

+
>>> def f():
+...     if foo1():
+...         foo2()
+...     else:
+...         foo3()
+...     foo4()
+...     while foo5():  # L7
+...         foo6()
+
+
+

The earliest target of a backward jump would be the ‘while’ loop at L7, at +bytecode offset 38:

+
>>> _find_earliest_backjump_label(f.__code__.co_code) 
+38
+
+
+

Note that in this example there are earlier targets of jumps at bytecode +offsets 20 and 28, but those are targets of _forward_ jumps, and the +clients of this function care about the earliest _backward_ jump.

+

If there are no backward jumps, return an offset that points after the end +of the bytecode.

+
+
Parameters:
+

bytecode (bytes) – Compiled bytecode, e.g. function.__code__.co_code.

+
+
Return type:
+

int

+
+
Returns:
+

The earliest target of a backward jump, as an offset into the bytecode.

+
+
+
+ +
+
+pyflyby._autoimp._find_loads_without_stores_in_code(co, loads_without_stores)
+

Find global LOADs without corresponding STOREs, by disassembling code. +Recursive helper for _find_missing_imports_in_code.

+
+
Parameters:
+
    +
  • co (types.CodeType) – Code object, e.g. function.__code__

  • +
  • loads_without_stores (set) – Mutable set to which we add loads without stores.

  • +
+
+
Returns:
+

None

+
+
+
+ +
+
+pyflyby._autoimp._find_missing_imports_in_ast(node, namespaces)
+

Find missing imports in an AST node. +Helper function to find_missing_imports.

+
>>> node = ast.parse("import numpy; numpy.arange(x) + arange(x)")
+>>> _find_missing_imports_in_ast(node, [{}])
+[DottedIdentifier('arange'), DottedIdentifier('x')]
+
+
+
+
Return type:
+

list of DottedIdentifier

+
+
+
+ +
+
+pyflyby._autoimp._find_missing_imports_in_code(co, namespaces)
+

Find missing imports in a code object. +Helper function to find_missing_imports.

+
>>> f = lambda: foo.bar(x) + baz(y)
+>>> [str(m) for m in _find_missing_imports_in_code(f.__code__, [{}])]
+['baz', 'foo.bar', 'x', 'y']
+
+
+
>>> f = lambda x: (lambda: x+y)
+>>> _find_missing_imports_in_code(f.__code__, [{}])
+[DottedIdentifier('y')]
+
+
+
+
Return type:
+

list of str

+
+
+
+ +
+
+pyflyby._autoimp._op(c)
+
+ +
+
+pyflyby._autoimp._try_import(imp, namespace)
+

Try to execute an import. Import the result into the namespace +namespace.

+

Print to stdout what we’re about to do.

+

Only import into namespace if we won’t clobber an existing definition.

+
+
Parameters:
+
    +
  • imp (Import or str) – The import to execute, e.g. “from numpy import arange”

  • +
  • namespace (dict) – Namespace to import into.

  • +
+
+
Returns:
+

True on success, False on failure

+
+
+
+ +
+
+pyflyby._autoimp.auto_import_symbol(fullname, namespaces, db=None, autoimported=None, post_import_hook=None)
+

Try to auto-import a single name.

+
+
Parameters:
+
    +
  • fullname (str) – Fully-qualified module name, e.g. “sqlalchemy.orm”.

  • +
  • namespaces (list of dict, e.g. [globals()].) – Namespaces to check. Namespace[-1] is the namespace to import into.

  • +
  • db (ImportDB) – Import database to use.

  • +
  • autoimported – If not None, then a dictionary of identifiers already attempted. +auto_import will not attempt to auto-import symbols already in this +dictionary, and will add attempted symbols to this dictionary, with +value True if the autoimport succeeded, or False if the autoimport +did not succeed.

  • +
  • post_import_hook (callable) – A callable that is invoked if an import was successfully made. +It is invoked with the Import object representing the successful import

  • +
+
+
Return type:
+

bool

+
+
Returns:
+

True if the symbol was already in the namespace, or the auto-import +succeeded; False if the auto-import failed.

+
+
+
+ +
+
+pyflyby._autoimp.clear_failed_imports_cache()
+

Clear the cache of previously failed imports.

+
+ +
+
+pyflyby._autoimp.get_known_import(fullname, db=None)
+

Get the deepest known import.

+

For example, suppose:

+
+
    +
  • The user accessed “foo.bar.baz”,

  • +
  • We know imports for “foo”, “foo.bar”, and “foo.bar.quux”.

  • +
+
+

Then we return “import foo.bar”.

+
+
Parameters:
+

fullname (DottedIdentifier) – Fully-qualified name, such as “scipy.interpolate”

+
+
+
+ +
+
+pyflyby._autoimp.load_symbol(fullname, namespaces, autoimport=False, db=None, autoimported=None)
+

Load the symbol fullname.

+
>>> import os
+>>> load_symbol("os.path.join.__name__", {"os": os})
+'join'
+
+
+
>>> load_symbol("os.path.join.asdf", {"os": os})
+Traceback (most recent call last):
+...
+pyflyby._autoimp.LoadSymbolError: os.path.join.asdf: AttributeError: 'function' object has no attribute 'asdf'
+
+
+
>>> load_symbol("os.path.join", {})
+Traceback (most recent call last):
+...
+pyflyby._autoimp.LoadSymbolError: os.path.join: NameError: os
+
+
+
+
Parameters:
+
    +
  • fullname (str) – Fully-qualified symbol name, e.g. “os.path.join”.

  • +
  • namespaces (dict or list of dict) – Namespaces to check.

  • +
  • autoimport – If False (default), the symbol must already be imported. +If True, then auto-import the symbol first.

  • +
  • db (ImportDB) – Import database to use when autoimport=True.

  • +
  • autoimported – If not None, then a dictionary of identifiers already attempted. +auto_import will not attempt to auto-import symbols already in this +dictionary, and will add attempted symbols to this dictionary, with +value True if the autoimport succeeded, or False if the autoimport +did not succeed.

  • +
+
+
Returns:
+

Object.

+
+
Raises:
+

LoadSymbolError – Object was not found or there was another exception.

+
+
+
+ +
+
+pyflyby._autoimp.scan_for_import_issues(codeblock, find_unused_imports=True, parse_docstrings=False)
+

Find missing and unused imports, by lineno.

+
>>> arg = "import numpy, aa.bb as cc\nnumpy.arange(x)\narange(x)"
+>>> missing, unused = scan_for_import_issues(arg)
+>>> missing
+[(2, DottedIdentifier('x')), (3, DottedIdentifier('arange')), (3, DottedIdentifier('x'))]
+>>> unused
+[(1, Import('from aa import bb as cc'))]
+
+
+
+
Parameters:
+

parse_docstrings

Whether to parse docstrings. +Compare the following examples. When parse_docstrings=True, ‘bar’ is +not considered unused because there is a string that references it in +braces:

+
>>> scan_for_import_issues("import foo as bar, baz\n'{bar}'\n")
+([], [(1, Import('import baz')), (1, Import('import foo as bar'))])
+>>> scan_for_import_issues("import foo as bar, baz\n'{bar}'\n", parse_docstrings=True)
+([], [(1, Import('import baz'))])
+
+
+

+
+
+
+ +
+
+pyflyby._autoimp.symbol_needs_import(fullname, namespaces)
+

Return whether fullname is a symbol that needs to be imported, given +the current namespace scopes.

+

A symbol needs importing if it is not previously imported or otherwise +assigned. namespaces normally includes builtins and globals as well as +symbols imported/assigned locally within the scope.

+

If the user requested “foo.bar.baz”, and we see that “foo.bar” exists +and is not a module, we assume nothing under foo.bar needs import. +This is intentional because (1) the import would not match what is +already in the namespace, and (2) we don’t want to do call +getattr(foo.bar, “baz”), since that could invoke code that is slow or +has side effects.

+
+
Parameters:
+
    +
  • fullname (DottedIdentifier) – Fully-qualified symbol name, e.g. “os.path.join”.

  • +
  • namespaces (list of dict) – Stack of namespaces to search for existing items.

  • +
+
+
Return type:
+

bool

+
+
Returns:
+

True if fullname needs import, else False

+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/cmdline.html b/api/cmdline.html new file mode 100644 index 00000000..9719122c --- /dev/null +++ b/api/cmdline.html @@ -0,0 +1,901 @@ + + + + + + + _cmdline module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_cmdline module

+
+
+exception pyflyby._cmdline.AbortActions
+
+ +
+
+exception pyflyby._cmdline.Exit1
+
+ +
+
+class pyflyby._cmdline.Modifier(modifier, filename)
+
+
+_tempfile()
+
+ +
+
+input_content
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+input_content_filename
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+output_content
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+output_content_filename
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+ +
+
+pyflyby._cmdline._default_on_error(filename)
+
+ +
+
+pyflyby._cmdline._sigpipe_handler(*args)
+
+ +
+
+pyflyby._cmdline.action_exit1(m)
+
+ +
+
+pyflyby._cmdline.action_external_command(command)
+
+ +
+
+pyflyby._cmdline.action_ifchanged(m)
+
+ +
+
+pyflyby._cmdline.action_print(m)
+
+ +
+
+pyflyby._cmdline.action_query(prompt='Proceed?')
+
+ +
+
+pyflyby._cmdline.action_replace(m)
+
+ +
+
+pyflyby._cmdline.filename_args(args, on_error=<function _default_on_error>)
+

Return list of filenames given command-line arguments.

+
+
Return type:
+

list of Filename

+
+
+
+ +
+
+pyflyby._cmdline.hfmt(s)
+
+ +
+
+pyflyby._cmdline.maindoc()
+
+ +
+
+pyflyby._cmdline.parse_args(addopts=None, import_format_params=False, modify_action_params=False, defaults=None)
+

Do setup for a top-level script and parse arguments.

+
+ +
+
+pyflyby._cmdline.print_version_and_exit(extra=None)
+
+ +
+
+pyflyby._cmdline.process_actions(filenames, actions, modify_function, reraise_exceptions=())
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+pyflyby._cmdline.syntax(message=None, usage=None)
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/comms.html b/api/comms.html new file mode 100644 index 00000000..d65fbcb3 --- /dev/null +++ b/api/comms.html @@ -0,0 +1,792 @@ + + + + + + + _comms module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_comms module

+
+
+pyflyby._comms._reformat_helper(input_code, imports)
+
+ +
+
+pyflyby._comms._register_target(target_name)
+
+ +
+
+pyflyby._comms.collect_code_with_imports_on_top(imports, cell_array)
+
+ +
+
+pyflyby._comms.comm_close_handler(comm, message)
+
+ +
+
+pyflyby._comms.comm_open_handler(comm, message)
+

Handles comm_open message for pyflyby custom comm messages. +https://jupyter-client.readthedocs.io/en/stable/messaging.html#opening-a-comm.

+

Handler for all PYFLYBY custom comm messages that are opened by the frontend +(at this point, just the jupyterlab frontend does this).

+
+ +
+
+pyflyby._comms.extract_import_statements(text)
+

This is a util for notebook interactions and extracts import statements +from some python code.

+
+
Parameters:
+

code (str) – The code from which import statements have to be extracted

+
+
Returns:
+

The first returned value is a list of all import +statements. The second returned value is the remaining code after +extracting the import statements.

+
+
Return type:
+

(list[str], str)

+
+
+
+ +
+
+pyflyby._comms.in_jupyter()
+
+ +
+
+pyflyby._comms.initialize_comms()
+
+ +
+
+pyflyby._comms.remove_comms()
+
+ +
+
+pyflyby._comms.run_tidy_imports(code)
+
+ +
+
+pyflyby._comms.send_comm_message(target_name, msg)
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/dbg.html b/api/dbg.html new file mode 100644 index 00000000..a917e739 --- /dev/null +++ b/api/dbg.html @@ -0,0 +1,1011 @@ + + + + + + + _dbg module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_dbg module

+
+
+exception pyflyby._dbg.DebuggerAttachTimeoutError
+
+ +
+
+class pyflyby._dbg.Pty
+
+
+communicate()
+
+ +
+ +
+
+pyflyby._dbg._DebuggerCtx(tty='/dev/tty')
+

A context manager that sets up the environment (stdio, sys hooks) for a +debugger, initializes IPython if necessary, and creates a debugger instance.

+
+
Returns:
+

Context manager that yields a Pdb instance.

+
+
+
+ +
+
+pyflyby._dbg._DisplayHookCtx()
+

Context manager that resets sys.displayhook to the default value upon +entry, and restores the pre-context value upon exit.

+
+ +
+
+pyflyby._dbg._ExceptHookCtx()
+

Context manager that restores sys.excepthook upon exit.

+
+ +
+
+pyflyby._dbg._FdCtx(target_fd, src_fd)
+
+ +
+
+exception pyflyby._dbg._NoTtyError
+
+ +
+
+pyflyby._dbg._StdioCtx(tty='/dev/tty')
+

Within the context, force fd {0, 1, 2}, sys.__{stdin,stdout,stderr}__, +sys.{stdin,stdout,stderr} to fd. This allows us to use the debugger even +if stdio is otherwise redirected.

+
+
Parameters:
+

tty (int or str) – Tty to use. Either a file descriptor or a name of a tty.

+
+
+
+ +
+
+pyflyby._dbg._abbrev_filename(filename)
+
+ +
+
+pyflyby._dbg._debug_code(arg, globals=None, locals=None, auto_import=True, tty='/dev/tty')
+

Run code under the debugger.

+
+
+
+ +
+
+pyflyby._dbg._debug_exception(*exc_info, **kwargs)
+

Debug an exception – print a stack trace and enter the debugger.

+

Suitable to be assigned to sys.excepthook.

+
+ +
+
+pyflyby._dbg._dev_null()
+

Return a file object opened for reading/writing to /dev/null. +Memoized.

+
+
Return type:
+

file

+
+
+
+ +
+
+pyflyby._dbg._dev_tty_fd()
+

Return a file descriptor opened to /dev/tty. +Memoized.

+
+ +
+
+pyflyby._dbg._escape_for_gdb(string)
+

Escape a string to make it safe for passing to gdb.

+
+ +
+
+pyflyby._dbg._find_py_commandline()
+
+ +
+
+pyflyby._dbg._get_caller_frame()
+

Get the closest frame from outside this module.

+
+
Return type:
+

FrameType

+
+
+
+ +
+
+pyflyby._dbg._override_excepthook(hook)
+

Override sys.excepthook with hook but also support resetting.

+

Users should call this function instead of directly overiding +sys.excepthook. This is helpful in resetting sys.excepthook in certain cases.

+
+ +
+
+pyflyby._dbg._prompt_continue_waiting_for_debugger()
+

Prompt while exiting the debugger to get user opinion on keeping the +process waiting for debugger to attach.

+
+ +
+
+pyflyby._dbg._remote_print_stack_to_file(pid, filename)
+
+ +
+
+pyflyby._dbg._reset_excepthook()
+
+ +
+
+pyflyby._dbg._send_email_with_attach_instructions(arg, mailto, originalpid)
+
+ +
+
+pyflyby._dbg._signal_handler_debugger(signal_number, interrupted_frame)
+
+ +
+
+pyflyby._dbg._sigterm_handler(signum, frame)
+
+ +
+
+pyflyby._dbg._sleep_until_debugger_attaches(arg, timeout=86400)
+
+ +
+
+pyflyby._dbg.enable_sigterm_handler(on_existing_handler='raise')
+

Install a handler for SIGTERM that causes Python to print a stack trace +before exiting.

+
+
Parameters:
+

on_existing_handler

+
What to do when a SIGTERM handler was already registered.
    +
  • If "raise", then keep the existing handler and raise an exception.

  • +
  • If "keep_existing", then silently keep the existing handler.

  • +
  • If "warn_and_override", then override the existing handler and log a warning.

  • +
  • If "silently_override", then silently override the existing handler.

  • +
+
+
+

+
+
+
+ +
+
+pyflyby._dbg.get_executable(pid)
+

Get the full path for the target process.

+
+
Return type:
+

Filename

+
+
+
+ +
+
+pyflyby._dbg.inject(pid, statements, wait=True, show_gdb_output=False)
+

Execute statements in a running Python process.

+
+
Parameters:
+
    +
  • pid (int) – Id of target process

  • +
  • statements (Iterable of strings) – Python statements to execute.

  • +
+
+
Returns:
+

Then process ID of the gdb process if wait is False; None if +wait is True.

+
+
+
+ +
+
+pyflyby._dbg.kill_process(pid, kill_signals)
+

Kill process pid using various signals.

+
+
Parameters:
+

kill_signals – Sequence of (signal, delay) tuples. Each signal is tried in sequence, +waiting up to delay seconds before trying the next signal.

+
+
+
+ +
+
+pyflyby._dbg.process_exists(pid)
+

Return whether pid exists.

+
+
Return type:
+

bool

+
+
+
+ +
+
+pyflyby._dbg.setraw_but_sigint(fd, when=2)
+

Put terminal into a raw mode.

+
+ +
+
+pyflyby._dbg.syscall_marker(msg)
+

Execute a dummy syscall that is visible in truss/strace.

+
+ +
+
+pyflyby._dbg.tty_is_usable()
+

Return whether /dev/tty is usable.

+

In interactive sessions, /dev/tty is usable; in non-interactive sessions, +/dev/tty is not usable:

+
$ ssh -t localhost py -q pyflyby._dbg.tty_is_usable
+True
+
+$ ssh -T localhost py -q pyflyby._dbg.tty_is_usable
+False
+
+
+

tty_is_usable() is useful for deciding whether we are in an interactive +terminal. In an interactive terminal we can enter the debugger directly; +in a non-interactive terminal, we need to wait_for_debugger_to_attach.

+

Note that this is different from doing e.g. isatty(0). isatty would +return False if a program was piped, even though /dev/tty is usable.

+
+ +
+
+pyflyby._dbg.wait_for_debugger_to_attach(arg, mailto=None, background=False, timeout=86400)
+

Send email to user and wait for debugger to attach.

+
+
Parameters:
+
    +
  • arg – What to debug. Should be a sys.exc_info() result or a sys._getframe() +result.

  • +
  • mailto – Recipient to email. Defaults to $USER or current user.

  • +
  • background – If True, fork a child process. The parent process continues immediately +without waiting. The child process waits for a debugger to attach, and +exits when the debugging session completes.

  • +
  • timeout – Maximum number of seconds to wait for user to attach debugger.

  • +
+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/file.html b/api/file.html new file mode 100644 index 00000000..2b40de96 --- /dev/null +++ b/api/file.html @@ -0,0 +1,881 @@ + + + + + + + _file module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_file module

+
+
+class pyflyby._file.FilePos(*args)
+

A (lineno, colno) position within a FileText. +Both lineno and colno are 1-indexed.

+
+
+_ONE_ONE = FilePos(1,1)
+
+ +
+
+property _data
+
+ +
+
+classmethod _from_lc(lineno, colno)
+
+ +
+
+static _intint(args)
+
+ +
+ +
+
+class pyflyby._file.FileText(arg, filename=None, startpos=None)
+

Represents a contiguous sequence of lines from a file.

+
+
+_colno_to_index(lineindex, colno)
+
+ +
+
+classmethod _from_lines(lines, filename, startpos)
+
+ +
+
+_lineno_to_index(lineno)
+
+ +
+
+alter(filename=None, startpos=None)
+
+ +
+
+classmethod concatenate(args)
+

Concatenate a bunch of FileText arguments. Uses the filename +and startpos from the first argument.

+
+
Return type:
+

FileText

+
+
+
+ +
+
+endpos
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+classmethod from_filename(filename)
+
+ +
+
+joined
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+lines
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+ +
+
+exception pyflyby._file.UnsafeFilenameError
+
+ +
+
+pyflyby._file.atomic_write_file(filename, data)
+
+ +
+
+pyflyby._file.expand_py_files_from_args(pathnames, on_error=<function <lambda>>)
+

Enumerate *.py files, recursively.

+

Arguments that are files are always included. +Arguments that are directories are recursively searched for *.py files.

+
+
Parameters:
+

on_error (callable) – Function that is called for arguments directly specified in pathnames +that don’t exist or are otherwise inaccessible.

+
+
Return type:
+

list of Filename s

+
+
+
+ +
+
+pyflyby._file.read_file(filename)
+
+ +
+
+pyflyby._file.which(program)
+

Find program on $PATH.

+
+
Return type:
+

Filename

+
+
Returns:
+

Program on $PATH, or None if not found.

+
+
+
+ +
+
+pyflyby._file.write_file(filename, data)
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/flags.html b/api/flags.html new file mode 100644 index 00000000..28dde177 --- /dev/null +++ b/api/flags.html @@ -0,0 +1,740 @@ + + + + + + + _flags module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_flags module

+
+
+pyflyby._flags.CompilerFlags(*args)
+

Representation of Python “compiler flags”, i.e. features from __future__.

+
>>> print(CompilerFlags(0x18000).__interactive_display__()) 
+CompilerFlags(0x18000) # from __future__ import with_statement, print_function
+
+
+
>>> print(CompilerFlags(0x10000, 0x8000).__interactive_display__()) 
+CompilerFlags(0x18000) # from __future__ import with_statement, print_function
+
+
+
>>> print(CompilerFlags('with_statement', 'print_function').__interactive_display__()) 
+CompilerFlags(0x18000) # from __future__ import with_statement, print_function
+
+
+
>>> compile("print('x', file=None)", "?", "exec", flags=CompilerFlags("print_function"), dont_inherit=1) 
+<code object ...>
+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/format.html b/api/format.html new file mode 100644 index 00000000..5328e8ea --- /dev/null +++ b/api/format.html @@ -0,0 +1,814 @@ + + + + + + + _format module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_format module

+
+
+class pyflyby._format.FormatParams(*args, **kwargs)
+
+
+hanging_indent = 'never'
+
+ +
+
+indent = 4
+
+ +
+
+max_line_length = 79
+
+ +
+
+use_black = False
+
+ +
+
+wrap_paren = True
+
+ +
+ +
+
+pyflyby._format.fill(tokens, sep=(', ', ''), prefix='', suffix='', newline='\n', max_line_length=80)
+

Given a sequences of strings, fill them into a single string with up to +max_line_length characters each.

+
>>> fill(["'hello world'", "'hello two'"],
+...            prefix=("print ", "      "), suffix=(" \\", ""),
+...            max_line_length=25)
+"print 'hello world', \\\n      'hello two'\n"
+
+
+
+
Parameters:
+
    +
  • tokens – Sequence of strings to fill. There must be at least one token.

  • +
  • sep – Separator string to append to each token. If a 2-element tuple, then +indicates the separator between tokens and the separator after the last +token. Trailing whitespace is removed from each line before appending +the suffix, but not from between tokens on the same line.

  • +
  • prefix – String to prepend at the beginning of each line. If a 2-element tuple, +then indicates the prefix for the first line and prefix for subsequent +lines.

  • +
  • suffix – String to append to the end of each line. If a 2-element tuple, then +indicates the suffix for all lines except the last, and the suffix for +the last line.

  • +
+
+
Returns:
+

Filled string.

+
+
+
+ +
+
+pyflyby._format.pyfill(prefix, tokens, params=<pyflyby._format.FormatParams object>)
+

Fill a Python statement.

+
>>> print(pyfill('print ', ["foo.bar", "baz", "quux", "quuuuux"]), end='')
+print foo.bar, baz, quux, quuuuux
+>>> print(pyfill('print ', ["foo.bar", "baz", "quux", "quuuuux"],
+...        FormatParams(max_line_length=15, hanging_indent='auto')), end='')
+print (foo.bar,
+       baz,
+       quux,
+       quuuuux)
+>>> print(pyfill('print ', ["foo.bar", "baz", "quux", "quuuuux"],
+...        FormatParams(max_line_length=14, hanging_indent='auto')), end='')
+print (
+    foo.bar,
+    baz, quux,
+    quuuuux)
+
+
+
+
Parameters:
+
    +
  • prefix – Prefix for first line.

  • +
  • tokens – Sequence of string tokens

  • +
+
+
Return type:
+

str

+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/idents.html b/api/idents.html new file mode 100644 index 00000000..90669518 --- /dev/null +++ b/api/idents.html @@ -0,0 +1,869 @@ + + + + + + + _idents module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_idents module

+
+
+exception pyflyby._idents.BadDottedIdentifierError
+
+ +
+
+class pyflyby._idents.DottedIdentifier(arg, scope_info=None)
+
+
+classmethod _from_name(name, scope_info=None)
+
+ +
+
+parent
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+prefixes
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+startswith(o)
+
+ +
+ +
+
+pyflyby._idents.brace_identifiers(text)
+

Parse a string and yield all tokens of the form “{some_token}”.

+
>>> list(brace_identifiers("{salutation}, {your_name}."))
+['salutation', 'your_name']
+
+
+
+ +
+
+pyflyby._idents.dotted_prefixes(dotted_name, reverse=False)
+

Return the prefixes of a dotted name.

+
>>> dotted_prefixes("aa.bb.cc")
+['aa', 'aa.bb', 'aa.bb.cc']
+
+
+
>>> dotted_prefixes("aa.bb.cc", reverse=True)
+['aa.bb.cc', 'aa.bb', 'aa']
+
+
+
+
Parameters:
+

reverse – If False (default), return shortest to longest. If True, return longest +to shortest.

+
+
Return type:
+

list of str

+
+
+
+ +
+
+pyflyby._idents.is_identifier(s, dotted=False, prefix=False)
+

Return whether s is a valid Python identifier name.

+
>>> is_identifier("foo")
+True
+
+
+
>>> is_identifier("foo+bar")
+False
+
+
+
>>> is_identifier("from")
+False
+
+
+

By default, we check whether s is a single valid identifier, meaning +dots are not allowed. If dotted=True, then we check each dotted +component:

+
>>> is_identifier("foo.bar")
+False
+
+>>> is_identifier("foo.bar", dotted=True)
+True
+
+>>> is_identifier("foo..bar", dotted=True)
+False
+
+>>> is_identifier("foo.from", dotted=True)
+False
+
+
+

By default, the string must comprise a valid identifier. If +prefix=True, then allow strings that are prefixes of valid identifiers. +Prefix=False excludes the empty string, strings with a trailing dot, and +strings with a trailing keyword component, but prefix=True does not +exclude these.

+
>>> is_identifier("foo.bar.", dotted=True)
+False
+
+
+
>>> is_identifier("foo.bar.", dotted=True, prefix=True)
+True
+
+
+
>>> is_identifier("foo.or", dotted=True)
+False
+
+
+
>>> is_identifier("foo.or", dotted=True, prefix=True)
+True
+
+
+
+
Parameters:
+
    +
  • dotted – If False (default), then the input must be a single name such as +“foo”. If True, then the input can be a single name or a dotted name +such as “foo.bar.baz”.

  • +
  • prefix – If False (Default), then the input must be a valid identifier. If +True, then the input can be a valid identifier or the prefix of a +valid identifier.

  • +
+
+
Return type:
+

bool

+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/importclns.html b/api/importclns.html new file mode 100644 index 00000000..ea2bcc35 --- /dev/null +++ b/api/importclns.html @@ -0,0 +1,1018 @@ + + + + + + + _importclns module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_importclns module

+
+
+exception pyflyby._importclns.ConflictingImportsError
+
+ +
+
+class pyflyby._importclns.ImportMap(arg)
+

A map from import fullname identifier to fullname identifier.

+
>>> ImportMap({'a.b': 'aa.bb', 'a.b.c': 'aa.bb.cc'})
+ImportMap({'a.b': 'aa.bb', 'a.b.c': 'aa.bb.cc'})
+
+
+

An ImportMap is an immutable data structure.

+
+
+_EMPTY = ImportMap({})
+
+ +
+
+classmethod _from_map(arg)
+
+ +
+
+classmethod _merge(maps)
+
+ +
+
+items()
+
+ +
+
+iteritems()
+
+ +
+
+iterkeys()
+
+ +
+
+keys()
+
+ +
+
+values()
+
+ +
+
+without_imports(removals)
+

Return a copy of self without the given imports. +Matches both keys and values.

+
+ +
+ +
+
+class pyflyby._importclns.ImportSet(arg, ignore_nonimports=False, ignore_shadowed=False)
+

Representation of a set of imports organized into import statements.

+
>>> ImportSet('''
+...     from m1 import f1
+...     from m2 import f1
+...     from m1 import f2
+...     import m3.m4 as m34
+... ''')
+ImportSet('''
+  from m1 import f1, f2
+  from m2 import f1
+  from m3 import m4 as m34
+''')
+
+
+

An ImportSet is an immutable data structure.

+
+
+_EMPTY = ImportSet(''' ''')
+
+ +
+
+_by_module_name
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+classmethod _from_args(args, ignore_nonimports=False, ignore_shadowed=False)
+
+
Parameters:
+
    +
  • ignore_nonimports – If False, complain about non-imports. If True, ignore +non-imports.

  • +
  • ignore_shadowed – See ImportSet.__new__.

  • +
+
+
Return type:
+

ImportSet

+
+
+
+ +
+
+classmethod _from_imports(imports, ignore_shadowed=False)
+
+
Parameters:
+

ignore_shadowed – See ImportSet.__new__.

+
+
Return type:
+

ImportSet

+
+
+
+ +
+
+by_import_as
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+conflicting_imports
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+flags
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+get_statements(separate_from_imports=True)
+

Canonicalized ImportStatement s. +These have been merged by module and sorted.

+
>>> importset = ImportSet('''
+...     import a, b as B, c, d.dd as DD
+...     from __future__ import division
+...     from _hello import there
+...     from _hello import *
+...     from _hello import world
+... ''')
+
+
+
>>> for s in importset.get_statements(): print(s)
+from __future__ import division
+import a
+import b as B
+import c
+from _hello import *
+from _hello import there, world
+from d import dd as DD
+
+
+
+
Return type:
+

tuple of ImportStatement s

+
+
+
+ +
+
+imports
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+member_names
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+pretty_print(params=None, allow_conflicts=False)
+

Pretty-print a block of import statements into a single string.

+
+
Return type:
+

str

+
+
+
+ +
+
+statements
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+with_imports(other)
+

Return a new ImportSet that is the union of self and +new_imports.

+
>>> impset = ImportSet('from m import t1, t2, t3')
+>>> impset.with_imports('import m.t2a as t2b')
+ImportSet('''
+  from m import t1, t2, t2a as t2b, t3
+''')
+
+
+
+
Return type:
+

ImportSet

+
+
+
+ +
+
+without_imports(removals)
+

Return a copy of self without the given imports.

+
>>> imports = ImportSet('from m import t1, t2, t3, t4')
+>>> imports.without_imports(['from m import t3'])
+ImportSet('''
+  from m import t1, t2, t4
+''')
+
+
+
+
Return type:
+

ImportSet

+
+
+
+ +
+ +
+
+exception pyflyby._importclns.NoSuchImportError
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/importdb.html b/api/importdb.html new file mode 100644 index 00000000..77d57810 --- /dev/null +++ b/api/importdb.html @@ -0,0 +1,783 @@ + + + + + + + _importdb module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_importdb module

+
+
+pyflyby._importdb._ancestors_on_same_partition(filename)
+

Generate ancestors of filename that exist and are on the same partition +as the first existing ancestor of filename.

+

For example, suppose a partition is mounted on /u/homer; /u is a different +partition. Suppose /u/homer/aa exists but /u/homer/aa/bb does not exist. +Then:

+
>>> _ancestors_on_same_partition(Filename("/u/homer/aa/bb/cc")) 
+[Filename("/u/homer", Filename("/u/homer/aa")]
+
+
+
+
Return type:
+

list of Filename

+
+
+
+ +
+
+pyflyby._importdb._expand_tripledots(pathnames, target_dirname)
+

Expand pathnames of the form ".../foo/bar" as “../../foo/bar”, +“../foo/bar”, “./foo/bar” etc., up to the oldest ancestor with the same +st_dev.

+

For example, suppose a partition is mounted on /u/homer; /u is a different +partition. Then:

+
>>> _expand_tripledots(["/foo", ".../tt"], "/u/homer/aa") 
+[Filename("/foo"), Filename("/u/homer/tt"), Filename("/u/homer/aa/tt")]
+
+
+
+
Return type:
+

list of Filename

+
+
+
+ +
+
+pyflyby._importdb._get_env_var(env_var_name, default)
+

Get an environment variable and split on “:”, replacing - with the +default.

+
+ +
+
+pyflyby._importdb._get_python_path(env_var_name, default_path, target_dirname)
+

Expand an environment variable specifying pyflyby input config files.

+
+
    +
  • Default to default_path if the environment variable is undefined.

  • +
  • Process colon delimiters.

  • +
  • Replace “-” with default_path.

  • +
  • Expand triple dots.

  • +
  • Recursively traverse directories.

  • +
+
+
+
Return type:
+

tuple of Filename s

+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/imports2s.html b/api/imports2s.html new file mode 100644 index 00000000..b7303a6d --- /dev/null +++ b/api/imports2s.html @@ -0,0 +1,922 @@ + + + + + + + _imports2s module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_imports2s module

+
+
+exception pyflyby._imports2s.ImportAlreadyExistsError
+
+ +
+
+pyflyby._imports2s.ImportPathForRelativeImportsCtx(codeblock)
+

Context manager that temporarily modifies sys.path so that relative +imports for the given codeblock work as expected.

+
+
+
+ +
+
+exception pyflyby._imports2s.LineNumberAmbiguousError
+
+ +
+
+exception pyflyby._imports2s.LineNumberNotFoundError
+
+ +
+
+exception pyflyby._imports2s.NoImportBlockError
+
+ +
+
+class pyflyby._imports2s.SourceToSourceFileImportsTransformation(arg)
+
+
+add_import(imp, lineno=inf)
+

Add the specified import. Picks an existing global import block to +add to, or if none found, creates a new one near the beginning of the +module.

+
+
Parameters:
+

lineno – Line before which to add the import. Inf means no constraint.

+
+
+
+ +
+
+find_import_block_by_lineno(lineno)
+

Find the import block containing the given line number.

+
+
Return type:
+

SourceToSourceImportBlockTransformation

+
+
+
+ +
+
+insert_new_blocks_after_comments(blocks)
+
+ +
+
+insert_new_import_block()
+

Adds a new empty imports block. It is added before the first +non-comment statement. Intended to be used when the input contains no +import blocks (before uses).

+
+ +
+
+preprocess()
+
+ +
+
+pretty_print(params=None)
+
+ +
+
+remove_import(imp, lineno)
+

Remove the given import.

+
+
+
+ +
+
+select_import_block_by_closest_prefix_match(imp, max_lineno)
+

Heuristically pick an import block that imp “fits” best into. The +selection is based on the block that contains the import with the +longest common prefix.

+
+
Parameters:
+

max_lineno – Only return import blocks earlier than max_lineno.

+
+
Return type:
+

SourceToSourceImportBlockTransformation

+
+
+
+ +
+ +
+
+class pyflyby._imports2s.SourceToSourceImportBlockTransformation(arg)
+
+
+preprocess()
+
+ +
+
+pretty_print(params=None)
+
+ +
+ +
+
+class pyflyby._imports2s.SourceToSourceTransformation(arg)
+
+
+preprocess()
+
+ +
+
+pretty_print(params=None)
+
+ +
+ +
+
+class pyflyby._imports2s.SourceToSourceTransformationBase(arg)
+
+
+classmethod _from_source_code(codeblock)
+
+ +
+
+output(params=None)
+

Pretty-print and return as a PythonBlock.

+
+
Return type:
+

PythonBlock

+
+
+
+ +
+
+preprocess()
+
+ +
+
+pretty_print(params=None)
+
+ +
+ +
+
+pyflyby._imports2s.fix_unused_and_missing_imports(codeblock, add_missing=True, remove_unused='AUTOMATIC', add_mandatory=True, db=None, params=None)
+

Check for unused and missing imports, and fix them automatically.

+

Also formats imports.

+

In the example below, m1 and m3 are unused, so are automatically +removed. np was undefined, so an import numpy as np was +automatically added.

+
>>> codeblock = PythonBlock(
+...     'from foo import m1, m2, m3, m4\n'
+...     'm2, m4, np.foo', filename="/tmp/foo.py")
+
+
+
>>> print(fix_unused_and_missing_imports(codeblock, add_mandatory=False))
+[PYFLYBY] /tmp/foo.py: removed unused 'from foo import m1'
+[PYFLYBY] /tmp/foo.py: removed unused 'from foo import m3'
+[PYFLYBY] /tmp/foo.py: added 'import numpy as np'
+import numpy as np
+from foo import m2, m4
+m2, m4, np.foo
+
+
+
+
Return type:
+

PythonBlock

+
+
+
+ +
+
+pyflyby._imports2s.sort_imports(codeblock)
+

Sort imports for better grouping. +:type codeblock: +:param codeblock: +:return: codeblock

+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/importstmt.html b/api/importstmt.html new file mode 100644 index 00000000..f51f4f03 --- /dev/null +++ b/api/importstmt.html @@ -0,0 +1,819 @@ + + + + + + + _importstmt module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_importstmt module

+
+
+class pyflyby._importstmt.ImportFormatParams(*args, **kwargs)
+
+
+align_future = False
+

Whether ‘from __future__ import …’ statements should be aligned with +others. If False, uses a single space after the ‘from’ and ‘import’ +keywords.

+
+ +
+
+align_imports = True
+

Whether and how to align ‘from modulename import aliases…’. If True, +then the ‘import’ keywords will be aligned within a block. If an integer, +then the ‘import’ keyword will always be at that column. They will be +wrapped if necessary.

+
+ +
+
+from_spaces = 1
+

The number of spaces after the ‘from’ keyword. (Must be at least 1.)

+
+ +
+
+separate_from_imports = True
+

Whether all ‘from … import …’ in an import block should come after +‘import …’ statements. separate_from_imports = False works well with +from_spaces = 3. (‘from __future__ import …’ always comes first.)

+
+ +
+ +
+
+class pyflyby._importstmt.ImportSplit(module_name, member_name, import_as)
+

Representation of a single import at the token level:

+
from [...]<module_name> import <member_name> as <import_as>
+
+
+
+
If <module_name> is None, then there is no “from” clause; instead just::

import <member_name> as <import_as>

+
+
+
+
+_asdict()
+

Return a new dict which maps field names to their values.

+
+ +
+
+_field_defaults = {}
+
+ +
+
+_fields = ('module_name', 'member_name', 'import_as')
+
+ +
+
+classmethod _make(iterable)
+

Make a new ImportSplit object from a sequence or iterable

+
+ +
+
+_replace(**kwds)
+

Return a new ImportSplit object replacing specified fields with new values

+
+ +
+
+import_as
+

Alias for field number 2

+
+ +
+
+member_name
+

Alias for field number 1

+
+ +
+
+module_name
+

Alias for field number 0

+
+ +
+ +
+
+pyflyby._importstmt._validate_alias(arg)
+

Ensure each alias is a tuple (str, None|str), and return it.

+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/interactive.html b/api/interactive.html new file mode 100644 index 00000000..01d59501 --- /dev/null +++ b/api/interactive.html @@ -0,0 +1,1312 @@ + + + + + + + _interactive module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_interactive module

+
+
+class pyflyby._interactive.AutoImporter(arg=Ellipsis)
+

Auto importer enable state.

+

The state is attached to an IPython “application”.

+
+
+_advise(joinpoint)
+
+ +
+
+classmethod _construct(app)
+

Create a new AutoImporter for app.

+
+
+
+ +
+
+_continue_enable()
+
+ +
+
+_enable_ast_hook(ip)
+

Enable a hook somewhere in the source => parsed AST => compiled code +pipeline.

+
+ +
+
+_enable_completer_hooks(completer)
+
+ +
+
+_enable_completion_hook(ip)
+

Enable a tab-completion hook.

+
+ +
+
+_enable_debugger_hook(ip)
+
+ +
+
+_enable_initializer_hooks(app)
+
+ +
+
+_enable_internal()
+
+ +
+
+_enable_ipython_bugfixes()
+

Enable some advice that’s actually just fixing bugs in IPython.

+
+ +
+
+_enable_ipython_bugfixes_LevelFormatter()
+
+ +
+
+_enable_ipython_shell_bugfixes(ip)
+

Enable some advice that’s actually just fixing bugs in IPython.

+
+ +
+
+_enable_kernel_manager_hook(app)
+
+ +
+
+_enable_ofind_hook(ip)
+

Enable a hook of _ofind(), which is used for pinfo, autocall, etc.

+
+ +
+
+_enable_prun_hook(ip)
+

Enable a hook so that %prun will autoimport.

+
+ +
+
+_enable_reset_hook(ip)
+
+ +
+
+_enable_run_hook(ip)
+

Enable a hook so that %run will autoimport.

+
+ +
+
+_enable_shell_hooks(app)
+

Enable hooks to run auto_import before code execution.

+
+ +
+
+_enable_start_kernel_hook(kernel_manager)
+
+ +
+
+_enable_time_hook(ip)
+

Enable a hook so that %time will autoimport.

+
+ +
+
+_enable_timeit_hook(ip)
+

Enable a hook so that %timeit will autoimport.

+
+ +
+
+classmethod _from_app(app)
+
+ +
+
+_safe_call(function, *args, **kwargs)
+
+ +
+
+auto_import(arg, namespaces=None, raise_on_error='if_debug', on_error=None)
+
+ +
+
+compile_with_autoimport(src, filename, mode, flags=0)
+
+ +
+
+complete_symbol(fullname, namespaces, raise_on_error='if_debug', on_error=None)
+
+ +
+
+disable()
+

Turn off auto-importer in the current IPython session.

+
+ +
+
+enable(even_if_previously_errored=False)
+

Turn on the auto-importer in the current IPython session.

+
+ +
+
+reset_state_new_cell()
+
+ +
+ +
+
+pyflyby._interactive.InterceptPrintsDuringPromptCtx(ip)
+

Decorator that hooks our logger so that:

+
1. Before the first print, if any, print an extra newline.
+2. Upon context exit, if any lines were printed, redisplay the prompt.
+
+
+
+
+
+ +
+
+exception pyflyby._interactive.NoActiveIPythonAppError
+

Exception raised when there is no current IPython application instance.

+
+ +
+
+exception pyflyby._interactive.NoIPythonPackageError
+

Exception raised when the IPython package is not installed in the system.

+
+ +
+
+pyflyby._interactive.UpdateIPythonStdioCtx()
+

Context manager that updates IPython’s cached stdin/stdout/stderr handles +to match the current values of sys.stdin/sys.stdout/sys.stderr.

+
+ +
+
+class pyflyby._interactive._DummyIPythonEmbeddedApp(shell)
+

Small wrapper around an InteractiveShellEmbed.

+
+ +
+
+class pyflyby._interactive._EnableState
+
+
+DISABLED = 'DISABLED'
+
+ +
+
+DISABLING = 'DISABLING'
+
+ +
+
+ENABLED = 'ENABLED'
+
+ +
+
+ENABLING = 'ENABLING'
+
+ +
+ +
+
+class pyflyby._interactive._IPython010TerminalApplication
+

Shim class that mimics IPython 0.11+ application classes, for use in +IPython 0.10.

+
+
+_instance = None
+
+ +
+
+init_shell()
+
+ +
+
+initialize(argv=None)
+
+ +
+
+classmethod instance()
+
+ +
+
+start()
+
+ +
+ +
+
+pyflyby._interactive._app_is_initialized(app)
+

Return whether app.initialize() has been called.

+
+
Return type:
+

bool

+
+
+
+ +
+
+pyflyby._interactive._auto_import_in_pdb_frame(pdb_instance, arg)
+
+ +
+
+pyflyby._interactive._enable_pdb_hooks(pdb_instance)
+
+ +
+
+pyflyby._interactive._enable_terminal_pdb_hooks(pdb_instance, auto_importer=None)
+
+ +
+
+pyflyby._interactive._generate_enabler_code()
+

Generate code for enabling the auto importer.

+
+
Return type:
+

str

+
+
+
+ +
+
+pyflyby._interactive._get_IPdb_class()
+

Get the IPython (core) Pdb class.

+
+ +
+
+pyflyby._interactive._get_TerminalPdb_class()
+

Get the IPython TerminalPdb class.

+
+ +
+
+pyflyby._interactive._get_ipython_app()
+

Get an IPython application instance, if we are inside an IPython session.

+

If there isn’t already an IPython application, raise an exception; don’t +create one.

+

If there is a subapp, return it.

+
+
Return type:
+

BaseIPythonApplication or an object that mimics some of its behavior

+
+
+
+ +
+
+pyflyby._interactive._get_ipython_color_scheme(app)
+

Get the configured IPython color scheme.

+
+
Parameters:
+

app (TerminalIPythonApp) – An initialized IPython terminal application.

+
+
Return type:
+

str

+
+
+
+ +
+
+pyflyby._interactive._get_or_create_ipython_kernel_app()
+

Create/get the singleton IPython kernel application.

+
+
Return type:
+

callable

+
+
Returns:
+

The function that can be called to start the kernel application.

+
+
+
+ +
+
+pyflyby._interactive._get_or_create_ipython_terminal_app()
+

Create/get the singleton IPython terminal application.

+
+
Return type:
+

TerminalIPythonApp

+
+
Raises:
+

NoIPythonPackageError – IPython is not installed in the system.

+
+
+
+ +
+
+pyflyby._interactive._get_pdb_if_is_in_pdb()
+

Return the current Pdb instance, if we’re currently called from Pdb.

+
+
Return type:
+

pdb.Pdb or NoneType

+
+
+
+ +
+
+pyflyby._interactive._initialize_and_start_app_with_autoimporter(app, argv)
+

Initialize and start an IPython app, with autoimporting enabled.

+
+
+
+ +
+
+pyflyby._interactive._install_in_ipython_config_file_010()
+

Implementation of install_in_ipython_config_file for IPython 0.10.

+
+ +
+
+pyflyby._interactive._install_in_ipython_config_file_011()
+

Implementation of install_in_ipython_config_file for IPython 0.11.

+
+ +
+
+pyflyby._interactive._install_in_ipython_config_file_012()
+

Implementation of install_in_ipython_config_file for IPython 0.12+. +Tested with IPython 0.12, 0.13, 1.0, 1.2, 2.0, 2.1, 2.2, 2.3, 2.4, 3.0, +3.1, 3.2, 4.0.

+
+ +
+
+pyflyby._interactive._install_in_ipython_config_file_40()
+

Implementation of install_in_ipython_config_file for IPython 4.0+.

+
+ +
+
+pyflyby._interactive._ipython_in_multiline(ip)
+

Return False if the user has entered only one line of input so far, +including the current line, or True if it is the second or later line.

+
+
Return type:
+

bool

+
+
+
+ +
+
+pyflyby._interactive._ipython_namespaces(ip)
+

Return the (global) namespaces used for IPython.

+

The ordering follows IPython convention of most-local to most-global.

+
+
Return type:
+

list

+
+
Returns:
+

List of (name, namespace_dict) tuples.

+
+
+
+ +
+
+pyflyby._interactive._list_members_for_completion(obj, ip)
+

Enumerate the existing member attributes of an object. +This emulates the regular Python/IPython completion items.

+

It does not include not-yet-imported submodules.

+
+
Parameters:
+

obj – Object whose member attributes to enumerate.

+
+
Return type:
+

list of str

+
+
+
+ +
+
+pyflyby._interactive._python_can_import_pyflyby(expected_path, sys_path_entry=None)
+

Try to figure out whether python (when started from scratch) can get the +same pyflyby package as the current process.

+
+ +
+
+pyflyby._interactive._skip_frames(frame, ignore_pkgs)
+
+ +
+
+pyflyby._interactive.complete_symbol(fullname, namespaces, db=None, autoimported=None, ip=None, allow_eval=False)
+

Enumerate possible completions for fullname.

+

Includes globals and auto-importable symbols.

+
>>> complete_symbol("threadi", [{}])                
+[...'threading'...]
+
+
+

Completion works on attributes, even on modules not yet imported - modules +are auto-imported first if not yet imported:

+
>>> ns = {}
+>>> complete_symbol("threading.Threa", namespaces=[ns])
+[PYFLYBY] import threading
+['threading.Thread', 'threading.ThreadError']
+
+>>> 'threading' in ns
+True
+
+>>> complete_symbol("threading.Threa", namespaces=[ns])
+['threading.Thread', 'threading.ThreadError']
+
+
+

We only need to import parent modules (packages) of the symbol being +completed. If the user asks to complete “foo.bar.quu<TAB>”, we need to +import foo.bar, but we don’t need to import foo.bar.quux.

+
+
Parameters:
+
    +
  • fullname (str) – String to complete. (“Full” refers to the fact that it should contain +dots starting from global level.)

  • +
  • namespaces (dict or list of dict) – Namespaces of (already-imported) globals.

  • +
  • db (importDB) – Import database to use.

  • +
  • ip (InteractiveShell) – IPython shell instance if in IPython; None to assume not in IPython.

  • +
  • allow_eval – Whether to allow evaluating code, which is necessary to allow completing +e.g. ‘foo[0].bar<TAB>’ or ‘foo().bar<TAB>’. Note that IPython will only +pass such strings if IPCompleter.greedy is configured to True by the +user.

  • +
+
+
Return type:
+

list of str

+
+
Returns:
+

Completion candidates.

+
+
+
+ +
+
+pyflyby._interactive.get_global_namespaces(ip)
+

Get the global interactive namespaces.

+
+
Parameters:
+

ip (InteractiveShell) – IPython shell or None to assume not in IPython.

+
+
Return type:
+

list of dict

+
+
+
+ +
+
+pyflyby._interactive.get_ipython_terminal_app_with_autoimporter()
+

Return an initialized TerminalIPythonApp.

+

If a TerminalIPythonApp has already been created, then use it (whether +we are inside that app or not). If there isn’t already one, then create +one. Enable the auto importer, if it hasn’t already been enabled. If the +app hasn’t been initialized yet, then initialize() it (but don’t start() +it).

+
+
Return type:
+

TerminalIPythonApp

+
+
Raises:
+

NoIPythonPackageError – IPython is not installed in the system.

+
+
+
+ +
+
+pyflyby._interactive.new_IPdb_instance()
+

Create a new Pdb instance.

+

If IPython is available, then use IPython’s Pdb. Initialize a new IPython +terminal application if necessary.

+

If the IPython package is not installed in the system, then use regular Pdb.

+

Enable the auto importer.

+
+
Return type:
+

Pdb

+
+
+
+ +
+
+pyflyby._interactive.print_verbose_tb(*exc_info)
+

Print a traceback, using IPython’s ultraTB if possible.

+
+
Parameters:
+

exc_info – 3 arguments as returned by sys.exc_info().

+
+
+
+ +
+
+pyflyby._interactive.run_ipython_line_magic(arg)
+

Run IPython magic command. +If necessary, start an IPython terminal app to do so.

+
+ +
+
+pyflyby._interactive.start_ipython_kernel_with_autoimporter(argv=None)
+

Start IPython kernel with autoimporter enabled.

+
+ +
+
+pyflyby._interactive.start_ipython_with_autoimporter(argv=None, app=None, _user_ns=None)
+

Start IPython (terminal) with autoimporter enabled.

+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/livepatch.html b/api/livepatch.html new file mode 100644 index 00000000..bcd82aa3 --- /dev/null +++ b/api/livepatch.html @@ -0,0 +1,944 @@ + + + + + + + _livepatch module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_livepatch module

+

livepatch/xreload: Alternative to reload().

+

xreload performs a “live patch” of the modules/classes/functions/etc that have +already been loaded in memory. It does so by executing the module in a +scratch namespace, and then patching classes, methods and functions in-place. +New objects are copied into the target namespace.

+

This addresses cases where one module imported functions from another +module.

+

For example, suppose m1.py contains:

+
from m2 import foo
+def print_foo():
+    return foo()
+
+
+

and m2.py contains:

+
def foo():
+    return 42
+
+
+

If you edit m2.py and modify foo, then reload(m2) on its own would not do +what you want. You would also need to reload(m1) after reload(m2). This is +because the built-in reload affects the module being reloaded, but references +to the old module remain. On the other hand, xreload() patches the existing +m2.foo, so that live references to it are updated.

+

In table form:

+
Undesired effect:  reload(m2)
+Undesired effect:  reload(m1);  reload(m2)
+Desired effect:    reload(m2);  reload(m1)
+
+Desired effect:   xreload(m2)
+Desired effect:   xreload(m1); xreload(m2)
+Desired effect:   xreload(m2); xreload(m1)
+
+
+

Even with just two modules, we can see that xreload() is an improvement. When +working with a large set of interdependent modules, it becomes infeasible to +know the precise sequence of reload() calls that would be necessary. +xreload() really shines in that case.

+

This implementation of xreload() was originally based the following +mailing-list post by Guido van Rossum:

+
+
+
+

Customizing behavior

+

If a class/function/module/etc has an attribute __livepatch__, then this +function is called instead of performing the regular livepatch mechanism.

+

The __livepatch__() function is called with the following arguments:

+
+
    +
  • old : The object to be updated with contents of new

  • +
  • new : The object whose contents to put into old

  • +
  • +
    do_livepatch: A function that can be called to do the standard

    livepatch, replacing the contents of old with new. +If it’s not possible to livepatch old, it returns +new. The do_livepatch function takes no arguments. +Calling the do_livepatch function is roughly +equivalent to calling pyflyby.livepatch(old, new, +modname=modname, heed_hook=False).

    +
    +
    +
  • +
  • +
    modnameThe module currently being updated. Recursively called

    updates should keep track of the module being updated to +avoid touching other modules.

    +
    +
    +
  • +
+
+

These arguments are matched by name and are passed only if the +__livepatch__ function is declared to take such named arguments or it takes +**kwargs. If the __livepatch__ function takes **kwargs, it should ignore +unknown arguments, in case new parameters are added in the future.

+

If the object being updated is an object instance, and __livepatch__ is a +method, then the function is bound to the new object, i.e. the self +parameter is the same as new.

+

If the __livepatch__ function successfully patched the old object, then +it should return old. If it is unable to patch, it should return new.

+

Examples

+

By default, any attributes on an existing function are updated with ones from +the new function. If you want a memoized function to keep its cache across +xreload, you could implement that like this:

+
def memoize(function):
+    cache = {}
+    def wrapped_fn(*args):
+        try:
+            return cache[args]
+        except KeyError:
+            result = function(*args)
+            cache[args] = result
+            return result
+    wrapped_fn.cache = cache
+    def my_livepatch(old, new, do_livepatch):
+        keep_cache = dict(old.cache)
+        result = do_livepatch()
+        result.cache.update(keep_cache)
+        return result
+    wrapped_fn.__livepatch__ = my_livepatch
+    return wrapped_fn
+
+
+

XXX change example b/c cache is already cleared by default +XXX maybe global cache

+
+
+
class MyObj(…):
+
def __livepatch__(self, old):

self.__dict__.update(old.__dict__) +return self

+
+
+
+
class MyObj(…):
+
def __init__(self):

self._my_cache = {}

+
+
def __livepatch__(self, old, do_livepatch):

keep_cache = dict(old._my_cache) +result = do_livepatch() +result._my_cache.update(keep_cache) +return result

+
+
+
+
+
+

XXX test

+
+
+
+exception pyflyby._livepatch.UnknownModuleError
+
+ +
+
+pyflyby._livepatch._format_age(t)
+
+ +
+
+pyflyby._livepatch._get_definition_module(obj)
+

Get the name of the module that an object is defined in, or None if +unknown.

+

For classes and functions, this returns the __module__ attribute.

+

For object instances, this returns None, ignoring the __module__ +attribute. The reason is that the __module__ attribute on an instance +just gives the module that the class was defined in, which is not +necessarily the module where the instance was constructed.

+
+
Return type:
+

str

+
+
+
+ +
+
+pyflyby._livepatch._get_module_py_file(module)
+
+ +
+
+pyflyby._livepatch._interpret_module(arg)
+
+ +
+
+pyflyby._livepatch._livepatch__class(oldclass, newclass, modname, cache, visit_stack)
+

Livepatch a class.

+

This is similar to _livepatch__dict(oldclass.__dict__, newclass.__dict__). +However, we can’t just operate on the dict, because class dictionaries are +special objects that don’t allow setitem, even though we can setattr on +the class.

+
+ +
+
+pyflyby._livepatch._livepatch__dict(old_dict, new_dict, modname, cache, visit_stack)
+

Livepatch a dict.

+
+ +
+
+pyflyby._livepatch._livepatch__function(old_func, new_func, modname, cache, visit_stack)
+

Livepatch a function.

+
+ +
+
+pyflyby._livepatch._livepatch__method(old_method, new_method, modname, cache, visit_stack)
+

Livepatch a method.

+
+ +
+
+pyflyby._livepatch._livepatch__module(old_mod, new_mod, modname, cache, visit_stack)
+

Livepatch a module.

+
+ +
+
+pyflyby._livepatch._livepatch__object(oldobj, newobj, modname, cache, visit_stack)
+

Livepatch a general object.

+
+ +
+
+pyflyby._livepatch._livepatch__setattr(oldobj, newobj, name, modname, cache, visit_stack)
+

Livepatch something via setattr, i.e.:

+
oldobj.{name} = livepatch(oldobj.{name}, newobj.{name}, ...)
+
+
+
+ +
+
+pyflyby._livepatch._xreload_module(module, filename, force=False)
+

Reload a module in place, using livepatch.

+
+
Parameters:
+
    +
  • module (ModuleType) – Module to reload.

  • +
  • force – Whether to reload even if the module has not been modified since the +previous load. If False, then do nothing. If True, then reload.

  • +
+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/log.html b/api/log.html new file mode 100644 index 00000000..3731e0f6 --- /dev/null +++ b/api/log.html @@ -0,0 +1,825 @@ + + + + + + + _log module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_log module

+
+
+class pyflyby._log.PyflybyLogger(name, level)
+
+
+HookCtx(pre, post)
+
+ +
+
+_LEVELS = {'DEBUG': 10, 'ERROR': 40, 'INFO': 20, 'WARNING': 30}
+
+ +
+
+property debug_enabled
+
+ +
+
+property info_enabled
+
+ +
+
+set_level(level)
+

Set the pyflyby logger’s level to level.

+
+
+
+ +
+ +
+
+pyflyby._log._PromptToolkitStdoutProxyRawCtx(proxy)
+

Hack to defeat the “feature” where +prompt_toolkit.interface._StdoutProxy(sys.stderr) causes ANSI escape codes +to not be written.

+
+ +
+
+class pyflyby._log._PyflybyHandler(level=0)
+
+
+HookCtx(pre, post)
+
+
Enter a context where:
    +
  • pre is called before the first time a log record is emitted +during the context, and

  • +
  • post is called at the end of the context, if any log records +were emitted during the context.

  • +
+
+
+
+
Parameters:
+
    +
  • pre (callable) – Function to call before the first time something is logged during +this context.

  • +
  • post (callable) – Function to call before returning from the context, if anything was +logged during the context.

  • +
+
+
+
+ +
+
+_interactive_prefix = '\x1b[0m\x1b[33m[PYFLYBY]\x1b[0m '
+
+ +
+
+_logged_anything_during_context = False
+
+ +
+
+_noninteractive_prefix = '[PYFLYBY] '
+
+ +
+
+_pre_log_function = None
+
+ +
+
+emit(record)
+

Emit a log record.

+
+ +
+ +
+
+pyflyby._log._is_interactive(file)
+
+ +
+
+pyflyby._log._is_ipython()
+

Returns true if we’re currently running inside IPython.

+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/modules.html b/api/modules.html new file mode 100644 index 00000000..eeb19424 --- /dev/null +++ b/api/modules.html @@ -0,0 +1,915 @@ + + + + + + + _modules module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_modules module

+
+
+exception pyflyby._modules.ErrorDuringImportError
+

Exception raised by import_module if the module exists but an exception +occurred while attempting to import it. That nested exception could be +ImportError, e.g. if a module tries to import another module that doesn’t +exist.

+
+ +
+
+class pyflyby._modules.ModuleHandle(arg)
+

A handle to a module.

+
+
+_cls_cache = {}
+
+ +
+
+classmethod _from_filename(filename)
+
+ +
+
+classmethod _from_module(module)
+
+ +
+
+classmethod _from_modulename(modulename)
+
+ +
+
+static _member_from_node(node)
+
+ +
+
+ancestors
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+block
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+classmethod containing(identifier)
+

Try to find the module that defines a name such as a.b.c by trying +to import a, a.b, and a.b.c.

+
+
Returns:
+

The name of the ‘deepest’ module (most commonly it would be a.b +in this example).

+
+
Return type:
+

Module

+
+
+
+ +
+
+exists
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+exports
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+filename
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+static list(*args, **kwargs)
+
+ +
+
+module
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+parent
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+submodules
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+text
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+ +
+
+pyflyby._modules._my_iter_modules(path, prefix='')
+
+ +
+
+pyflyby._modules.pyc_to_py(filename)
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/parse.html b/api/parse.html new file mode 100644 index 00000000..a2bc62f3 --- /dev/null +++ b/api/parse.html @@ -0,0 +1,1001 @@ + + + + + + + _parse module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_parse module

+
+
+class pyflyby._parse.AstNodeContext(parent, field, index)
+
+
+_asdict()
+

Return a new dict which maps field names to their values.

+
+ +
+
+_field_defaults = {}
+
+ +
+
+_fields = ('parent', 'field', 'index')
+
+ +
+
+classmethod _make(iterable)
+

Make a new AstNodeContext object from a sequence or iterable

+
+ +
+
+_replace(**kwds)
+

Return a new AstNodeContext object replacing specified fields with new values

+
+ +
+
+field
+

Alias for field number 1

+
+ +
+
+index
+

Alias for field number 2

+
+ +
+
+parent
+

Alias for field number 0

+
+ +
+ +
+
+class pyflyby._parse.IgnoreOptionsDocTestParser
+
+
+_find_options(source, name, lineno)
+

Return a dictionary containing option overrides extracted from +option directives in the given source string.

+

name is the string’s name, and lineno is the line number +where the example starts; both are used for error messages.

+
+ +
+ +
+
+class pyflyby._parse._DummyAst_Node
+
+ +
+
+pyflyby._parse._annotate_ast_context(ast_node)
+

Recursively annotate context on ast nodes, setting context to +a AstNodeContext named tuple with values +(parent, field, index). +Each ast_node satisfies parent.<field>[<index>] is ast_node.

+

For non-list fields, the index part is None.

+
+ +
+
+pyflyby._parse._annotate_ast_nodes(ast_node)
+
+
Annotate AST with:
    +
  • startpos and endpos

  • +
  • [disabled for now: context as AstNodeContext ]

  • +
+
+
+
+
Parameters:
+

ast_node (ast.AST) – AST node returned by _parse_ast_nodes

+
+
Returns:
+

None

+
+
+
+ +
+
+pyflyby._parse._annotate_ast_startpos(ast_node, parent_ast_node, minpos, text, flags)
+

Annotate ast_node. Set ast_node.startpos to the starting position +of the node within text.

+

For “typical” nodes, i.e. those other than multiline strings, this is +simply FilePos(ast_node.lineno, ast_node.col_offset+1), but taking +text.startpos into account.

+

For multiline string nodes, this function works by trying to parse all +possible subranges of lines until finding the range that is syntactically +valid and matches value. The candidate range is +text[min_start_lineno:lineno+text.startpos.lineno+1].

+

This function is unfortunately necessary because of a flaw in the output +produced by the Python built-in parser. For some crazy reason, the +ast_node.lineno attribute represents something different for multiline +string literals versus all other statements. For multiline string literal +nodes and statements that are just a string expression (or more generally, +nodes where the first descendant leaf node is a multiline string literal), +the compiler attaches the ending line number as the value of the lineno +attribute. For all other than AST nodes, the compiler attaches the +starting line number as the value of the lineno attribute. This means +e.g. the statement “’’’foonbar’’’” has a lineno value of 2, but the +statement “x=’’’foonbar’’’” has a lineno value of 1.

+
+
Parameters:
+
    +
  • minpos (FilePos) – Earliest position to check, in the number space of text.

  • +
  • text (FileText) – Source text that was used to parse the AST, whose startpos should be +used in interpreting ast_node.lineno (which always starts at 1 for +the subset that was parsed).

  • +
  • flags (CompilerFlags) – Compiler flags to use when re-compiling code.

  • +
+
+
Returns:
+

True if this node is a multiline string literal or the first child is +such a node (recursively); False otherwise.

+
+
Raises:
+

ValueError – Could not find the starting line number.

+
+
+
+ +
+
+pyflyby._parse._ast_node_is_in_docstring_position(ast_node)
+

Given a Str AST node, return whether its position within the AST makes +it eligible as a docstring.

+

The main way a Str can be a docstring is if it is a standalone string +at the beginning of a Module, FunctionDef, AsyncFucntionDef +or ClassDef.

+

We also support variable docstrings per Epydoc:

+
+
    +
  • If a variable assignment statement is immediately followed by a bare +string literal, then that assignment is treated as a docstring for +that variable.

  • +
+
+
+
Parameters:
+

ast_node (ast.Str) – AST node that has been annotated by _annotate_ast_nodes.

+
+
Return type:
+

bool

+
+
Returns:
+

Whether this string ast node is in docstring position.

+
+
+
+ +
+
+pyflyby._parse._ast_str_literal_value(node)
+
+ +
+
+pyflyby._parse._flags_to_try(source, flags, auto_flags, mode)
+

Flags to try for auto_flags.

+

If auto_flags is False, then only yield flags. +If auto_flags is True, then yield flags and flags ^ print_function.

+
+ +
+
+pyflyby._parse._flatten_ast_nodes(arg)
+
+ +
+
+pyflyby._parse._is_comment_or_blank(line)
+

Returns whether a line of python code contains only a comment is blank.

+
>>> _is_comment_or_blank("foo\n")
+False
+
+
+
>>> _is_comment_or_blank("  # blah\n")
+True
+
+
+
+ +
+
+pyflyby._parse._iter_child_nodes_in_order(node)
+

Yield all direct child nodes of node, that is, all fields that are nodes +and all items of fields that are lists of nodes.

+

_iter_child_nodes_in_order yields nodes in the same order that they +appear in the source.

+

ast.iter_child_nodes does the same thing, but not in source order. +e.g. for Dict s, it yields all key nodes before all value nodes.

+
+ +
+
+pyflyby._parse._iter_child_nodes_in_order_internal_1(node)
+
+ +
+
+pyflyby._parse._parse_ast_nodes(text, flags, auto_flags, mode)
+

Parse a block of lines into an AST.

+

Also annotate input_flags, source_flags, and flags on the +resulting ast node.

+
+
Parameters:
+
    +
  • auto_flags (bool) – Whether to guess different flags if text can’t be parsed with +flags.

  • +
  • mode – Compilation mode: “exec”, “single”, or “eval”.

  • +
+
+
Return type:
+

ast.Module

+
+
+
+ +
+
+pyflyby._parse._split_code_lines(ast_nodes, text)
+

Split the given ast_nodes and corresponding text by code/noncode +statement.

+

Yield tuples of (nodes, subtext). nodes is a list of ast.AST nodes, +length 0 or 1; subtext is a FileText sliced from text.

+

FileText(…))} for code lines and (None, FileText(...)) for non-code +lines (comments and blanks).

+
+
+
+ +
+
+pyflyby._parse._test_parse_string_literal(text, flags)
+

Attempt to parse text. If it parses cleanly to a single string +literal, return its value. Otherwise return None.

+
>>> _test_parse_string_literal(r'"foo\n" r"\nbar"', None)
+'foo\n\\nbar'
+
+
+
+ +
+
+pyflyby._parse._walk_ast_nodes_in_order(node)
+

Recursively yield all child nodes of node, in the same order that the +node appears in the source.

+

ast.walk does the same thing, but yields nodes in an arbitrary order.

+
+ +
+
+pyflyby._parse.infer_compile_mode(arg)
+

Infer the mode needed to compile arg.

+
+
Return type:
+

str

+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/py.html b/api/py.html new file mode 100644 index 00000000..8fd21201 --- /dev/null +++ b/api/py.html @@ -0,0 +1,1417 @@ + + + + + + + _py module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_py module

+

The py program (part of the pyflyby project) is a command-line multitool for +running python code, with heuristic intention guessing, automatic importing, +and debugging support.

+
+

Invocation summary

+
py [--file]   filename.py arg1 arg2   Execute a file
+py [--eval]  'function(arg1, arg2)'   Evaluate an expression/statement
+py [--apply]  function arg1 arg2      Call function(arg1, arg2)
+py [--module] modname arg1 arg2       Run a module
+
+py  --map     function arg1 arg2      Call function(arg1); function(arg2)
+
+py  -i       'function(arg1, arg2)'   Run file/code/etc, then run IPython
+py  --debug  'function(arg1, arg2)'   Debug file/code/etc
+py  --debug   PID                     Attach debugger to PID
+
+py            function?               Get help for a function or module
+py            function??              Get source of a function or module
+
+py                                    Start IPython with autoimporter
+py nb                                 Start IPython Notebook with autoimporter
+
+
+
+
+

Features

+
+
    +
  • Heuristic action mode guessing: If none of –file, –eval, –apply, +–module, or –map is specified, then guess what to do, choosing one of +these actions:

    +
    +
      +
    • Execute (run) a file

    • +
    • Evaluate concatenated arguments

    • +
    • Run a module

    • +
    • Call (apply) a function

    • +
    • Evaluate first argument

    • +
    +
    +
  • +
  • Automatic importing: All action modes (except run_module) automatically +import as needed.

  • +
  • Heuristic argument evaluation: By default, py –eval, py –apply, and +py –map guess whether the arguments should be interpreted as +expressions or literal strings. A “–” by itself will designate subsequent +args as strings. A “-” by itself will be replaced by the contents of +stdin as a string.

  • +
  • Merged eval/exec: Code is eval()ed or exec()ed as appropriate.

  • +
  • Result printing: By default, results are pretty-printed if not None.

  • +
  • Heuristic flags: “print” can be used as a function or a statement.

  • +
  • Matplotlib/pylab integration: show() is called if appropriate to block on +plots.

  • +
  • Enter debugger upon unhandled exception. (This functionality is enabled +by default when stdout is a tty. Use –postmortem=no to never use the +postmortem debugger. Use –postmortem=yes enable even if stdout is not a +tty. If the postmortem debugger is enabled but /dev/tty is not available, +then if an exception occurs, py will email instructions for attaching a +debugger.)

  • +
  • Control-\ (SIGQUIT) enters debugger while running (and allows continuing).

  • +
  • New builtin functions such as “debugger()”.

  • +
+
+
+

Warning

+

py is intended as an interactive tool. When writing shell aliases for +interactive use, the –safe option can be useful. When writing scripts, +it’s better to avoid all heuristic guessing; use regular python -c …, or +better yet, a full-fledged python program (and run tidy-imports).

+
+
+
+

Options

+
Global options valid before code argument:
+
+  --args=string    Interpret all arguments as literal strings.
+                   (The "--" argument also specifies remaining arguments to be
+                   literal strings.)
+  --args=eval      Evaluate all arguments as expressions.
+  --args=auto      (Default) Heuristically guess whether to evaluate arguments
+                   as literal strings or expressions.
+  --output=silent  Don't print the result of evaluation.
+  --output=str     Print str(result).
+  --output=repr    Print repr(result).
+  --output=pprint  Print pprint.pformat(result).
+  --output=repr-if-not-none
+                   Print repr(result), but only if result is not None.
+  --output=pprint-if-not-none
+                   Print pprint.pformat(result), but only if result is not None.
+  --output=interactive
+                   (Default) Print result.__interactive_display__() if defined,
+                   else pprint if result is not None.
+  --output=exit    Raise SystemExit(result).
+  --safe           Equivalent to --args=strings and PYFLYBY_PATH=EMPTY.
+  --quiet, --q     Log only error messages to stderr; omit info and warnings.
+  --interactive, --i
+                   Run an IPython shell after completion
+  --debug, --d     Run the target code file etc under the debugger.  If a PID is
+                   given, then instead attach a debugger to the target PID.
+  --verbose        Turn on verbose messages from pyflyby.
+
+Pseudo-actions valid before, after, or without code argument:
+
+  --version        Print pyflyby version or version of a module.
+  --help, --h, --? Print this help or help for a function or module.
+  --source, --??   Print source code for a function or module.
+
+
+

Examples

+

Start IPython with pyflyby autoimporter enabled:

+
$ py
+
+
+

Start IPython/Jupyter Notebook with pyflyby autoimporter enabled:

+
$ py nb
+
+
+

Find the ASCII value of the letter “j” (apply builtin function):

+
$ py ord j
+[PYFLYBY] ord('j')
+106
+
+
+

Decode a base64-encoded string (apply autoimported function):

+
$ py b64decode aGVsbG8=
+[PYFLYBY] from base64 import b64decode
+[PYFLYBY] b64decode('aGVsbG8=', altchars=None)
+b'hello'
+
+
+

Find the day of the week of some date (apply function in module):

+
$ py calendar.weekday 2014 7 18
+[PYFLYBY] import calendar
+[PYFLYBY] calendar.weekday(2014, 7, 18)
+4
+
+
+

Using named arguments:

+
$ py calendar.weekday --day=16 --month=7 --year=2014
+[PYFLYBY] import calendar
+[PYFLYBY] calendar.weekday(2014, 7, 16)
+2
+
+
+

Using short named arguments:

+
$ py calendar.weekday -m 7 -d 15 -y 2014
+[PYFLYBY] import calendar
+[PYFLYBY] calendar.weekday(2014, 7, 15)
+1
+
+
+

Invert a matrix (evaluate expression, with autoimporting):

+
$ py 'matrix("1 3 3; 1 4 3; 1 3 4").I'
+[PYFLYBY] from numpy import matrix
+[PYFLYBY] matrix("1 3 3; 1 4 3; 1 3 4").I
+matrix([[ 7., -3., -3.],
+        [-1.,  1.,  0.],
+        [-1.,  0.,  1.]])
+
+
+

Plot cosine (evaluate expression, with autoimporting):

+
$ py 'plot(cos(arange(30)))'
+[PYFLYBY] from numpy import arange
+[PYFLYBY] from numpy import cos
+[PYFLYBY] from matplotlib.pyplot import plot
+[PYFLYBY] plot(cos(arange(30)))
+<plot>
+
+
+

Command-line calculator (multiple arguments):

+
$ py 3 / 4
+0.75
+
+
+

Command-line calculator (single arguments):

+
$ py '(5+7j) \** 12'
+(65602966976-150532462080j)
+
+
+

Rationalize a decimal (apply bound method):

+
$ py 2.5.as_integer_ratio
+[PYFLYBY] 2.5.as_integer_ratio()
+(5, 2)
+
+
+

Rationalize a decimal (apply unbound method):

+
$ py float.as_integer_ratio 2.5
+[PYFLYBY] float.as_integer_ratio(2.5)
+(5, 2)
+
+
+

Rationalize decimals (map/apply):

+
$ py --map float.as_integer_ratio 2.5 3.5
+[PYFLYBY] float.as_integer_ratio(2.5)
+(5, 2)
+[PYFLYBY] float.as_integer_ratio(3.5)
+(7, 2)
+
+
+

Square numbers (map lambda):

+
$ py --map 'lambda x: x \**2' 3 4 5
+[PYFLYBY] (lambda x: x \**2)(3)
+9
+[PYFLYBY] (lambda x: x \**2)(4)
+16
+[PYFLYBY] (lambda x: x \**2)(5)
+25
+
+
+

Find length of string (using “-” for stdin):

+
$ echo hello | py len -
+[PYFLYBY] len('hello\\n')
+6
+
+
+

Run stdin as code:

+
$ echo 'print(sys.argv[1:])' | py - hello world
+[PYFLYBY] import sys
+['hello', 'world']
+
+
+

Run libc functions:

+
$ py --quiet --output=none 'CDLL("libc.so.6").printf' %03d 7
+007
+
+
+

Download web page:

+
$ py --print 'requests.get(sys.argv[1]).text' http://example.com
+
+
+

Get function help:

+
$ py b64decode?
+[PYFLYBY] from base64 import b64decode
+Python signature::
+
+  >> b64decode(s, altchars=None, validate=False)
+
+Command-line signature::
+
+  $ py b64decode s [altchars [validate]]
+  $ py b64decode --s=... [--altchars=...] [--validate=...]
+...
+
+
+

Get module help:

+
$ py pandas?
+[PYFLYBY] import pandas
+Version:
+  0.13.1
+Filename:
+  /usr/local/lib/python2.7/site-packages/pandas/__init__.pyc
+Docstring:
+  pandas - a powerful data analysis and manipulation library for Python
+  ...
+
+
+
+
+
+class pyflyby._py.LoggedList(items)
+

List that logs which members have not yet been accessed (nor removed).

+
+
+_ACCESSED = <object object>
+
+ +
+
+append(x)
+
+ +
+
+count()
+
+ +
+
+extend(new_items)
+
+ +
+
+index(x, *start_stop)
+
+ +
+
+insert(index, x)
+
+ +
+
+pop(index)
+
+ +
+
+remove(x)
+
+ +
+
+reverse()
+
+ +
+
+sort()
+
+ +
+
+property unaccessed
+
+ +
+ +
+
+exception pyflyby._py.NotAFunctionError
+
+ +
+
+exception pyflyby._py.ParseError
+
+ +
+
+pyflyby._py.SysArgvCtx(*args)
+
+
Context manager that:
    +
  • Temporarily sets sys.argv = args.

  • +
  • At end of context, complains if any args were never accessed.

  • +
+
+
+
+ +
+
+exception pyflyby._py.UnimportableNameError
+
+ +
+
+class pyflyby._py.UserExpr(arg, namespace, arg_mode, source=None)
+

An expression from user input, and its evaluated value.

+

The expression can come from a string literal or other raw value, or a +string that is evaluated as an expression, or heuristically chosen.

+
>>> ns = _Namespace()
+
+
+

Heuristic auto-evaluation:

+
>>> UserExpr('5+2', ns, "auto").value
+7
+
+>>> UserExpr('5j+2', ns, "auto").value
+(2+5j)
+
+>>> UserExpr('base64.b64decode("SGFsbG93ZWVu")', ns, "auto").value
+[PYFLYBY] import base64
+b'Halloween'
+
+
+

Returning an unparsable argument as a string:

+
>>> UserExpr('Victory Loop', ns, "auto").value
+'Victory Loop'
+
+
+

Returning an undefined (and not auto-importable) argument as a string:

+
>>> UserExpr('Willowbrook29817621+5', ns, "auto").value
+'Willowbrook29817621+5'
+
+
+

Explicit literal string:

+
>>> UserExpr("2+3", ns, "raw_value").value
+'2+3'
+
+>>> UserExpr("'2+3'", ns, "raw_value").value
+"'2+3'"
+
+
+

Other raw values:

+
>>> UserExpr(sys.exit, ns, "raw_value").value
+<built-in function exit>
+
+
+
+
+_infer_and_evaluate()
+
+ +
+ +
+
+class pyflyby._py._Namespace
+
+
+auto_eval(block, mode=None, info=False, auto_import=True, debug=False)
+

Evaluate block with auto-importing.

+
+ +
+
+auto_import(arg)
+
+ +
+ +
+
+exception pyflyby._py._ParseInterruptedWantHelp
+
+ +
+
+exception pyflyby._py._ParseInterruptedWantSource
+
+ +
+
+class pyflyby._py._PyMain(args)
+
+
+_enable_debug_tools()
+
+ +
+
+_parse_global_opts()
+
+ +
+
+_pre_exit()
+
+ +
+
+_pre_exit_interactive_shell()
+
+ +
+
+_pre_exit_matplotlib_show()
+

If matplotlib.pyplot (pylab) is loaded, then call the show() function. +This will cause the program to block until all figures are closed. +Without this, a command like ‘py plot(…)’ would exit immediately.

+
+ +
+
+_run_action()
+
+ +
+
+_seems_like_runnable_module(arg)
+
+ +
+
+apply(function, cmd_args)
+
+ +
+
+create_ipython_app()
+

Create an IPython application and initialize it, but don’t start it.

+
+ +
+
+eval(cmd, cmd_args)
+
+ +
+
+exec_stdin(cmd_args)
+
+ +
+
+execfile(filename_arg, cmd_args)
+
+ +
+
+heuristic_cmd(cmd, cmd_args, function_name=None)
+
+ +
+
+heuristic_run_module(module, args)
+
+ +
+
+print_help(objname, verbosity=1)
+
+ +
+
+print_version(arg)
+
+ +
+
+run()
+
+ +
+
+run_module(module, args)
+
+ +
+
+start_ipython(args=[])
+
+ +
+ +
+
+pyflyby._py._as_filename_if_seems_like_filename(arg)
+

If arg seems like a filename, then return it as one.

+
>>> bool(_as_filename_if_seems_like_filename("foo.py"))
+True
+
+
+
>>> bool(_as_filename_if_seems_like_filename("%foo.py"))
+False
+
+
+
>>> bool(_as_filename_if_seems_like_filename("foo(bar)"))
+False
+
+
+
>>> bool(_as_filename_if_seems_like_filename("/foo/bar/baz.quux-660470"))
+True
+
+
+
>>> bool(_as_filename_if_seems_like_filename("../foo/bar-24084866"))
+True
+
+
+
+
Return type:
+

Filename

+
+
+
+ +
+
+pyflyby._py._build_function_usage_string(function_name, argspec, prefix)
+
+ +
+
+pyflyby._py._format_call(function_name, argspec, args, kwargs)
+
+ +
+
+pyflyby._py._format_call_spec(function_name, argspec)
+
+ +
+
+pyflyby._py._get_argspec(arg, _recurse=False)
+
+ +
+
+pyflyby._py._get_help(expr, verbosity=1)
+

Construct a help string.

+
+
Parameters:
+

expr (UserExpr) – Object to generate help for.

+
+
Return type:
+

str

+
+
+
+ +
+
+pyflyby._py._handle_user_exception(exc_info=None)
+

Handle an exception in user code.

+
+ +
+
+pyflyby._py._has_python_shebang(filename)
+

Return whether the first line contains #!…python…

+

Used for confirming that an executable script found via which() is +actually supposed to be a python script.

+

Note that this test is only needed for scripts found via which(), since +otherwise the shebang is not necessary.

+
+ +
+
+pyflyby._py._interpret_arg_mode(arg, default='auto')
+
>>> _interpret_arg_mode("Str")
+'string'
+
+
+
+ +
+
+pyflyby._py._interpret_output_mode(arg, default='interactive')
+
>>> _interpret_output_mode('Repr_If_Not_None')
+'repr-if-not-none'
+
+
+
+ +
+
+pyflyby._py._parse_auto_apply_args(argspec, commandline_args, namespace, arg_mode='auto')
+

Parse command-line arguments heuristically. Arguments that can be +evaluated are evaluated; otherwise they are treated as strings.

+
+
Returns:
+

args, kwargs

+
+
+
+ +
+
+pyflyby._py._requires_parens_as_function(function_name)
+

Returns whether the given string of a callable would require parentheses +around it to call it.

+
>>> _requires_parens_as_function("foo.bar[4]")
+False
+
+
+
>>> _requires_parens_as_function("foo+bar")
+True
+
+
+
>>> _requires_parens_as_function("(foo+bar)()")
+False
+
+
+
>>> _requires_parens_as_function("(foo+bar)")
+False
+
+
+
>>> _requires_parens_as_function("(foo)+(bar)")
+True
+
+
+
+
Return type:
+

bool

+
+
+
+ +
+
+pyflyby._py.auto_apply(function, commandline_args, namespace, arg_mode=None, debug=False)
+

Call function on command-line arguments. Arguments can be positional +or keyword arguments like “–foo=bar”. Arguments are by default +heuristically evaluated.

+
+
Parameters:
+
    +
  • function (UserExpr) – Function to apply.

  • +
  • commandline_args (list of str) – Arguments to function as strings.

  • +
  • arg_mode – How to interpret commandline_args. If "string", then treat them +as literal strings. If "eval", then evaluate all arguments as +expressions. If "auto" (the default), then heuristically decide +whether to treat as expressions or strings.

  • +
+
+
+
+ +
+
+pyflyby._py.print_result(result, output_mode)
+
+ +
+
+pyflyby._py.py_main(args=None)
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api/util.html b/api/util.html new file mode 100644 index 00000000..897f8340 --- /dev/null +++ b/api/util.html @@ -0,0 +1,921 @@ + + + + + + + _util module — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

_util module

+
+
+pyflyby._util.AdviceCtx(joinpoint, hook)
+
+ +
+
+class pyflyby._util.Aspect(joinpoint)
+

Monkey-patch a target method (joinpoint) with “around” advice.

+

The advice can call “__original__(…)”. At run time, a global named +“__original__” will magically be available to the wrapped function. +This refers to the original function.

+

Suppose someone else wrote Foo.bar():

+
>>> class Foo(object):
+...     def __init__(self, x):
+...         self.x = x
+...     def bar(self, y):
+...         return "bar(self.x=%s,y=%s)" % (self.x,y)
+
+>>> foo = Foo(42)
+
+
+

To monkey patch foo.bar, decorate the wrapper with "@advise(foo.bar)":

+
>>> @advise(foo.bar)
+... def addthousand(y):
+...     return "advised foo.bar(y=%s): %s" % (y, __original__(y+1000))
+
+>>> foo.bar(100)
+'advised foo.bar(y=100): bar(self.x=42,y=1100)'
+
+
+

You can uninstall the advice and get the original behavior back:

+
>>> addthousand.unadvise()
+
+>>> foo.bar(100)
+'bar(self.x=42,y=100)'
+
+
+
+
See:
+

http://en.wikipedia.org/wiki/Aspect-oriented_programming

+
+
+
+
+_wrapper = None
+
+ +
+
+advise(hook, once=False)
+
+ +
+
+unadvise()
+
+ +
+ +
+
+pyflyby._util.CwdCtx(path)
+

Context manager that temporarily enters a new working directory.

+
+ +
+
+pyflyby._util.EnvVarCtx(**kwargs)
+

Context manager that temporarily modifies os.environ.

+
+ +
+
+pyflyby._util.ExcludeImplicitCwdFromPathCtx()
+

Context manager that temporarily removes “.” from sys.path.

+
+ +
+
+class pyflyby._util.FunctionWithGlobals(function, **variables)
+

A callable that at runtime adds extra variables to the target function’s +global namespace.

+

This is written as a class with a __call__ method. We do so rather than +using a metafunction, so that we can also implement __getattr__ to look +through to the target.

+
+ +
+
+pyflyby._util.ImportPathCtx(path_additions)
+

Context manager that temporarily prepends sys.path with path_additions.

+
+ +
+
+pyflyby._util.NullCtx()
+

Context manager that does nothing.

+
+ +
+
+exception pyflyby._util.WrappedAttributeError
+
+ +
+
+class pyflyby._util._WritableDictProxy(cls)
+

Writable equivalent of cls.__dict__.

+
+
+get(k, default=None)
+
+ +
+ +
+
+pyflyby._util.advise(joinpoint)
+

Advise joinpoint.

+

See Aspect.

+
+ +
+
+class pyflyby._util.cached_attribute(method, name=None)
+

Computes attribute value and caches it in instance.

+

Example:

+
class MyClass(object):
+    @cached_attribute
+    def myMethod(self):
+        # ...
+
+
+

Use “del inst.myMethod” to clear cache.

+
+ +
+
+pyflyby._util.cmp(a, b)
+
+ +
+
+pyflyby._util.indent(lines, prefix)
+
>>> indent('hello\nworld\n', '@@')
+'@@hello\n@@world\n'
+
+
+
+ +
+
+pyflyby._util.longest_common_prefix(items1, items2)
+

Return the longest common prefix.

+
>>> longest_common_prefix("abcde", "abcxy")
+'abc'
+
+
+
+
Return type:
+

type(items1)

+
+
+
+ +
+
+pyflyby._util.memoize(function)
+
+ +
+
+pyflyby._util.nested(*mgrs)
+
+ +
+
+pyflyby._util.partition(iterable, predicate)
+
>>> partition('12321233221', lambda c: int(c) % 2 == 0)
+(['2', '2', '2', '2', '2'], ['1', '3', '1', '3', '3', '1'])
+
+
+
+ +
+
+pyflyby._util.prefixes(parts)
+
>>> list(prefixes("abcd"))
+['a', 'ab', 'abc', 'abcd']
+
+
+
+ +
+
+pyflyby._util.stable_unique(items)
+

Return a copy of items without duplicates. The order of other items is +unchanged.

+
>>> stable_unique([1,4,6,4,6,5,7])
+[1, 4, 6, 5, 7]
+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/genindex.html b/genindex.html new file mode 100644 index 00000000..b598761a --- /dev/null +++ b/genindex.html @@ -0,0 +1,2092 @@ + + + + + + Index — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+
    +
  • + +
  • +
  • +
+
+
+
+
+ + +

Index

+ +
+ _ + | A + | B + | C + | D + | E + | F + | G + | H + | I + | J + | K + | L + | M + | N + | O + | P + | R + | S + | T + | U + | V + | W + +
+

_

+ + + +
+ +

A

+ + + +
+ +

B

+ + + +
+ +

C

+ + + +
+ +

D

+ + + +
+ +

E

+ + + +
+ +

F

+ + + +
+ +

G

+ + + +
+ +

H

+ + + +
+ +

I

+ + + +
+ +

J

+ + +
+ +

K

+ + + +
+ +

L

+ + + +
+ +

M

+ + + +
+ +

N

+ + + +
+ +

O

+ + + +
+ +

P

+ + + +
+ +

R

+ + + +
+ +

S

+ + + +
+ +

T

+ + + +
+ +

U

+ + + +
+ +

V

+ + + +
+ +

W

+ + + +
+ + + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..96cea273 --- /dev/null +++ b/index.html @@ -0,0 +1,1773 @@ + + + + + + + Pyflyby — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Pyflyby

+https://badge.fury.io/py/pyflyby.svg +https://travis-ci.org/deshaw/pyflyby.png?branch=master +

Pyflyby is a set of Python programming productivity tools for Python 3.7+.

+
+
For command-line interaction:
    +
  • py: command-line multitool

  • +
+
+
For IPython interaction:
    +
  • autoimporter: automatically imports symbols when needed.

  • +
+
+
For editing python source code:
    +
  • tidy-imports: adds missing ‘import’s, removes unused ‘import’s, +and also reformats import blocks.

  • +
  • find-import: prints to stdout how to import a particular symbol.

  • +
  • reformat-imports: reformats import blocks

  • +
  • collect-imports: prints out all the imports in a given set of files.

  • +
  • collect-exports: prints out definitions in a given set of modules, +in the form of import statements.

  • +
  • transform-imports: renames imported modules/functions.

  • +
+
+
+
+

Installation

+
$ pip install pyflyby
+
+
+
+
This creates an alias for your ipython named py which runs the pyflyby plug internally.

pyflyby has a dependency on ipython, if it isn’t already installed do install it with:

+
+
+
$ pip install ipython
+
+
+
+
+

Quick start: Autoimporter + IPython

+
$ py
+In [1]: re.search("[a-z]+", "....hello...").group(0)
+[PYFLYBY] import re
+Out[1]: 'hello'
+
+In [2]: chisqprob(arange(5), 2)
+[PYFLYBY] from numpy import arange
+[PYFLYBY] from scipy.stats import chisqprob
+Out[2]: [ 1.      0.6065  0.3679  0.2231  0.1353]
+
+
+

To load pyflyby into an existing IPython session as a 1-off:

+
$ ipython
+In [1]: %load_ext pyflyby
+
+
+

To configure IPython/Jupyter Notebook to load pyflyby automatically:

+
$ py pyflyby.install_in_ipython_config_file
+
+
+

or

+
$ echo 'c.InteractiveShellApp.extensions.append("pyflyby")' \
+  >> ~/.ipython/profile_default/ipython_config.py
+
+$ ipython
+In [1]: b64decode('aGVsbG8=')
+[PYFLYBY] from base64 import b64decode
+Out[1]: 'hello'
+
+
+
+
+

Quick start: py command-line multi-tool

+
$ py b64decode aGVsbG8=
+[PYFLYBY] from base64 import b64decode
+[PYFLYBY] b64decode('aGVsbG8=', altchars=None)
+'hello'
+
+$ py log2 sys.maxint
+[PYFLYBY] from numpy import log2
+[PYFLYBY] import sys
+[PYFLYBY] log2(9223372036854775807)
+63.0
+
+$ py 'plot(cos(arange(30)))'
+[PYFLYBY] from numpy import arange
+[PYFLYBY] from numpy import cos
+[PYFLYBY] from matplotlib.pyplot import plot
+[PYFLYBY] plot(cos(arange(30)))
+<plot>
+
+$ py 38497631 / 13951446
+2.7594007818257693
+
+$ py foo.py
+
+
+
+
+

Quick start: tidy-imports

+

To use tidy-imports, just specify the filename(s) to tidy.

+

For example:

+
$ echo 're.search("[a-z]+", "....hello..."), chisqprob(arange(5), 2)' > foo.py
+
+$ tidy-imports foo.py
+--- /tmp/foo.py
++++ /tmp/foo.py
+@@ -1 +1,9 @@
++from __future__ import absolute_import, division, with_statement
++
++from   numpy                    import arange
++from   scipy.stats              import chisqprob
++import re
++
+ re.search("[a-z]+", "....hello..."), chisqprob(arange(5), 2)
+
+Replace /tmp/foo.py? [y/N]
+
+
+
+
+

Quick start: import libraries

+

Create a file named .pyflyby with lines such as

+
from mypackage.mymodule import MyClass, my_function
+import anotherpackage.anothermodule
+
+
+

You can put this file in your home directory or in the same directory as your +*.py files.

+
+
+

Details: automatic imports

+

AUTOMATIC IMPORTS - never type “import” again!

+

This module allows your “known imports” to work automatically in your IPython +interactive session without having to type the ‘import’ statements (and also +without having to slow down your Python startup with imports you only use +occasionally).

+

Example:

+
In [1]: re.search("[a-z]+", "....hello...").group(0)
+[PYFLYBY] import re
+Out[1]: 'hello'
+
+In [2]: chisqprob(arange(5), 2)
+[PYFLYBY] from numpy import arange
+[PYFLYBY] from scipy.stats import chisqprob
+Out[2]: [ 1.      0.6065  0.3679  0.2231  0.1353]
+
+In [3]: np.sin(arandom(5))
+[PYFLYBY] from numpy.random import random as arandom
+[PYFLYBY] import numpy as np
+Out[3]: [ 0.0282  0.0603  0.4653  0.8371  0.3347]
+
+In [4]: isinstance(42, Number)
+[PYFLYBY] from numbers import Number
+Out[4]: True
+
+
+
+

It just works

+

Tab completion works, even on modules that are not yet imported. In the +following example, notice that numpy is imported when we need to know its +members, and only then:

+
$ ipython
+In [1]: nump<TAB>
+In [1]: numpy
+In [1]: numpy.arang<TAB>
+[PYFLYBY] import numpy
+In [1]: numpy.arange
+
+
+

The IPython “?” magic help (pinfo/pinfo2) automatically imports symbols first +if necessary:

+
$ ipython
+In [1]: arange?
+[PYFLYBY] from numpy import arange
+... Docstring: arange([start,] stop[, step,], dtype=None) ...
+
+
+

Other IPython magic commands work as well:

+
$ ipython
+In [1]: %timeit np.cos(pi)
+[PYFLYBY] import numpy as np
+[PYFLYBY] from numpy import pi
+100000 loops, best of 3: 2.51 us per loop
+
+$ echo 'print arange(4)' > foo.py
+$ ipython
+In [1]: %run foo.py
+[PYFLYBY] from numpy import arange
+[0 1 2 3]
+
+
+
+
+

Implementation details

+

The automatic importing happens at parse time, before code is executed. The +namespace never contains entries for names that are not yet imported.

+

This method of importing at parse time contrasts with previous implementations +of automatic importing that use proxy objects. Those implementations using +proxy objects don’t work as well, because it is impossible to make proxy +objects behave perfectly. For example, instance(x, T) will return the wrong +answer if either x or T is a proxy object.

+
+
+

Compatibility

+
+
Tested with:
    +
  • Python 3.8, 3.9, 3.10

  • +
  • IPython 0.10, 0.11, 0.12, 0.13, 1.0, 1.2, 2.0, 2.1, 2.2, 2.3, 2.4, 3.0, +3.1, 3.2, 4.0., 7.11 (latest)

  • +
  • IPython (text console), IPython Notebook, Spyder

  • +
+
+
+
+
+
+

Details: import libraries

+

Pyflyby uses “import libraries” that tell how to import a given symbol.

+

An import library file is simply a python source file containing ‘import’ (or +‘from … import …’) lines. These can be generated automatically with +collect-imports and collect-exports.

+
+

Known imports

+

Find-imports, tidy-imports, and autoimport consult the database of known +imports to figure out where to get an import. For example, if the +imports database contains:

+
from numpy import arange, NaN
+
+
+

then when you type the following in IPython:

+
print(arange(10))
+
+
+

the autoimporter would automatically execute from numpy import arange.

+

The database can be one file or multiple files. This makes it easy to have +project-specific known_imports along with global and per-user defaults.

+

The PYFLYBY_PATH environment variable specifies which files to read. +This is a colon-separated list of filenames or directory names. The default +is:

+
PYFLYBY_PATH=/etc/pyflyby:~/.pyflyby:.../.pyflyby
+
+
+

If you set:

+
PYFLYBY_PATH=/foo1/bar1:/foo2/bar2
+
+
+

then this replaces the default.

+

You can use a hyphen to include the default in the path. If you set:

+
PYFLYBY_PATH=/foo1/bar1:-:/foo2/bar2
+
+
+

then this reads /foo1/bar1, then the default locations, then /foo2/bar2.

+

In $PYFLYBY_PATH, .../.pyflyby (with _three_ dots) means that all ancestor +directories are searched for a member named “.pyflyby”.

+

For example, suppose the following files exist:

+
/etc/pyflyby/stuff.py
+/u/quarl/.pyflyby/blah1.py
+/u/quarl/.pyflyby/more/blah2.py
+/proj/share/mypythonstuff/.pyflyby
+/proj/share/mypythonstuff/foo/bar/.pyflyby/baz.py
+/.pyflyby
+
+
+

Further, suppose:

+
+
    +
  • /proj is on a separate file system from /.

  • +
  • $HOME=/u/quarl

  • +
+
+

Then tidy-imports /proj/share/mypythonstuff/foo/bar/quux/zot.py will by +default use the following:

+
/etc/pyflyby/stuff.py
+/u/quarl/.pyflyby/blah1.py
+/u/quarl/.pyflyby/more/blah2.py
+/proj/share/mypythonstuff/foo/bar/.pyflyby/baz.py
+/proj/share/mypythonstuff/.pyflyby (a file)
+
+
+
+

Note

+
    +
  • /.pyflyby is not included, because traversal stops at file system +boundaries, and in this example, /proj is on a different file system than +/.

  • +
  • .pyflyby (in $HOME or near the target file) can be a file or a directory. +If it is a directory, then it is recursively searched for *.py files.

  • +
  • The order usually doesn’t matter, but if there are “forget” instructions +(see below), then the order matters. In the default $PYFLYBY_PATH, +…/.pyflyby is placed last so that per-directory configuration can +override per-user configuration, which can override systemwide +configuration.

  • +
+
+
+
+

Forgetting imports

+

Occasionally you may have reason to tell pyflyby to “forget” entries from the +database of known imports.

+

You can put the following in any file reachable from $PYFLYBY_PATH:

+
__forget_imports__ = ["from numpy import NaN"]
+
+
+

This is useful if you want to use a set of imports maintained by someone else +except for a few particular imports.

+

Entries in $PYFLYBY_PATH are processed left-to-right in the order specified, +so put the files containing these at the end of your $PYFLYBY_PATH. By +default, tidy-imports and friends process /etc/pyflyby, then ~/.pyflyby, +then the per-directory .pyflyby.

+
+
+

Mandatory imports

+

Within a certain project you may have a policy to always include certain +imports. For example, maybe you always want to do from __future__ import +division in all files.

+

You can put the following in any file reachable from $PYFLYBY_PATH:

+
__mandatory_imports__ = ["from __future__ import division"]
+
+
+

To undo mandatory imports inherited from other .pyflyby files, use +__forget_imports__ (see above).

+
+
+

Canonicalize imports

+

Sometimes you want every run of tidy-imports to automatically rename an import +to a new name.

+

You can put the following in any file reachable from $PYFLYBY_PATH:

+
__canonical_imports__ = {"oldmodule.oldfunction": "newmodule.newfunction"}
+
+
+

This is equivalent to running:

+
tidy-imports --transform=oldmodule.oldfunction=newmodule.newfunction
+
+
+
+
+
+

Soapbox: avoid “star” imports

+

When programming in Python, a good software engineering practice is to avoid +using from foopackage import * in production code.

+

This style is a maintenance nightmare:

+
+
    +
  • It becomes difficult to figure out where various symbols +(functions/classes/etc) come from.

  • +
  • It’s hard to tell what gets shadowed by what.

  • +
  • When the package changes in trivial ways, your code will be affected. +Consider the following example: Suppose foopackage.py contains import +sys, and myprogram.py contains from foopackage import *; if +some_condition: sys.exit(0). If foopackage.py changes so that import +sys is removed, myprogram.py is now broken because it’s missing import +sys.

  • +
+
+

To fix such code, you can run tidy-imports --replace-star-imports to +automatically replace star imports with the specific needed imports.

+
+
+

Per-Project configuration of tidy-imports

+

You can configure Pyflyby on a per-repository basis by using the +[tool.pyflyby] section of pyproject.toml files. Pyflyby will look in current +working directory and all it’s parent until it find a pyproject.toml file from +which it will load the defaults.

+

Most of the long command line flags default values can be configured in this +section. Simply use the long form option name by replacing dashes - by +underscore _. For long option that have the form –xxx and –no-xxx, you +can assign a boolean to xxx. For example:

+
[tool.pyflyby]
+add_missing=true
+from_spaces=7
+remove_unused=false
+
+
+
+
+

Emacs support

+
    +
  • To get a M-x tidy-imports command in GNU Emacs, add to your ~/.emacs:

    +
    (load "/path/to/pyflyby/lib/emacs/pyflyby.el")
    +
    +
    +
  • +
+
    +
  • Pyflyby.el doesn’t yet work with XEmacs; patches welcome.

  • +
+
+
+

Authorship

+

This plugin was contributed back to the community by the D. E. Shaw group.

+https://www.deshaw.com/assets/logos/blue_logo_417x125.png +

Pyflyby is written by Karl Chen <quarl@8166.clguba.z.quarl.org>

+

We love contributions! Before you can contribute, please sign and submit this +Contributor License Agreement (CLA). +This CLA is in place to protect all users of this project.

+
+
+

License

+

Pyflyby is released under a very permissive license, the MIT/X11 license; see +LICENSE.txt.

+
+
+

Release

+
    +
  1. Check version number in lib/python/pyflyby/_version.py, maybe increase it.

  2. +
  3. Commit and tag if necessary, and push tags/commits.

  4. +
  5. Optional: Set SOURCE_DATE_EPOCH for reproducible build:

    +
    export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
    +
    +
    +
  6. +
  7. Build the SDIST:

    +
    python setup.py sdist
    +
    +
    +
  8. +
  9. Optional Repack the Sdist to make sure the ZIP only contain SOURCE_DATE_EPOCH +date using IPython tools:

    +
    python ~/dev/ipython/tools/retar.py dist/pyflyby-1.7.8.tar.gz
    +shasum -a 256 dist/*
    +
    +
    +
  10. +
  11. Optional, redo 4 & 5 to verify checksum is unchanged.

  12. +
  13. Upload using twine:

    +
    twine upload dist/*
    +
    +
    +
  14. +
  15. Check/update https://github.com/conda-forge/pyflyby-feedstock for new pyflyby +release on conda-forge

  16. +
+
+
+

Table of Contents

+
+ +
+
+
+

Indices and tables

+ +
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/objects.inv b/objects.inv new file mode 100644 index 00000000..ae3ee4ff Binary files /dev/null and b/objects.inv differ diff --git a/py-modindex.html b/py-modindex.html new file mode 100644 index 00000000..c9a9aebc --- /dev/null +++ b/py-modindex.html @@ -0,0 +1,823 @@ + + + + + + Python Module Index — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+
    +
  • + +
  • +
  • +
+
+
+
+
+ + +

Python Module Index

+ +
+ p +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
+ p
+ pyflyby +
    + pyflyby._autoimp +
    + pyflyby._cmdline +
    + pyflyby._comms +
    + pyflyby._dbg +
    + pyflyby._file +
    + pyflyby._flags +
    + pyflyby._format +
    + pyflyby._idents +
    + pyflyby._importclns +
    + pyflyby._importdb +
    + pyflyby._imports2s +
    + pyflyby._importstmt +
    + pyflyby._interactive +
    + pyflyby._livepatch +
    + pyflyby._log +
    + pyflyby._modules +
    + pyflyby._parse +
    + pyflyby._py +
    + pyflyby._util +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/search.html b/search.html new file mode 100644 index 00000000..29b21eb5 --- /dev/null +++ b/search.html @@ -0,0 +1,728 @@ + + + + + + Search — pyflyby 1.8.6 documentation + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+
    +
  • + +
  • +
  • +
+
+
+
+
+ + + + +
+ +
+ +
+
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/searchindex.js b/searchindex.js new file mode 100644 index 00000000..fa21295b --- /dev/null +++ b/searchindex.js @@ -0,0 +1 @@ +Search.setIndex({"docnames": ["api/api", "api/autoimp", "api/cmdline", "api/comms", "api/dbg", "api/file", "api/flags", "api/format", "api/idents", "api/importclns", "api/importdb", "api/imports2s", "api/importstmt", "api/interactive", "api/livepatch", "api/log", "api/modules", "api/parse", "api/py", "api/util", "index"], "filenames": ["api/api.rst", "api/autoimp.rst", "api/cmdline.rst", "api/comms.rst", "api/dbg.rst", "api/file.rst", "api/flags.rst", "api/format.rst", "api/idents.rst", "api/importclns.rst", "api/importdb.rst", "api/imports2s.rst", "api/importstmt.rst", "api/interactive.rst", "api/livepatch.rst", "api/log.rst", "api/modules.rst", "api/parse.rst", "api/py.rst", "api/util.rst", "index.rst"], "titles": ["pyflyby API", "_autoimp module", "_cmdline module", "_comms module", "_dbg module", "_file module", "_flags module", "_format module", "_idents module", "_importclns module", "_importdb module", "_imports2s module", "_importstmt module", "_interactive module", "_livepatch module", "_log module", "_modules module", "_parse module", "_py module", "_util module", "Pyflyby"], "terms": {"_autoimp": [0, 20], "modul": [0, 20], "loadsymbolerror": [0, 1, 20], "scopestack": [0, 1, 20], "_classscop": [0, 1, 20], "_import_fail": [0, 1, 20], "_missingimportfind": [0, 1, 20], "_usecheck": [0, 1, 20], "_find_earliest_backjump_label": [0, 1, 20], "_find_loads_without_stores_in_cod": [0, 1, 20], "_find_missing_imports_in_ast": [0, 1, 20], "_find_missing_imports_in_cod": [0, 1, 20], "_op": [0, 1, 20], "_try_import": [0, 1, 20], "auto_import_symbol": [0, 1, 20], "clear_failed_imports_cach": [0, 1, 20], "get_known_import": [0, 1, 20], "load_symbol": [0, 1, 20], "scan_for_import_issu": [0, 1, 20], "symbol_needs_import": [0, 1, 20], "_cmdline": [0, 20], "abortact": [0, 2, 20], "exit1": [0, 2, 20], "modifi": [0, 2, 11, 14, 19, 20], "_default_on_error": [0, 2, 20], "_sigpipe_handl": [0, 2, 20], "action_exit1": [0, 2, 20], "action_external_command": [0, 2, 20], "action_ifchang": [0, 2, 20], "action_print": [0, 2, 20], "action_queri": [0, 2, 20], "action_replac": [0, 2, 20], "filename_arg": [0, 2, 18, 20], "hfmt": [0, 2, 20], "maindoc": [0, 2, 20], "parse_arg": [0, 2, 20], "print_version_and_exit": [0, 2, 20], "process_act": [0, 2, 20], "symlink_callback": [0, 2, 20], "symlink_error": [0, 2, 20], "symlink_follow": [0, 2, 20], "symlink_replac": [0, 2, 20], "symlink_skip": [0, 2, 20], "syntax": [0, 2, 20], "_comm": [0, 20], "_reformat_help": [0, 3, 20], "_register_target": [0, 3, 20], "collect_code_with_imports_on_top": [0, 3, 20], "comm_close_handl": [0, 3, 20], "comm_open_handl": [0, 3, 20], "extract_import_stat": [0, 3, 20], "in_jupyt": [0, 3, 20], "initialize_comm": [0, 3, 20], "remove_comm": [0, 3, 20], "run_tidy_import": [0, 3, 20], "send_comm_messag": [0, 3, 20], "_dbg": [0, 20], "debuggerattachtimeouterror": [0, 4, 20], "pty": [0, 4, 20], "_debuggerctx": [0, 4, 20], "_displayhookctx": [0, 4, 20], "_excepthookctx": [0, 4, 20], "_fdctx": [0, 4, 20], "_nottyerror": [0, 4, 20], "_stdioctx": [0, 4, 20], "_abbrev_filenam": [0, 4, 20], "_debug_cod": [0, 4, 20], "_debug_except": [0, 4, 20], "_dev_nul": [0, 4, 20], "_dev_tty_fd": [0, 4, 20], "_escape_for_gdb": [0, 4, 20], "_find_py_commandlin": [0, 4, 20], "_get_caller_fram": [0, 4, 20], "_override_excepthook": [0, 4, 20], "_prompt_continue_waiting_for_debugg": [0, 4, 20], "_remote_print_stack_to_fil": [0, 4, 20], "_reset_excepthook": [0, 4, 20], "_send_email_with_attach_instruct": [0, 4, 20], "_signal_handler_debugg": [0, 4, 20], "_sigterm_handl": [0, 4, 20], "_sleep_until_debugger_attach": [0, 4, 20], "enable_sigterm_handl": [0, 4, 20], "get_execut": [0, 4, 20], "inject": [0, 4, 20], "kill_process": [0, 4, 20], "process_exist": [0, 4, 20], "setraw_but_sigint": [0, 4, 20], "syscall_mark": [0, 4, 20], "tty_is_us": [0, 4, 20], "wait_for_debugger_to_attach": [0, 4, 20], "_file": [0, 20], "filepo": [0, 5, 17, 20], "filetext": [0, 5, 17, 20], "unsafefilenameerror": [0, 5, 20], "atomic_write_fil": [0, 5, 20], "expand_py_files_from_arg": [0, 5, 20], "read_fil": [0, 5, 20], "which": [0, 1, 3, 5, 11, 12, 13, 14, 17, 18, 20], "write_fil": [0, 5, 20], "_flag": [0, 20], "compilerflag": [0, 6, 17, 20], "_format": [0, 20], "formatparam": [0, 7, 20], "fill": [0, 7, 20], "pyfil": [0, 7, 20], "_ident": [0, 20], "baddottedidentifiererror": [0, 8, 20], "dottedidentifi": [0, 1, 8, 20], "brace_identifi": [0, 8, 20], "dotted_prefix": [0, 8, 20], "is_identifi": [0, 8, 20], "_importcln": [0, 20], "conflictingimportserror": [0, 9, 20], "importmap": [0, 9, 20], "importset": [0, 9, 20], "nosuchimporterror": [0, 9, 20], "_importdb": [0, 20], "_ancestors_on_same_partit": [0, 10, 20], "_expand_tripledot": [0, 10, 20], "_get_env_var": [0, 10, 20], "_get_python_path": [0, 10, 20], "_imports2": [0, 20], "importalreadyexistserror": [0, 11, 20], "importpathforrelativeimportsctx": [0, 11, 20], "linenumberambiguouserror": [0, 11, 20], "linenumbernotfounderror": [0, 11, 20], "noimportblockerror": [0, 11, 20], "sourcetosourcefileimportstransform": [0, 11, 20], "sourcetosourceimportblocktransform": [0, 11, 20], "sourcetosourcetransform": [0, 11, 20], "sourcetosourcetransformationbas": [0, 11, 20], "fix_unused_and_missing_import": [0, 11, 20], "sort_import": [0, 11, 20], "_importstmt": [0, 20], "importformatparam": [0, 12, 20], "importsplit": [0, 12, 20], "_validate_alia": [0, 12, 20], "_interact": [0, 20], "autoimport": [0, 1, 13, 18], "interceptprintsduringpromptctx": [0, 13, 20], "noactiveipythonapperror": [0, 13, 20], "noipythonpackageerror": [0, 13, 20], "updateipythonstdioctx": [0, 13, 20], "_dummyipythonembeddedapp": [0, 13, 20], "_enablest": [0, 13, 20], "_ipython010terminalappl": [0, 13, 20], "_app_is_initi": [0, 13, 20], "_auto_import_in_pdb_fram": [0, 13, 20], "_enable_pdb_hook": [0, 13, 20], "_enable_terminal_pdb_hook": [0, 13, 20], "_generate_enabler_cod": [0, 13, 20], "_get_ipdb_class": [0, 13, 20], "_get_terminalpdb_class": [0, 13, 20], "_get_ipython_app": [0, 13, 20], "_get_ipython_color_schem": [0, 13, 20], "_get_or_create_ipython_kernel_app": [0, 13, 20], "_get_or_create_ipython_terminal_app": [0, 13, 20], "_get_pdb_if_is_in_pdb": [0, 13, 20], "_initialize_and_start_app_with_autoimport": [0, 13, 20], "_install_in_ipython_config_file_010": [0, 13, 20], "_install_in_ipython_config_file_011": [0, 13, 20], "_install_in_ipython_config_file_012": [0, 13, 20], "_install_in_ipython_config_file_40": [0, 13, 20], "_ipython_in_multilin": [0, 13, 20], "_ipython_namespac": [0, 13, 20], "_list_members_for_complet": [0, 13, 20], "_python_can_import_pyflybi": [0, 13, 20], "_skip_fram": [0, 13, 20], "complete_symbol": [0, 13, 20], "get_global_namespac": [0, 13, 20], "get_ipython_terminal_app_with_autoimport": [0, 13, 20], "new_ipdb_inst": [0, 13, 20], "print_verbose_tb": [0, 13, 20], "run_ipython_line_mag": [0, 13, 20], "start_ipython_kernel_with_autoimport": [0, 13, 20], "start_ipython_with_autoimport": [0, 13, 20], "_livepatch": [0, 20], "custom": [0, 3, 20], "behavior": [0, 13, 19, 20], "unknownmoduleerror": [0, 14, 20], "_format_ag": [0, 14, 20], "_get_definition_modul": [0, 14, 20], "_get_module_py_fil": [0, 14, 20], "_interpret_modul": [0, 14, 20], "_livepatch__class": [0, 14, 20], "_livepatch__dict": [0, 14, 20], "_livepatch__funct": [0, 14, 20], "_livepatch__method": [0, 14, 20], "_livepatch__modul": [0, 14, 20], "_livepatch__object": [0, 14, 20], "_livepatch__setattr": [0, 14, 20], "_xreload_modul": [0, 14, 20], "_log": [0, 20], "pyflybylogg": [0, 15, 20], "_prompttoolkitstdoutproxyrawctx": [0, 15, 20], "_pyflybyhandl": [0, 15, 20], "_is_interact": [0, 15, 20], "_is_ipython": [0, 15, 20], "_modul": [0, 20], "errorduringimporterror": [0, 16, 20], "modulehandl": [0, 16, 20], "_my_iter_modul": [0, 16, 20], "pyc_to_pi": [0, 16, 20], "_pars": [0, 20], "astnodecontext": [0, 17, 20], "ignoreoptionsdoctestpars": [0, 17, 20], "_dummyast_nod": [0, 17, 20], "_annotate_ast_context": [0, 17, 20], "_annotate_ast_nod": [0, 17, 20], "_annotate_ast_startpo": [0, 17, 20], "_ast_node_is_in_docstring_posit": [0, 17, 20], "_ast_str_literal_valu": [0, 17, 20], "_flags_to_tri": [0, 17, 20], "_flatten_ast_nod": [0, 17, 20], "_is_comment_or_blank": [0, 17, 20], "_iter_child_nodes_in_ord": [0, 17, 20], "_iter_child_nodes_in_order_internal_1": [0, 17, 20], "_parse_ast_nod": [0, 17, 20], "_split_code_lin": [0, 17, 20], "_test_parse_string_liter": [0, 17, 20], "_walk_ast_nodes_in_ord": [0, 17, 20], "infer_compile_mod": [0, 17, 20], "_py": [0, 20], "invoc": [0, 20], "summari": [0, 20], "featur": [0, 6, 15, 20], "option": [0, 2, 17, 20], "loggedlist": [0, 18, 20], "notafunctionerror": [0, 18, 20], "parseerror": [0, 18, 20], "sysargvctx": [0, 18, 20], "unimportablenameerror": [0, 18, 20], "userexpr": [0, 18, 20], "_namespac": [0, 18, 20], "_parseinterruptedwanthelp": [0, 18, 20], "_parseinterruptedwantsourc": [0, 18, 20], "_pymain": [0, 18, 20], "_as_filename_if_seems_like_filenam": [0, 18, 20], "_build_function_usage_str": [0, 18, 20], "_format_cal": [0, 18, 20], "_format_call_spec": [0, 18, 20], "_get_argspec": [0, 18, 20], "_get_help": [0, 18, 20], "_handle_user_except": [0, 18, 20], "_has_python_shebang": [0, 18, 20], "_interpret_arg_mod": [0, 18, 20], "_interpret_output_mod": [0, 18, 20], "_parse_auto_apply_arg": [0, 18, 20], "_requires_parens_as_funct": [0, 18, 20], "auto_appli": [0, 18, 20], "print_result": [0, 18, 20], "py_main": [0, 18, 20], "_util": [0, 20], "advicectx": [0, 19, 20], "aspect": [0, 19, 20], "cwdctx": [0, 19, 20], "envvarctx": [0, 19, 20], "excludeimplicitcwdfrompathctx": [0, 19, 20], "functionwithglob": [0, 19, 20], "importpathctx": [0, 19, 20], "nullctx": [0, 19, 20], "wrappedattributeerror": [0, 19, 20], "_writabledictproxi": [0, 19, 20], "advis": [0, 19, 20], "cached_attribut": [0, 2, 5, 8, 9, 16, 19, 20], "cmp": [0, 19, 20], "indent": [0, 7, 19, 20], "longest_common_prefix": [0, 19, 20], "memoiz": [0, 4, 14, 19, 20], "nest": [0, 16, 19, 20], "partit": [0, 10, 19, 20], "prefix": [0, 7, 8, 11, 16, 18, 19, 20], "stable_uniqu": [0, 19, 20], "except": [1, 2, 4, 5, 7, 8, 9, 11, 13, 14, 16, 18, 19, 20], "pyflybi": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "class": [1, 2, 4, 5, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "arg": [1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18], "_class_delai": 1, "none": [1, 2, 4, 5, 6, 8, 9, 11, 12, 13, 14, 15, 17, 18, 19, 20], "A": [1, 4, 5, 9, 14, 16, 18, 19], "stack": [1, 4], "namespac": [1, 13, 14, 18, 19, 20], "scope": 1, "tupl": [1, 4, 7, 9, 10, 12, 13, 17], "dict": [1, 12, 13, 14, 17], "": [1, 2, 5, 8, 9, 10, 13, 14, 15, 17, 18, 19, 20], "each": [1, 4, 7, 8, 12, 17], "entri": [1, 4, 20], "i": [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20], "order": [1, 13, 17, 19, 20], "from": [1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18, 19, 20], "most": [1, 13, 16, 20], "global": [1, 4, 11, 13, 14, 18, 19, 20], "local": [1, 4, 13, 18], "builtin": [1, 18], "ar": [1, 3, 4, 5, 8, 10, 11, 13, 14, 17, 18, 20], "alwai": [1, 5, 12, 17, 20], "includ": [1, 5, 13, 20], "duplic": [1, 19], "remov": [1, 7, 9, 11, 18, 19, 20], "_abc_impl": [1, 20], "_abc": 1, "_abc_data": 1, "object": [1, 2, 4, 5, 6, 7, 8, 9, 12, 13, 14, 16, 17, 18, 19, 20], "_cached_has_star_import": [1, 20], "fals": [1, 2, 4, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18, 19, 20], "clone_top": [1, 20], "return": [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "new": [1, 9, 11, 12, 13, 14, 17, 18, 19, 20], "referenc": 1, "same": [1, 7, 10, 13, 14, 17, 20], "self": [1, 2, 5, 8, 9, 14, 16, 19], "clone": 1, "topmost": 1, "alias": [1, 12, 18], "other": [1, 9, 12, 14, 17, 18, 19, 20], "has_star_import": [1, 20], "whether": [1, 4, 8, 12, 13, 14, 17, 18], "ani": [1, 13, 14, 15, 18, 20], "star": 1, "import": [1, 3, 6, 9, 11, 12, 13, 14, 16, 18], "thi": [1, 3, 4, 13, 14, 15, 16, 17, 18, 19, 20], "onli": [1, 11, 13, 14, 17, 18, 20], "relev": 1, "ast": [1, 13, 17], "base": [1, 11, 14], "static": [1, 5, 16], "analysi": [1, 18], "mode": [1, 4, 13, 17, 18], "merged_to_two": [1, 20], "2": [1, 4, 7, 12, 13, 17, 18, 19, 20], "These": [1, 9, 14, 20], "can": [1, 4, 8, 13, 14, 17, 18, 19, 20], "us": [1, 2, 4, 5, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 20], "function": [1, 2, 4, 5, 13, 14, 15, 17, 18, 19, 20], "take": [1, 14, 17], "argument": [1, 2, 5, 13, 14, 18], "eval": [1, 17, 18, 20], "If": [1, 4, 7, 8, 9, 12, 13, 14, 17, 18, 20], "one": [1, 7, 11, 13, 14, 18, 20], "twice": 1, "more": [1, 17, 20], "than": [1, 11, 17, 19, 20], "two": [1, 7, 14], "creat": [1, 4, 11, 13, 18, 20], "merg": [1, 9, 18], "ones": [1, 14], "The": [1, 3, 4, 11, 12, 13, 14, 16, 17, 18, 19, 20], "alia": [1, 12, 17, 20], "exist": [1, 4, 5, 10, 11, 13, 14, 16, 20], "type": [1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 16, 17, 18, 19, 20], "with_new_scop": [1, 20], "include_class_scop": 1, "new_class_scop": 1, "unhide_classdef": 1, "an": [1, 4, 9, 10, 11, 12, 13, 14, 16, 17, 18, 20], "addit": 1, "empti": [1, 8, 11, 18], "paramet": [1, 3, 4, 5, 7, 8, 9, 11, 13, 14, 15, 17, 18], "previou": [1, 14, 20], "meant": 1, "classdef": [1, 17], "unhid": 1, "definitiion": 1, "when": [1, 4, 11, 13, 14, 17, 18, 20], "we": [1, 4, 8, 13, 14, 15, 17, 19, 20], "enter": [1, 4, 13, 15, 18, 19], "method": [1, 14, 18, 19, 20], "set": [1, 4, 9, 14, 15, 17, 18, 20], "ve": 1, "alreadi": [1, 4, 13, 14, 20], "attempt": [1, 16, 17], "fail": 1, "find_unused_import": 1, "parse_docstr": 1, "helper": 1, "visit": [1, 20], "everi": [1, 20], "node": [1, 16, 17], "collect": [1, 20], "symbol": [1, 13, 20], "requir": [1, 18], "otherwis": [1, 4, 5, 17, 18], "defin": [1, 14, 16, 18], "assign": [1, 4, 17, 20], "For": [1, 10, 14, 17, 20], "attribut": [1, 2, 5, 8, 9, 13, 14, 16, 17, 19], "like": [1, 14, 18], "foo": [1, 7, 8, 10, 11, 13, 14, 17, 18, 19, 20], "bar": [1, 7, 8, 10, 13, 18, 19, 20], "baz": [1, 7, 8, 18, 20], "need": [1, 4, 13, 14, 17, 18, 20], "sophist": 1, "suppos": [1, 10, 14, 18, 19, 20], "user": [1, 4, 13, 18, 20], "access": [1, 18], "quux": [1, 7, 13, 18, 20], "mai": [1, 20], "avail": [1, 13, 18, 19], "just": [1, 3, 12, 13, 14, 17], "further": [1, 20], "decid": [1, 4, 18], "follow": [1, 13, 14, 17, 20], "assum": [1, 13], "whatev": 1, "under": [1, 4, 18, 20], "t": [1, 4, 5, 13, 14, 16, 17, 18, 20], "doe": [1, 3, 8, 10, 13, 14, 17, 19], "have": [1, 3, 9, 14, 18, 20], "_newscopectx": [1, 20], "kwarg": [1, 4, 7, 12, 13, 14, 16, 18, 19], "context": [1, 4, 11, 13, 15, 17, 18, 19], "manag": [1, 4, 11, 13, 18, 19], "temporarili": [1, 11, 18, 19], "push": [1, 20], "onto": 1, "_upscopectx": [1, 20], "move": 1, "up": [1, 4, 7, 10], "_check_load": [1, 20], "fullnam": [1, 9, 13], "lineno": [1, 5, 11, 17], "check": [1, 8, 11, 17, 20], "As": 1, "side": 1, "effect": [1, 14], "mark": 1, "todo": 1, "It": [1, 11, 13, 14], "would": [1, 4, 14, 16, 18, 20], "better": [1, 11, 18], "refactor": 1, "so": [1, 11, 13, 14, 18, 19, 20], "found": [1, 5, 11, 18], "here": 1, "_finish_deferred_load_check": [1, 20], "_get_scope_info": [1, 20], "_remove_from_missing_import": [1, 20], "_scan_nod": [1, 20], "_scan_unused_import": [1, 20], "_visit_load": [1, 20], "_visit_load_def": [1, 20], "_visit_load_defered_glob": [1, 20], "some": [1, 3, 13, 17, 18], "thing": [1, 17], "resolv": 1, "later": [1, 13], "_visit_load_immedi": [1, 20], "_visit_stor": [1, 20], "valu": [1, 2, 3, 4, 5, 8, 9, 12, 13, 16, 17, 18, 19, 20], "_visit_storeimport": [1, 20], "modulenam": [1, 12, 16], "_visit__all__": [1, 20], "_visit_fullnam": [1, 20], "ctx": 1, "_visit_typecom": [1, 20], "typecom": 1, "warn": [1, 4, 15, 18], "comment": [1, 11, 17], "string": [1, 4, 7, 8, 9, 13, 17, 18], "also": [1, 4, 11, 14, 17, 18, 19, 20], "get": [1, 4, 10, 13, 14, 18, 19, 20], "signatur": [1, 18], "after": [1, 3, 7, 12, 14, 18], "definit": [1, 20], "def": [1, 2, 5, 8, 9, 14, 16, 19], "int": [1, 4, 19], "pass": [1, 4, 13, 14], "And": 1, "variabl": [1, 10, 17, 19, 20], "annot": [1, 17], "pars": [1, 2, 8, 13, 17, 18, 20], "func_typ": 1, "support": [1, 4, 17, 18], "first": [1, 3, 5, 7, 10, 11, 12, 13, 15, 17, 18, 20], "find_missing_import": [1, 20], "generic_visit": [1, 20], "gener": [1, 10, 13, 14, 17, 18, 20], "visitor": 1, "all": [1, 3, 7, 8, 12, 17, 18, 20], "field": [1, 12, 17, 20], "declar": [1, 14], "_field": [1, 12, 17, 20], "call": [1, 4, 5, 13, 14, 15, 18, 19], "explicit": [1, 18], "codeblock": [1, 11], "visit_assign": [1, 20], "visit_asyncfunctiondef": [1, 20], "visit_attribut": [1, 20], "visit_classdef": [1, 20], "visit_delet": [1, 20], "visit_dict": [1, 20], "visit_dictcomp": [1, 20], "visit_excepthandl": [1, 20], "visit_functiondef": [1, 20], "visit_generatorexp": [1, 20], "visit_importfrom": [1, 20], "visit_lambda": [1, 20], "visit_listcomp": [1, 20], "visit_nam": [1, 20], "visit_setcomp": [1, 20], "visit_alia": [1, 20], "visit_arg": [1, 20], "visit_argu": [1, 20], "visit_comprehens": [1, 20], "name": [1, 4, 8, 12, 13, 14, 15, 16, 17, 18, 19, 20], "sourc": [1, 13, 17, 18, 20], "wa": [1, 4, 11, 14, 15, 17, 20], "bytecod": 1, "find": [1, 5, 11, 16, 17, 18, 20], "earliest": [1, 17], "target": [1, 4, 14, 18, 19, 20], "backward": 1, "jump": 1, "normal": 1, "repres": [1, 5, 17], "loop": [1, 18, 20], "exampl": [1, 2, 5, 8, 9, 10, 11, 14, 16, 17, 18, 19, 20], "given": [1, 2, 7, 9, 11, 17, 18, 20], "code": [1, 3, 4, 6, 13, 15, 17, 18, 20], "f": 1, "foo1": [1, 20], "foo2": [1, 20], "els": [1, 18, 19, 20], "foo3": 1, "foo4": 1, "while": [1, 4, 16, 18], "foo5": 1, "l7": 1, "foo6": 1, "offset": 1, "38": 1, "__code__": 1, "co_cod": 1, "note": [1, 4, 13, 18], "earlier": [1, 11], "20": [1, 15], "28": 1, "those": [1, 17, 20], "_forward_": 1, "client": [1, 3], "care": 1, "about": [1, 9], "_backward_": 1, "point": [1, 3], "end": [1, 7, 15, 17, 18, 20], "byte": 1, "compil": [1, 6, 13, 17], "e": [1, 4, 6, 13, 14, 16, 17, 20], "g": [1, 4, 13, 16, 17], "co": [1, 18, 20], "loads_without_stor": 1, "load": [1, 14, 18, 20], "without": [1, 4, 9, 18, 19, 20], "correspond": [1, 17], "store": 1, "disassembl": 1, "recurs": [1, 5, 10, 14, 17, 20], "codetyp": 1, "mutabl": 1, "add": [1, 11, 19, 20], "miss": [1, 11, 20], "numpi": [1, 11, 18, 20], "arang": [1, 18, 20], "x": [1, 6, 17, 18, 19, 20], "list": [1, 2, 3, 5, 8, 10, 13, 14, 16, 17, 18, 19, 20], "lambda": [1, 5, 18, 19], "y": [1, 18, 19, 20], "str": [1, 3, 4, 7, 8, 9, 12, 13, 14, 17, 18], "m": [1, 2, 9, 18, 20], "c": [1, 9, 14, 16, 18, 19, 20], "imp": [1, 11], "try": [1, 4, 13, 14, 16, 17], "execut": [1, 4, 13, 14, 18, 20], "result": [1, 4, 14, 17, 18], "print": [1, 4, 6, 7, 9, 11, 13, 18, 20], "stdout": [1, 4, 13, 18, 20], "what": [1, 4, 14, 18, 20], "re": [1, 13, 15, 17, 20], "do": [1, 2, 4, 13, 14, 18, 19, 20], "won": 1, "clobber": 1, "true": [1, 4, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18, 20], "success": 1, "failur": 1, "db": [1, 11, 13], "post_import_hook": 1, "auto": [1, 7, 13, 18], "singl": [1, 7, 8, 9, 12, 17, 18], "fulli": 1, "qualifi": 1, "sqlalchemi": 1, "orm": 1, "1": [1, 4, 5, 6, 12, 13, 17, 18, 19, 20], "importdb": [1, 13], "databas": [1, 13, 20], "dictionari": [1, 14, 17], "identifi": [1, 8, 9, 16], "auto_import": [1, 4, 13, 18, 20], "succeed": 1, "did": 1, "succe": 1, "callabl": [1, 5, 13, 15, 18, 19], "invok": 1, "successfulli": [1, 14], "made": 1, "bool": [1, 4, 8, 13, 17, 18], "clear": [1, 2, 5, 8, 9, 14, 16, 19], "cach": [1, 2, 5, 8, 9, 13, 14, 16, 19], "previous": 1, "deepest": [1, 16], "known": 1, "know": [1, 14, 20], "Then": [1, 4, 10, 20], "scipi": [1, 20], "interpol": 1, "o": [1, 8, 19], "path": [1, 4, 5, 11, 16, 19, 20], "join": [1, 5, 20], "__name__": 1, "asdf": 1, "traceback": [1, 13], "recent": 1, "last": [1, 7, 20], "attributeerror": 1, "ha": [1, 13, 14, 17, 20], "nameerror": 1, "default": [1, 2, 4, 8, 10, 14, 18, 19, 20], "must": [1, 7, 8, 12], "rais": [1, 4, 13, 16, 17, 18], "anoth": [1, 14, 16], "unus": [1, 11, 20], "aa": [1, 8, 9, 10], "bb": [1, 8, 9, 10], "cc": [1, 8, 9, 10], "nnumpi": 1, "narang": 1, "3": [1, 12, 13, 18, 19, 20], "docstr": [1, 17, 18, 20], "compar": 1, "consid": [1, 20], "becaus": [1, 14, 17, 20], "refer": [1, 13, 14, 19], "brace": 1, "n": [1, 7, 11, 13, 17, 18, 19, 20], "current": [1, 4, 13, 14, 15, 20], "well": [1, 12, 20], "within": [1, 4, 5, 12, 17, 20], "request": [1, 18], "see": [1, 9, 14, 19, 20], "noth": [1, 14, 19], "intent": [1, 18], "match": [1, 9, 13, 14, 17], "don": [1, 5, 13, 14, 18, 20], "want": [1, 14, 20], "getattr": 1, "sinc": [1, 14, 18], "could": [1, 14, 16, 17], "slow": [1, 20], "search": [1, 5, 20], "item": [1, 9, 13, 17, 18, 19, 20], "filenam": [2, 4, 5, 10, 11, 13, 14, 16, 18, 20], "_tempfil": [2, 20], "input_cont": [2, 20], "comput": [2, 5, 8, 9, 16, 19], "instanc": [2, 4, 5, 8, 9, 13, 14, 16, 19, 20], "myclass": [2, 5, 8, 9, 16, 19, 20], "mymethod": [2, 5, 8, 9, 16, 19], "del": [2, 5, 8, 9, 16, 19], "inst": [2, 5, 8, 9, 16, 19], "input_content_filenam": [2, 20], "output_cont": [2, 20], "output_content_filenam": [2, 20], "command": [2, 13, 18], "prompt": [2, 4, 13], "proce": 2, "on_error": [2, 5, 13], "line": [2, 5, 7, 11, 13, 17, 18, 19], "addopt": 2, "import_format_param": 2, "modify_action_param": 2, "setup": [2, 20], "top": 2, "level": [2, 12, 13, 15], "script": [2, 18], "extra": [2, 13, 19], "action": [2, 18], "modify_funct": 2, "reraise_except": 2, "opt_str": 2, "parser": [2, 17], "messag": [2, 3, 17, 18], "usag": 2, "input_cod": 3, "target_nam": 3, "cell_arrai": 3, "comm": 3, "handl": [3, 13, 16, 18], "comm_open": 3, "http": [3, 14, 18, 19, 20], "jupyt": [3, 18, 20], "readthedoc": 3, "io": 3, "en": [3, 19], "stabl": 3, "html": [3, 14], "open": [3, 4], "handler": [3, 4], "frontend": 3, "jupyterlab": 3, "text": [3, 8, 16, 17, 18, 20], "util": 3, "notebook": [3, 18, 20], "interact": [3, 4, 13, 18, 20], "extract": [3, 17], "statement": [3, 4, 7, 9, 11, 12, 17, 18, 20], "python": [3, 4, 6, 7, 8, 13, 14, 17, 18, 20], "second": [3, 4, 13], "remain": [3, 14, 18], "msg": [3, 4], "commun": [4, 20], "tty": [4, 18], "dev": [4, 18, 20], "environ": [4, 10, 19, 20], "stdio": 4, "sy": [4, 11, 13, 15, 18, 19, 20], "hook": [4, 13, 19], "debugg": [4, 18], "initi": [4, 13, 18, 20], "ipython": [4, 13, 15, 18], "necessari": [4, 12, 13, 14, 17, 18, 20], "yield": [4, 8, 17], "pdb": [4, 13], "reset": 4, "displayhook": 4, "upon": [4, 13, 18], "restor": 4, "pre": [4, 15], "exit": [4, 13, 18, 20], "excepthook": 4, "target_fd": 4, "src_fd": 4, "forc": [4, 14], "fd": 4, "0": [4, 12, 13, 15, 17, 18, 19, 20], "__": 4, "stdin": [4, 13, 18], "stderr": [4, 13, 15, 18], "allow": [4, 8, 13, 14, 18, 20], "u": [4, 10, 20], "even": [4, 13, 14, 18, 20], "redirect": 4, "either": [4, 20], "file": [4, 5, 6, 10, 15, 18, 20], "descriptor": 4, "run": [4, 13, 15, 18, 19, 20], "exc_info": [4, 13, 18], "debug": [4, 15, 18], "trace": 4, "suitabl": 4, "read": [4, 20], "write": [4, 18], "null": 4, "escap": [4, 15], "make": [4, 12, 17, 20], "safe": [4, 18], "gdb": 4, "closest": 4, "frame": [4, 13], "outsid": 4, "frametyp": 4, "overrid": [4, 17, 20], "should": [4, 12, 13, 14, 17, 18], "instead": [4, 12, 14, 18], "directli": [4, 5], "overid": 4, "help": [4, 18, 20], "certain": [4, 20], "case": [4, 14], "opinion": 4, "keep": [4, 14], "process": [4, 10, 13, 20], "wait": 4, "attach": [4, 13, 17, 18], "pid": [4, 18], "mailto": 4, "originalpid": 4, "signal_numb": 4, "interrupted_fram": 4, "signum": 4, "timeout": 4, "86400": 4, "on_existing_handl": 4, "instal": [4, 13], "sigterm": 4, "caus": [4, 15, 18], "befor": [4, 7, 11, 13, 15, 17, 18, 20], "regist": 4, "keep_exist": 4, "silent": [4, 18], "warn_and_overrid": 4, "log": [4, 15, 18], "silently_overrid": 4, "full": [4, 13, 18], "show_gdb_output": 4, "id": 4, "iter": [4, 12, 17, 19], "kill_sign": 4, "kill": 4, "variou": [4, 20], "signal": 4, "sequenc": [4, 5, 7, 12, 14, 17], "delai": 4, "tri": [4, 16], "next": 4, "put": [4, 14, 20], "termin": [4, 13], "raw": [4, 18], "dummi": 4, "syscal": 4, "visibl": 4, "truss": 4, "strace": 4, "usabl": 4, "In": [4, 11, 14, 20], "session": [4, 13, 20], "non": [4, 9, 11, 17], "ssh": 4, "localhost": 4, "py": [4, 5, 11, 14, 18], "q": [4, 18], "differ": [4, 10, 17, 20], "isatti": 4, "program": [4, 5, 18, 20], "pipe": 4, "though": [4, 14], "background": 4, "send": 4, "email": [4, 18], "_getfram": 4, "recipi": 4, "fork": 4, "child": [4, 17], "parent": [4, 8, 13, 16, 17, 20], "continu": [4, 18], "immedi": [4, 17, 18], "complet": [4, 13, 18, 20], "maximum": 4, "number": [4, 11, 12, 17, 18, 20], "colno": 5, "posit": [5, 17, 18], "both": [5, 9, 17], "index": [5, 17, 18, 20], "_one_on": [5, 20], "properti": [5, 15, 18], "_data": [5, 20], "classmethod": [5, 8, 9, 11, 12, 13, 16, 17], "_from_lc": [5, 20], "_intint": [5, 20], "startpo": [5, 17], "contigu": 5, "_colno_to_index": [5, 20], "lineindex": 5, "_from_lin": [5, 20], "_lineno_to_index": [5, 20], "alter": [5, 20], "concaten": [5, 18, 20], "bunch": 5, "endpo": [5, 17, 20], "from_filenam": [5, 20], "data": [5, 9, 18], "pathnam": [5, 10], "enumer": [5, 13], "directori": [5, 10, 19, 20], "specifi": [5, 10, 11, 12, 17, 18, 20], "inaccess": 5, "represent": [6, 9, 12], "flag": [6, 9, 13, 17, 18, 20], "__future__": [6, 9, 12, 20], "0x18000": 6, "__interactive_display__": [6, 18], "with_stat": [6, 20], "print_funct": [6, 17], "0x10000": 6, "0x8000": 6, "exec": [6, 17, 18], "dont_inherit": 6, "hanging_ind": [7, 20], "never": [7, 18, 20], "4": [7, 13, 18, 19, 20], "max_line_length": [7, 20], "79": 7, "use_black": [7, 20], "wrap_paren": [7, 20], "token": [7, 8, 12], "sep": 7, "suffix": 7, "newlin": [7, 13], "80": 7, "them": [7, 11, 18], "charact": 7, "hello": [7, 18, 19, 20], "world": [7, 9, 18, 19], "25": [7, 18], "There": 7, "least": [7, 12], "separ": [7, 20], "append": [7, 18, 20], "element": 7, "indic": 7, "between": 7, "trail": [7, 8], "whitespac": 7, "prepend": [7, 19], "begin": [7, 11, 17], "subsequ": [7, 18], "param": [7, 9, 11], "quuuuux": 7, "15": [7, 18], "14": 7, "scope_info": 8, "_from_nam": [8, 20], "startswith": [8, 20], "form": [8, 10, 14, 20], "some_token": 8, "salut": 8, "your_nam": 8, "dotted_nam": 8, "revers": [8, 18, 20], "dot": [8, 10, 13, 20], "shortest": 8, "longest": [8, 11, 19], "valid": [8, 17, 18], "By": [8, 14, 18, 20], "mean": [8, 11, 17, 20], "compon": 8, "compris": 8, "exclud": 8, "keyword": [8, 12, 18], "input": [8, 10, 11, 13, 18], "map": [9, 12, 17, 18], "b": [9, 14, 16, 18, 19], "immut": 9, "structur": 9, "_empti": [9, 20], "_from_map": [9, 20], "_merg": [9, 20], "iteritem": [9, 20], "iterkei": [9, 20], "kei": [9, 17, 20], "without_import": [9, 20], "copi": [9, 14, 19], "ignore_nonimport": 9, "ignore_shadow": 9, "organ": 9, "m1": [9, 11, 14], "f1": 9, "m2": [9, 11, 14], "f2": 9, "m3": [9, 11], "m4": [9, 11], "m34": 9, "_by_module_nam": [9, 20], "_from_arg": [9, 20], "complain": [9, 18], "ignor": [9, 14], "__new__": 9, "_from_import": [9, 20], "by_import_a": [9, 20], "conflicting_import": [9, 20], "get_stat": [9, 20], "separate_from_import": [9, 12, 20], "canonic": 9, "importstat": 9, "been": [9, 13, 14, 17, 18], "sort": [9, 11, 18, 20], "d": [9, 18, 20], "dd": 9, "divis": [9, 20], "_hello": 9, "member_nam": [9, 12, 20], "pretty_print": [9, 11, 20], "allow_conflict": 9, "pretti": [9, 11, 18], "block": [9, 11, 12, 16, 17, 18, 20], "with_import": [9, 20], "union": 9, "new_import": 9, "impset": 9, "t1": 9, "t2": 9, "t3": 9, "t2a": 9, "t2b": 9, "t4": 9, "ancestor": [10, 16, 20], "mount": 10, "homer": 10, "target_dirnam": 10, "expand": 10, "etc": [10, 13, 14, 18, 20], "oldest": 10, "st_dev": 10, "tt": 10, "env_var_nam": 10, "split": [10, 17], "replac": [10, 12, 14, 17, 18, 20], "default_path": 10, "config": 10, "undefin": [10, 11, 18], "colon": [10, 20], "delimit": 10, "tripl": 10, "travers": [10, 20], "rel": 11, "work": [11, 12, 13, 14, 17, 19], "expect": 11, "add_import": [11, 20], "inf": 11, "pick": 11, "constraint": 11, "find_import_block_by_lineno": [11, 20], "contain": [11, 13, 14, 16, 17, 18, 20], "insert_new_blocks_after_com": [11, 20], "insert_new_import_block": [11, 20], "ad": [11, 14], "intend": [11, 18], "preprocess": [11, 20], "remove_import": [11, 20], "select_import_block_by_closest_prefix_match": [11, 20], "max_lineno": 11, "heurist": [11, 18], "fit": 11, "best": [11, 20], "select": 11, "common": [11, 19], "_from_source_cod": [11, 20], "output": [11, 17, 18, 20], "pythonblock": 11, "add_miss": [11, 20], "remove_unus": [11, 20], "automat": [11, 18], "add_mandatori": 11, "fix": [11, 13, 20], "format": [11, 20], "below": [11, 20], "np": [11, 20], "tmp": [11, 20], "group": [11, 20], "align_futur": [12, 20], "align": 12, "space": [12, 17], "align_import": [12, 20], "how": [12, 18, 20], "integ": 12, "column": 12, "thei": [12, 17, 18], "wrap": [12, 19], "from_spac": [12, 20], "come": [12, 18, 20], "module_nam": [12, 20], "import_a": [12, 20], "claus": 12, "_asdict": [12, 17, 20], "_field_default": [12, 17, 20], "_make": [12, 17, 20], "_replac": [12, 17, 20], "kwd": [12, 17], "ensur": 12, "ellipsi": 13, "enabl": [13, 18, 20], "state": 13, "applic": [13, 18], "_advis": [13, 20], "joinpoint": [13, 19], "_construct": [13, 20], "app": 13, "_continue_en": [13, 20], "_enable_ast_hook": [13, 20], "ip": 13, "somewher": 13, "pipelin": 13, "_enable_completer_hook": [13, 20], "_enable_completion_hook": [13, 20], "tab": [13, 20], "_enable_debugger_hook": [13, 20], "_enable_initializer_hook": [13, 20], "_enable_intern": [13, 20], "_enable_ipython_bugfix": [13, 20], "advic": [13, 19], "actual": [13, 18], "bug": 13, "_enable_ipython_bugfixes_levelformatt": [13, 20], "_enable_ipython_shell_bugfix": [13, 20], "_enable_kernel_manager_hook": [13, 20], "_enable_ofind_hook": [13, 20], "_ofind": 13, "pinfo": [13, 20], "autocal": 13, "_enable_prun_hook": [13, 20], "prun": 13, "_enable_reset_hook": [13, 20], "_enable_run_hook": [13, 20], "_enable_shell_hook": [13, 20], "_enable_start_kernel_hook": [13, 20], "kernel_manag": 13, "_enable_time_hook": [13, 20], "time": [13, 15, 19, 20], "_enable_timeit_hook": [13, 20], "timeit": [13, 20], "_from_app": [13, 20], "_safe_cal": [13, 20], "raise_on_error": 13, "if_debug": 13, "compile_with_autoimport": [13, 20], "src": 13, "disabl": [13, 17, 20], "turn": [13, 18], "off": [13, 20], "even_if_previously_error": 13, "reset_state_new_cel": [13, 20], "decor": [13, 19], "our": 13, "logger": [13, 15], "were": [13, 15, 18], "redisplai": 13, "packag": [13, 18, 20], "system": [13, 20], "updat": [13, 14, 20], "shell": [13, 18], "small": 13, "wrapper": [13, 19], "around": [13, 18, 19], "interactiveshellemb": 13, "shim": 13, "mimic": 13, "11": [13, 20], "10": [13, 15, 20], "_instanc": [13, 20], "init_shel": [13, 20], "argv": [13, 18], "start": [13, 17, 18], "pdb_instanc": 13, "core": 13, "terminalpdb": 13, "insid": [13, 15], "isn": [13, 20], "subapp": 13, "baseipythonappl": 13, "its": [13, 14, 17, 18, 20], "configur": 13, "color": 13, "scheme": 13, "terminalipythonapp": 13, "singleton": 13, "kernel": 13, "nonetyp": 13, "implement": [13, 14, 19], "install_in_ipython_config_fil": [13, 20], "12": [13, 18, 20], "test": [13, 14, 18, 20], "13": [13, 18, 20], "far": 13, "convent": 13, "namespace_dict": 13, "obj": [13, 14], "member": [13, 18, 20], "emul": 13, "regular": [13, 14, 18], "yet": [13, 18, 20], "submodul": [13, 16, 20], "whose": [13, 14, 17], "expected_path": 13, "sys_path_entri": 13, "figur": [13, 18, 20], "out": [13, 20], "scratch": [13, 14], "ignore_pkg": 13, "allow_ev": 13, "possibl": [13, 14, 17], "threadi": 13, "thread": 13, "threa": 13, "threaderror": 13, "being": [13, 14], "ask": 13, "quu": 13, "fact": 13, "interactiveshel": 13, "evalu": [13, 18], "ipcomplet": 13, "greedi": 13, "candid": [13, 17], "hasn": 13, "ultratb": 13, "magic": [13, 19, 20], "_user_n": 13, "livepatch": 14, "xreload": 14, "altern": 14, "reload": 14, "perform": 14, "live": 14, "patch": [14, 19, 20], "memori": 14, "place": [14, 20], "address": 14, "where": [14, 15, 17, 20], "print_foo": 14, "42": [14, 19, 20], "you": [14, 19, 20], "edit": [14, 20], "own": 14, "built": [14, 17, 18], "affect": [14, 20], "old": 14, "On": 14, "hand": 14, "tabl": 14, "undesir": 14, "desir": 14, "improv": 14, "larg": 14, "interdepend": 14, "becom": [14, 20], "infeas": 14, "precis": 14, "realli": 14, "shine": 14, "origin": [14, 19], "mail": 14, "post": [14, 15], "guido": 14, "van": 14, "rossum": 14, "org": [14, 19, 20], "pipermail": 14, "edu": 14, "sig": 14, "2007": 14, "februari": 14, "007787": 14, "__livepatch__": 14, "mechan": 14, "content": [14, 18], "do_livepatch": 14, "standard": 14, "roughli": 14, "equival": [14, 18, 19, 20], "modnam": [14, 18], "heed_hook": 14, "track": 14, "avoid": [14, 18], "touch": 14, "unknown": 14, "futur": 14, "bound": [14, 18], "unabl": 14, "across": 14, "wrapped_fn": 14, "keyerror": 14, "my_livepatch": 14, "keep_cach": 14, "xxx": [14, 20], "chang": [14, 20], "mayb": [14, 20], "myobj": 14, "__dict__": [14, 19], "__init__": [14, 18, 19], "_my_cach": 14, "__module__": 14, "reason": [14, 17, 20], "give": 14, "necessarili": 14, "construct": [14, 18], "oldclass": 14, "newclass": 14, "visit_stack": 14, "similar": 14, "howev": 14, "oper": 14, "special": 14, "setitem": 14, "setattr": 14, "old_dict": 14, "new_dict": 14, "old_func": 14, "new_func": 14, "old_method": 14, "new_method": 14, "old_mod": 14, "new_mod": 14, "oldobj": 14, "newobj": 14, "someth": [14, 15, 17], "via": [14, 18], "moduletyp": 14, "hookctx": [15, 20], "_level": [15, 20], "error": [15, 17, 18], "40": 15, "info": [15, 18], "30": [15, 18, 20], "debug_en": [15, 20], "info_en": [15, 20], "set_level": [15, 20], "proxi": [15, 20], "hack": 15, "defeat": 15, "prompt_toolkit": 15, "interfac": 15, "_stdoutproxi": 15, "ansi": 15, "written": [15, 19, 20], "record": 15, "emit": [15, 20], "dure": 15, "anyth": 15, "_interactive_prefix": [15, 20], "x1b": 15, "0m": 15, "33m": 15, "_logged_anything_during_context": [15, 20], "_noninteractive_prefix": [15, 20], "_pre_log_funct": [15, 20], "import_modul": 16, "occur": [16, 18], "That": 16, "importerror": 16, "doesn": [16, 20], "_cls_cach": [16, 20], "_from_filenam": [16, 20], "_from_modul": [16, 20], "_from_modulenam": [16, 20], "_member_from_nod": [16, 20], "commonli": 16, "export": [16, 20], "_find_opt": [17, 20], "direct": 17, "ast_nod": 17, "satisfi": 17, "part": [17, 18, 19], "now": [17, 20], "parent_ast_nod": 17, "minpo": 17, "typic": 17, "multilin": 17, "simpli": [17, 20], "col_offset": 17, "account": 17, "subrang": 17, "until": [17, 18, 20], "rang": 17, "syntact": 17, "min_start_lineno": 17, "unfortun": 17, "flaw": 17, "produc": 17, "crazi": 17, "liter": [17, 18], "versu": 17, "express": [17, 18], "descend": 17, "leaf": 17, "foonbar": 17, "interpret": [17, 18], "subset": 17, "valueerror": 17, "elig": 17, "main": 17, "wai": [17, 20], "standalon": 17, "functiondef": 17, "asyncfucntiondef": 17, "per": 17, "epydoc": 17, "bare": 17, "treat": [17, 18], "auto_flag": 17, "blank": 17, "blah": 17, "appear": 17, "iter_child_nod": 17, "input_flag": 17, "source_flag": 17, "guess": [17, 18], "noncod": 17, "subtext": 17, "length": [17, 18], "slice": 17, "cleanli": 17, "r": 17, "nbar": 17, "walk": 17, "arbitrari": 17, "infer": 17, "project": 18, "multitool": [18, 20], "arg1": 18, "arg2": 18, "appli": [18, 20], "nb": 18, "choos": 18, "run_modul": [18, 20], "itself": 18, "design": 18, "ed": 18, "appropri": 18, "matplotlib": [18, 20], "pylab": 18, "integr": 18, "show": [18, 20], "plot": [18, 20], "unhandl": 18, "postmortem": 18, "ye": 18, "instruct": [18, 20], "control": 18, "sigquit": 18, "tool": 18, "fledg": 18, "tidi": 18, "repr": 18, "pprint": 18, "pformat": 18, "systemexit": 18, "pyflyby_path": [18, 20], "quiet": 18, "omit": 18, "verbos": 18, "pseudo": 18, "version": [18, 20], "h": 18, "ascii": 18, "letter": 18, "j": 18, "ord": 18, "106": 18, "decod": 18, "base64": [18, 20], "encod": 18, "b64decod": [18, 20], "agvsbg8": [18, 20], "altchar": [18, 20], "dai": 18, "week": 18, "date": [18, 20], "calendar": 18, "weekdai": 18, "2014": 18, "7": [18, 19, 20], "18": 18, "16": 18, "month": 18, "year": 18, "short": 18, "invert": 18, "matrix": 18, "cosin": 18, "pyplot": [18, 20], "calcul": 18, "multipl": [18, 20], "75": 18, "5": [18, 19, 20], "7j": 18, "65602966976": 18, "150532462080j": 18, "ration": 18, "decim": 18, "as_integer_ratio": 18, "unbound": 18, "float": 18, "squar": 18, "9": [18, 20], "echo": [18, 20], "len": 18, "6": [18, 19], "libc": 18, "cdll": 18, "printf": 18, "03d": 18, "007": 18, "download": 18, "web": 18, "page": [18, 20], "com": [18, 20], "panda": 18, "usr": 18, "lib": [18, 20], "python2": 18, "site": 18, "pyc": 18, "power": 18, "manipul": 18, "librari": 18, "nor": 18, "_access": [18, 20], "count": [18, 20], "extend": [18, 20], "new_item": 18, "start_stop": 18, "insert": [18, 20], "pop": [18, 20], "unaccess": [18, 20], "At": [18, 19], "arg_mod": 18, "chosen": 18, "5j": 18, "sgfsbg93zwvu": 18, "halloween": 18, "unpars": 18, "victori": 18, "willowbrook29817621": 18, "raw_valu": 18, "_infer_and_evalu": [18, 20], "auto_ev": [18, 20], "_enable_debug_tool": [18, 20], "_parse_global_opt": [18, 20], "_pre_exit": [18, 20], "_pre_exit_interactive_shel": [18, 20], "_pre_exit_matplotlib_show": [18, 20], "close": 18, "_run_act": [18, 20], "_seems_like_runnable_modul": [18, 20], "cmd_arg": 18, "create_ipython_app": [18, 20], "cmd": 18, "exec_stdin": [18, 20], "execfil": [18, 20], "heuristic_cmd": [18, 20], "function_nam": 18, "heuristic_run_modul": [18, 20], "print_help": [18, 20], "objnam": 18, "print_vers": [18, 20], "start_ipython": [18, 20], "seem": 18, "660470": 18, "24084866": 18, "argspec": 18, "_recurs": 18, "expr": 18, "confirm": 18, "shebang": 18, "repr_if_not_non": 18, "commandline_arg": 18, "parenthes": 18, "output_mod": 18, "monkei": 19, "__original__": 19, "someon": [19, 20], "wrote": 19, "To": [19, 20], "addthousand": 19, "1000": 19, "100": 19, "1100": 19, "uninstal": 19, "back": [19, 20], "unadvis": [19, 20], "wikipedia": 19, "wiki": 19, "oriented_program": 19, "_wrapper": [19, 20], "onc": 19, "runtim": 19, "__call__": 19, "rather": 19, "metafunct": 19, "__getattr__": 19, "look": [19, 20], "through": 19, "path_addit": 19, "cl": 19, "writabl": 19, "k": 19, "nworld": 19, "items1": 19, "items2": 19, "abcd": 19, "abcxi": 19, "abc": 19, "mgr": 19, "predic": 19, "12321233221": 19, "ab": 19, "unchang": [19, 20], "product": 20, "reformat": 20, "particular": 20, "transform": 20, "renam": 20, "pip": 20, "your": 20, "plug": 20, "intern": 20, "depend": 20, "z": 20, "chisqprob": 20, "stat": 20, "6065": 20, "3679": 20, "2231": 20, "1353": 20, "load_ext": 20, "interactiveshellapp": 20, "extens": 20, "profile_default": 20, "ipython_config": 20, "log2": 20, "maxint": 20, "9223372036854775807": 20, "63": 20, "38497631": 20, "13951446": 20, "7594007818257693": 20, "absolute_import": 20, "mypackag": 20, "mymodul": 20, "my_funct": 20, "anotherpackag": 20, "anothermodul": 20, "home": 20, "again": 20, "down": 20, "startup": 20, "occasion": 20, "sin": 20, "arandom": 20, "random": 20, "0282": 20, "0603": 20, "4653": 20, "8371": 20, "3347": 20, "isinst": 20, "notic": 20, "nump": 20, "pinfo2": 20, "stop": 20, "step": 20, "dtype": 20, "pi": 20, "100000": 20, "51": 20, "happen": 20, "contrast": 20, "imposs": 20, "behav": 20, "perfectli": 20, "wrong": 20, "answer": 20, "8": 20, "latest": 20, "consol": 20, "spyder": 20, "tell": 20, "consult": 20, "nan": 20, "easi": 20, "specif": 20, "known_import": 20, "along": 20, "bar1": 20, "bar2": 20, "hyphen": 20, "locat": 20, "_three_": 20, "stuff": 20, "quarl": 20, "blah1": 20, "blah2": 20, "proj": 20, "share": 20, "mypythonstuff": 20, "zot": 20, "boundari": 20, "usual": 20, "matter": 20, "systemwid": 20, "reachabl": 20, "__forget_imports__": 20, "maintain": 20, "few": 20, "left": 20, "right": 20, "friend": 20, "polici": 20, "__mandatory_imports__": 20, "undo": 20, "inherit": 20, "abov": 20, "sometim": 20, "__canonical_imports__": 20, "oldmodul": 20, "oldfunct": 20, "newmodul": 20, "newfunct": 20, "good": 20, "softwar": 20, "engin": 20, "practic": 20, "foopackag": 20, "style": 20, "mainten": 20, "nightmar": 20, "difficult": 20, "hard": 20, "shadow": 20, "trivial": 20, "myprogram": 20, "some_condit": 20, "broken": 20, "repositori": 20, "basi": 20, "section": 20, "pyproject": 20, "toml": 20, "long": 20, "dash": 20, "underscor": 20, "_": 20, "boolean": 20, "gnu": 20, "el": 20, "xemac": 20, "welcom": 20, "plugin": 20, "contribut": 20, "shaw": 20, "karl": 20, "chen": 20, "8166": 20, "clguba": 20, "love": 20, "pleas": 20, "sign": 20, "submit": 20, "contributor": 20, "agreement": 20, "cla": 20, "protect": 20, "veri": 20, "permiss": 20, "mit": 20, "x11": 20, "txt": 20, "_version": 20, "increas": 20, "commit": 20, "tag": 20, "source_date_epoch": 20, "reproduc": 20, "build": 20, "git": 20, "ct": 20, "head": 20, "sdist": 20, "repack": 20, "sure": 20, "zip": 20, "retar": 20, "dist": 20, "tar": 20, "gz": 20, "shasum": 20, "256": 20, "redo": 20, "verifi": 20, "checksum": 20, "upload": 20, "twine": 20, "github": 20, "conda": 20, "forg": 20, "feedstock": 20, "api": 20}, "objects": {"pyflyby": [[1, 0, 0, "-", "_autoimp"], [2, 0, 0, "-", "_cmdline"], [3, 0, 0, "-", "_comms"], [4, 0, 0, "-", "_dbg"], [5, 0, 0, "-", "_file"], [6, 0, 0, "-", "_flags"], [7, 0, 0, "-", "_format"], [8, 0, 0, "-", "_idents"], [9, 0, 0, "-", "_importclns"], [10, 0, 0, "-", "_importdb"], [11, 0, 0, "-", "_imports2s"], [12, 0, 0, "-", "_importstmt"], [13, 0, 0, "-", "_interactive"], [14, 0, 0, "-", "_livepatch"], [15, 0, 0, "-", "_log"], [16, 0, 0, "-", "_modules"], [17, 0, 0, "-", "_parse"], [18, 0, 0, "-", "_py"], [19, 0, 0, "-", "_util"]], "pyflyby._autoimp": [[1, 1, 1, "", "LoadSymbolError"], [1, 2, 1, "", "ScopeStack"], [1, 2, 1, "", "_ClassScope"], [1, 5, 1, "", "_IMPORT_FAILED"], [1, 2, 1, "", "_MissingImportFinder"], [1, 2, 1, "", "_UseChecker"], [1, 6, 1, "", "_find_earliest_backjump_label"], [1, 6, 1, "", "_find_loads_without_stores_in_code"], [1, 6, 1, "", "_find_missing_imports_in_ast"], [1, 6, 1, "", "_find_missing_imports_in_code"], [1, 6, 1, "", "_op"], [1, 6, 1, "", "_try_import"], [1, 6, 1, "", "auto_import_symbol"], [1, 6, 1, "", "clear_failed_imports_cache"], [1, 6, 1, "", "get_known_import"], [1, 6, 1, "", "load_symbol"], [1, 6, 1, "", "scan_for_import_issues"], [1, 6, 1, "", "symbol_needs_import"]], "pyflyby._autoimp.ScopeStack": [[1, 3, 1, "", "_abc_impl"], [1, 3, 1, "", "_cached_has_star_import"], [1, 4, 1, "", "clone_top"], [1, 4, 1, "", "has_star_import"], [1, 4, 1, "", "merged_to_two"], [1, 4, 1, "", "with_new_scope"]], "pyflyby._autoimp._MissingImportFinder": [[1, 4, 1, "", "_NewScopeCtx"], [1, 4, 1, "", "_UpScopeCtx"], [1, 4, 1, "", "_check_load"], [1, 4, 1, "", "_finish_deferred_load_checks"], [1, 4, 1, "", "_get_scope_info"], [1, 4, 1, "", "_remove_from_missing_imports"], [1, 4, 1, "", "_scan_node"], [1, 4, 1, "", "_scan_unused_imports"], [1, 4, 1, "", "_visit_Load"], [1, 4, 1, "", "_visit_Load_defered"], [1, 4, 1, "", "_visit_Load_defered_global"], [1, 4, 1, "", "_visit_Load_immediate"], [1, 4, 1, "", "_visit_Store"], [1, 4, 1, "", "_visit_StoreImport"], [1, 4, 1, "", "_visit__all__"], [1, 4, 1, "", "_visit_fullname"], [1, 4, 1, "", "_visit_typecomment"], [1, 4, 1, "", "find_missing_imports"], [1, 4, 1, "", "generic_visit"], [1, 4, 1, "", "scan_for_import_issues"], [1, 4, 1, "", "visit"], [1, 4, 1, "", "visit_Assign"], [1, 4, 1, "", "visit_AsyncFunctionDef"], [1, 4, 1, "", "visit_Attribute"], [1, 4, 1, "", "visit_ClassDef"], [1, 4, 1, "", "visit_Delete"], [1, 4, 1, "", "visit_Dict"], [1, 4, 1, "", "visit_DictComp"], [1, 4, 1, "", "visit_ExceptHandler"], [1, 4, 1, "", "visit_FunctionDef"], [1, 4, 1, "", "visit_GeneratorExp"], [1, 4, 1, "", "visit_ImportFrom"], [1, 4, 1, "", "visit_Lambda"], [1, 4, 1, "", "visit_ListComp"], [1, 4, 1, "", "visit_Name"], [1, 4, 1, "", "visit_SetComp"], [1, 4, 1, "", "visit_alias"], [1, 4, 1, "", "visit_arg"], [1, 4, 1, "", "visit_arguments"], [1, 4, 1, "", "visit_comprehension"]], "pyflyby._autoimp._UseChecker": [[1, 3, 1, "", "used"]], "pyflyby._cmdline": [[2, 1, 1, "", "AbortActions"], [2, 1, 1, "", "Exit1"], [2, 2, 1, "", "Modifier"], [2, 6, 1, "", "_default_on_error"], [2, 6, 1, "", "_sigpipe_handler"], [2, 6, 1, "", "action_exit1"], [2, 6, 1, "", "action_external_command"], [2, 6, 1, "", "action_ifchanged"], [2, 6, 1, "", "action_print"], [2, 6, 1, "", "action_query"], [2, 6, 1, "", "action_replace"], [2, 6, 1, "", "filename_args"], [2, 6, 1, "", "hfmt"], [2, 6, 1, "", "maindoc"], [2, 6, 1, "", "parse_args"], [2, 6, 1, "", "print_version_and_exit"], [2, 6, 1, "", "process_actions"], [2, 6, 1, "", "symlink_callback"], [2, 6, 1, "", "symlink_error"], [2, 6, 1, "", "symlink_follow"], [2, 6, 1, "", "symlink_replace"], [2, 6, 1, "", "symlink_skip"], [2, 6, 1, "", "syntax"]], "pyflyby._cmdline.Modifier": [[2, 4, 1, "", "_tempfile"], [2, 3, 1, "", "input_content"], [2, 3, 1, "", "input_content_filename"], [2, 3, 1, "", "output_content"], [2, 3, 1, "", "output_content_filename"]], "pyflyby._comms": [[3, 6, 1, "", "_reformat_helper"], [3, 6, 1, "", "_register_target"], [3, 6, 1, "", "collect_code_with_imports_on_top"], [3, 6, 1, "", "comm_close_handler"], [3, 6, 1, "", "comm_open_handler"], [3, 6, 1, "", "extract_import_statements"], [3, 6, 1, "", "in_jupyter"], [3, 6, 1, "", "initialize_comms"], [3, 6, 1, "", "remove_comms"], [3, 6, 1, "", "run_tidy_imports"], [3, 6, 1, "", "send_comm_message"]], "pyflyby._dbg": [[4, 1, 1, "", "DebuggerAttachTimeoutError"], [4, 2, 1, "", "Pty"], [4, 6, 1, "", "_DebuggerCtx"], [4, 6, 1, "", "_DisplayHookCtx"], [4, 6, 1, "", "_ExceptHookCtx"], [4, 6, 1, "", "_FdCtx"], [4, 1, 1, "", "_NoTtyError"], [4, 6, 1, "", "_StdioCtx"], [4, 6, 1, "", "_abbrev_filename"], [4, 6, 1, "", "_debug_code"], [4, 6, 1, "", "_debug_exception"], [4, 6, 1, "", "_dev_null"], [4, 6, 1, "", "_dev_tty_fd"], [4, 6, 1, "", "_escape_for_gdb"], [4, 6, 1, "", "_find_py_commandline"], [4, 6, 1, "", "_get_caller_frame"], [4, 6, 1, "", "_override_excepthook"], [4, 6, 1, "", "_prompt_continue_waiting_for_debugger"], [4, 6, 1, "", "_remote_print_stack_to_file"], [4, 6, 1, "", "_reset_excepthook"], [4, 6, 1, "", "_send_email_with_attach_instructions"], [4, 6, 1, "", "_signal_handler_debugger"], [4, 6, 1, "", "_sigterm_handler"], [4, 6, 1, "", "_sleep_until_debugger_attaches"], [4, 6, 1, "", "enable_sigterm_handler"], [4, 6, 1, "", "get_executable"], [4, 6, 1, "", "inject"], [4, 6, 1, "", "kill_process"], [4, 6, 1, "", "process_exists"], [4, 6, 1, "", "setraw_but_sigint"], [4, 6, 1, "", "syscall_marker"], [4, 6, 1, "", "tty_is_usable"], [4, 6, 1, "", "wait_for_debugger_to_attach"]], "pyflyby._dbg.Pty": [[4, 4, 1, "", "communicate"]], "pyflyby._file": [[5, 2, 1, "", "FilePos"], [5, 2, 1, "", "FileText"], [5, 1, 1, "", "UnsafeFilenameError"], [5, 6, 1, "", "atomic_write_file"], [5, 6, 1, "", "expand_py_files_from_args"], [5, 6, 1, "", "read_file"], [5, 6, 1, "", "which"], [5, 6, 1, "", "write_file"]], "pyflyby._file.FilePos": [[5, 3, 1, "", "_ONE_ONE"], [5, 7, 1, "", "_data"], [5, 4, 1, "", "_from_lc"], [5, 4, 1, "", "_intint"]], "pyflyby._file.FileText": [[5, 4, 1, "", "_colno_to_index"], [5, 4, 1, "", "_from_lines"], [5, 4, 1, "", "_lineno_to_index"], [5, 4, 1, "", "alter"], [5, 4, 1, "", "concatenate"], [5, 3, 1, "", "endpos"], [5, 4, 1, "", "from_filename"], [5, 3, 1, "", "joined"], [5, 3, 1, "", "lines"]], "pyflyby._flags": [[6, 6, 1, "", "CompilerFlags"]], "pyflyby._format": [[7, 2, 1, "", "FormatParams"], [7, 6, 1, "", "fill"], [7, 6, 1, "", "pyfill"]], "pyflyby._format.FormatParams": [[7, 3, 1, "", "hanging_indent"], [7, 3, 1, "", "indent"], [7, 3, 1, "", "max_line_length"], [7, 3, 1, "", "use_black"], [7, 3, 1, "", "wrap_paren"]], "pyflyby._idents": [[8, 1, 1, "", "BadDottedIdentifierError"], [8, 2, 1, "", "DottedIdentifier"], [8, 6, 1, "", "brace_identifiers"], [8, 6, 1, "", "dotted_prefixes"], [8, 6, 1, "", "is_identifier"]], "pyflyby._idents.DottedIdentifier": [[8, 4, 1, "", "_from_name"], [8, 3, 1, "", "parent"], [8, 3, 1, "", "prefixes"], [8, 4, 1, "", "startswith"]], "pyflyby._importclns": [[9, 1, 1, "", "ConflictingImportsError"], [9, 2, 1, "", "ImportMap"], [9, 2, 1, "", "ImportSet"], [9, 1, 1, "", "NoSuchImportError"]], "pyflyby._importclns.ImportMap": [[9, 3, 1, "", "_EMPTY"], [9, 4, 1, "", "_from_map"], [9, 4, 1, "", "_merge"], [9, 4, 1, "", "items"], [9, 4, 1, "", "iteritems"], [9, 4, 1, "", "iterkeys"], [9, 4, 1, "", "keys"], [9, 4, 1, "", "values"], [9, 4, 1, "", "without_imports"]], "pyflyby._importclns.ImportSet": [[9, 3, 1, "", "_EMPTY"], [9, 3, 1, "", "_by_module_name"], [9, 4, 1, "", "_from_args"], [9, 4, 1, "", "_from_imports"], [9, 3, 1, "", "by_import_as"], [9, 3, 1, "", "conflicting_imports"], [9, 3, 1, "", "flags"], [9, 4, 1, "", "get_statements"], [9, 3, 1, "", "imports"], [9, 3, 1, "", "member_names"], [9, 4, 1, "", "pretty_print"], [9, 3, 1, "", "statements"], [9, 4, 1, "", "with_imports"], [9, 4, 1, "", "without_imports"]], "pyflyby._importdb": [[10, 6, 1, "", "_ancestors_on_same_partition"], [10, 6, 1, "", "_expand_tripledots"], [10, 6, 1, "", "_get_env_var"], [10, 6, 1, "", "_get_python_path"]], "pyflyby._imports2s": [[11, 1, 1, "", "ImportAlreadyExistsError"], [11, 6, 1, "", "ImportPathForRelativeImportsCtx"], [11, 1, 1, "", "LineNumberAmbiguousError"], [11, 1, 1, "", "LineNumberNotFoundError"], [11, 1, 1, "", "NoImportBlockError"], [11, 2, 1, "", "SourceToSourceFileImportsTransformation"], [11, 2, 1, "", "SourceToSourceImportBlockTransformation"], [11, 2, 1, "", "SourceToSourceTransformation"], [11, 2, 1, "", "SourceToSourceTransformationBase"], [11, 6, 1, "", "fix_unused_and_missing_imports"], [11, 6, 1, "", "sort_imports"]], "pyflyby._imports2s.SourceToSourceFileImportsTransformation": [[11, 4, 1, "", "add_import"], [11, 4, 1, "", "find_import_block_by_lineno"], [11, 4, 1, "", "insert_new_blocks_after_comments"], [11, 4, 1, "", "insert_new_import_block"], [11, 4, 1, "", "preprocess"], [11, 4, 1, "", "pretty_print"], [11, 4, 1, "", "remove_import"], [11, 4, 1, "", "select_import_block_by_closest_prefix_match"]], "pyflyby._imports2s.SourceToSourceImportBlockTransformation": [[11, 4, 1, "", "preprocess"], [11, 4, 1, "", "pretty_print"]], "pyflyby._imports2s.SourceToSourceTransformation": [[11, 4, 1, "", "preprocess"], [11, 4, 1, "", "pretty_print"]], "pyflyby._imports2s.SourceToSourceTransformationBase": [[11, 4, 1, "", "_from_source_code"], [11, 4, 1, "", "output"], [11, 4, 1, "", "preprocess"], [11, 4, 1, "", "pretty_print"]], "pyflyby._importstmt": [[12, 2, 1, "", "ImportFormatParams"], [12, 2, 1, "", "ImportSplit"], [12, 6, 1, "", "_validate_alias"]], "pyflyby._importstmt.ImportFormatParams": [[12, 3, 1, "", "align_future"], [12, 3, 1, "", "align_imports"], [12, 3, 1, "", "from_spaces"], [12, 3, 1, "", "separate_from_imports"]], "pyflyby._importstmt.ImportSplit": [[12, 4, 1, "", "_asdict"], [12, 3, 1, "", "_field_defaults"], [12, 3, 1, "", "_fields"], [12, 4, 1, "", "_make"], [12, 4, 1, "", "_replace"], [12, 3, 1, "", "import_as"], [12, 3, 1, "", "member_name"], [12, 3, 1, "", "module_name"]], "pyflyby._interactive": [[13, 2, 1, "", "AutoImporter"], [13, 6, 1, "", "InterceptPrintsDuringPromptCtx"], [13, 1, 1, "", "NoActiveIPythonAppError"], [13, 1, 1, "", "NoIPythonPackageError"], [13, 6, 1, "", "UpdateIPythonStdioCtx"], [13, 2, 1, "", "_DummyIPythonEmbeddedApp"], [13, 2, 1, "", "_EnableState"], [13, 2, 1, "", "_IPython010TerminalApplication"], [13, 6, 1, "", "_app_is_initialized"], [13, 6, 1, "", "_auto_import_in_pdb_frame"], [13, 6, 1, "", "_enable_pdb_hooks"], [13, 6, 1, "", "_enable_terminal_pdb_hooks"], [13, 6, 1, "", "_generate_enabler_code"], [13, 6, 1, "", "_get_IPdb_class"], [13, 6, 1, "", "_get_TerminalPdb_class"], [13, 6, 1, "", "_get_ipython_app"], [13, 6, 1, "", "_get_ipython_color_scheme"], [13, 6, 1, "", "_get_or_create_ipython_kernel_app"], [13, 6, 1, "", "_get_or_create_ipython_terminal_app"], [13, 6, 1, "", "_get_pdb_if_is_in_pdb"], [13, 6, 1, "", "_initialize_and_start_app_with_autoimporter"], [13, 6, 1, "", "_install_in_ipython_config_file_010"], [13, 6, 1, "", "_install_in_ipython_config_file_011"], [13, 6, 1, "", "_install_in_ipython_config_file_012"], [13, 6, 1, "", "_install_in_ipython_config_file_40"], [13, 6, 1, "", "_ipython_in_multiline"], [13, 6, 1, "", "_ipython_namespaces"], [13, 6, 1, "", "_list_members_for_completion"], [13, 6, 1, "", "_python_can_import_pyflyby"], [13, 6, 1, "", "_skip_frames"], [13, 6, 1, "", "complete_symbol"], [13, 6, 1, "", "get_global_namespaces"], [13, 6, 1, "", "get_ipython_terminal_app_with_autoimporter"], [13, 6, 1, "", "new_IPdb_instance"], [13, 6, 1, "", "print_verbose_tb"], [13, 6, 1, "", "run_ipython_line_magic"], [13, 6, 1, "", "start_ipython_kernel_with_autoimporter"], [13, 6, 1, "", "start_ipython_with_autoimporter"]], "pyflyby._interactive.AutoImporter": [[13, 4, 1, "", "_advise"], [13, 4, 1, "", "_construct"], [13, 4, 1, "", "_continue_enable"], [13, 4, 1, "", "_enable_ast_hook"], [13, 4, 1, "", "_enable_completer_hooks"], [13, 4, 1, "", "_enable_completion_hook"], [13, 4, 1, "", "_enable_debugger_hook"], [13, 4, 1, "", "_enable_initializer_hooks"], [13, 4, 1, "", "_enable_internal"], [13, 4, 1, "", "_enable_ipython_bugfixes"], [13, 4, 1, "", "_enable_ipython_bugfixes_LevelFormatter"], [13, 4, 1, "", "_enable_ipython_shell_bugfixes"], [13, 4, 1, "", "_enable_kernel_manager_hook"], [13, 4, 1, "", "_enable_ofind_hook"], [13, 4, 1, "", "_enable_prun_hook"], [13, 4, 1, "", "_enable_reset_hook"], [13, 4, 1, "", "_enable_run_hook"], [13, 4, 1, "", "_enable_shell_hooks"], [13, 4, 1, "", "_enable_start_kernel_hook"], [13, 4, 1, "", "_enable_time_hook"], [13, 4, 1, "", "_enable_timeit_hook"], [13, 4, 1, "", "_from_app"], [13, 4, 1, "", "_safe_call"], [13, 4, 1, "", "auto_import"], [13, 4, 1, "", "compile_with_autoimport"], [13, 4, 1, "", "complete_symbol"], [13, 4, 1, "", "disable"], [13, 4, 1, "", "enable"], [13, 4, 1, "", "reset_state_new_cell"]], "pyflyby._interactive._EnableState": [[13, 3, 1, "", "DISABLED"], [13, 3, 1, "", "DISABLING"], [13, 3, 1, "", "ENABLED"], [13, 3, 1, "", "ENABLING"]], "pyflyby._interactive._IPython010TerminalApplication": [[13, 3, 1, "", "_instance"], [13, 4, 1, "", "init_shell"], [13, 4, 1, "", "initialize"], [13, 4, 1, "", "instance"], [13, 4, 1, "", "start"]], "pyflyby._livepatch": [[14, 1, 1, "", "UnknownModuleError"], [14, 6, 1, "", "_format_age"], [14, 6, 1, "", "_get_definition_module"], [14, 6, 1, "", "_get_module_py_file"], [14, 6, 1, "", "_interpret_module"], [14, 6, 1, "", "_livepatch__class"], [14, 6, 1, "", "_livepatch__dict"], [14, 6, 1, "", "_livepatch__function"], [14, 6, 1, "", "_livepatch__method"], [14, 6, 1, "", "_livepatch__module"], [14, 6, 1, "", "_livepatch__object"], [14, 6, 1, "", "_livepatch__setattr"], [14, 6, 1, "", "_xreload_module"]], "pyflyby._log": [[15, 2, 1, "", "PyflybyLogger"], [15, 6, 1, "", "_PromptToolkitStdoutProxyRawCtx"], [15, 2, 1, "", "_PyflybyHandler"], [15, 6, 1, "", "_is_interactive"], [15, 6, 1, "", "_is_ipython"]], "pyflyby._log.PyflybyLogger": [[15, 4, 1, "", "HookCtx"], [15, 3, 1, "", "_LEVELS"], [15, 7, 1, "", "debug_enabled"], [15, 7, 1, "", "info_enabled"], [15, 4, 1, "", "set_level"]], "pyflyby._log._PyflybyHandler": [[15, 4, 1, "", "HookCtx"], [15, 3, 1, "", "_interactive_prefix"], [15, 3, 1, "", "_logged_anything_during_context"], [15, 3, 1, "", "_noninteractive_prefix"], [15, 3, 1, "", "_pre_log_function"], [15, 4, 1, "", "emit"]], "pyflyby._modules": [[16, 1, 1, "", "ErrorDuringImportError"], [16, 2, 1, "", "ModuleHandle"], [16, 6, 1, "", "_my_iter_modules"], [16, 6, 1, "", "pyc_to_py"]], "pyflyby._modules.ModuleHandle": [[16, 3, 1, "", "_cls_cache"], [16, 4, 1, "", "_from_filename"], [16, 4, 1, "", "_from_module"], [16, 4, 1, "", "_from_modulename"], [16, 4, 1, "", "_member_from_node"], [16, 3, 1, "", "ancestors"], [16, 3, 1, "", "block"], [16, 4, 1, "", "containing"], [16, 3, 1, "", "exists"], [16, 3, 1, "", "exports"], [16, 3, 1, "", "filename"], [16, 4, 1, "", "list"], [16, 3, 1, "", "module"], [16, 3, 1, "", "parent"], [16, 3, 1, "", "submodules"], [16, 3, 1, "", "text"]], "pyflyby._parse": [[17, 2, 1, "", "AstNodeContext"], [17, 2, 1, "", "IgnoreOptionsDocTestParser"], [17, 2, 1, "", "_DummyAst_Node"], [17, 6, 1, "", "_annotate_ast_context"], [17, 6, 1, "", "_annotate_ast_nodes"], [17, 6, 1, "", "_annotate_ast_startpos"], [17, 6, 1, "", "_ast_node_is_in_docstring_position"], [17, 6, 1, "", "_ast_str_literal_value"], [17, 6, 1, "", "_flags_to_try"], [17, 6, 1, "", "_flatten_ast_nodes"], [17, 6, 1, "", "_is_comment_or_blank"], [17, 6, 1, "", "_iter_child_nodes_in_order"], [17, 6, 1, "", "_iter_child_nodes_in_order_internal_1"], [17, 6, 1, "", "_parse_ast_nodes"], [17, 6, 1, "", "_split_code_lines"], [17, 6, 1, "", "_test_parse_string_literal"], [17, 6, 1, "", "_walk_ast_nodes_in_order"], [17, 6, 1, "", "infer_compile_mode"]], "pyflyby._parse.AstNodeContext": [[17, 4, 1, "", "_asdict"], [17, 3, 1, "", "_field_defaults"], [17, 3, 1, "", "_fields"], [17, 4, 1, "", "_make"], [17, 4, 1, "", "_replace"], [17, 3, 1, "", "field"], [17, 3, 1, "", "index"], [17, 3, 1, "", "parent"]], "pyflyby._parse.IgnoreOptionsDocTestParser": [[17, 4, 1, "", "_find_options"]], "pyflyby._py": [[18, 2, 1, "", "LoggedList"], [18, 1, 1, "", "NotAFunctionError"], [18, 1, 1, "", "ParseError"], [18, 6, 1, "", "SysArgvCtx"], [18, 1, 1, "", "UnimportableNameError"], [18, 2, 1, "", "UserExpr"], [18, 2, 1, "", "_Namespace"], [18, 1, 1, "", "_ParseInterruptedWantHelp"], [18, 1, 1, "", "_ParseInterruptedWantSource"], [18, 2, 1, "", "_PyMain"], [18, 6, 1, "", "_as_filename_if_seems_like_filename"], [18, 6, 1, "", "_build_function_usage_string"], [18, 6, 1, "", "_format_call"], [18, 6, 1, "", "_format_call_spec"], [18, 6, 1, "", "_get_argspec"], [18, 6, 1, "", "_get_help"], [18, 6, 1, "", "_handle_user_exception"], [18, 6, 1, "", "_has_python_shebang"], [18, 6, 1, "", "_interpret_arg_mode"], [18, 6, 1, "", "_interpret_output_mode"], [18, 6, 1, "", "_parse_auto_apply_args"], [18, 6, 1, "", "_requires_parens_as_function"], [18, 6, 1, "", "auto_apply"], [18, 6, 1, "", "print_result"], [18, 6, 1, "", "py_main"]], "pyflyby._py.LoggedList": [[18, 3, 1, "", "_ACCESSED"], [18, 4, 1, "", "append"], [18, 4, 1, "", "count"], [18, 4, 1, "", "extend"], [18, 4, 1, "", "index"], [18, 4, 1, "", "insert"], [18, 4, 1, "", "pop"], [18, 4, 1, "", "remove"], [18, 4, 1, "", "reverse"], [18, 4, 1, "", "sort"], [18, 7, 1, "", "unaccessed"]], "pyflyby._py.UserExpr": [[18, 4, 1, "", "_infer_and_evaluate"]], "pyflyby._py._Namespace": [[18, 4, 1, "", "auto_eval"], [18, 4, 1, "", "auto_import"]], "pyflyby._py._PyMain": [[18, 4, 1, "", "_enable_debug_tools"], [18, 4, 1, "", "_parse_global_opts"], [18, 4, 1, "", "_pre_exit"], [18, 4, 1, "", "_pre_exit_interactive_shell"], [18, 4, 1, "", "_pre_exit_matplotlib_show"], [18, 4, 1, "", "_run_action"], [18, 4, 1, "", "_seems_like_runnable_module"], [18, 4, 1, "", "apply"], [18, 4, 1, "", "create_ipython_app"], [18, 4, 1, "", "eval"], [18, 4, 1, "", "exec_stdin"], [18, 4, 1, "", "execfile"], [18, 4, 1, "", "heuristic_cmd"], [18, 4, 1, "", "heuristic_run_module"], [18, 4, 1, "", "print_help"], [18, 4, 1, "", "print_version"], [18, 4, 1, "", "run"], [18, 4, 1, "", "run_module"], [18, 4, 1, "", "start_ipython"]], "pyflyby._util": [[19, 6, 1, "", "AdviceCtx"], [19, 2, 1, "", "Aspect"], [19, 6, 1, "", "CwdCtx"], [19, 6, 1, "", "EnvVarCtx"], [19, 6, 1, "", "ExcludeImplicitCwdFromPathCtx"], [19, 2, 1, "", "FunctionWithGlobals"], [19, 6, 1, "", "ImportPathCtx"], [19, 6, 1, "", "NullCtx"], [19, 1, 1, "", "WrappedAttributeError"], [19, 2, 1, "", "_WritableDictProxy"], [19, 6, 1, "", "advise"], [19, 2, 1, "", "cached_attribute"], [19, 6, 1, "", "cmp"], [19, 6, 1, "", "indent"], [19, 6, 1, "", "longest_common_prefix"], [19, 6, 1, "", "memoize"], [19, 6, 1, "", "nested"], [19, 6, 1, "", "partition"], [19, 6, 1, "", "prefixes"], [19, 6, 1, "", "stable_unique"]], "pyflyby._util.Aspect": [[19, 3, 1, "", "_wrapper"], [19, 4, 1, "", "advise"], [19, 4, 1, "", "unadvise"]], "pyflyby._util._WritableDictProxy": [[19, 4, 1, "", "get"]]}, "objtypes": {"0": "py:module", "1": "py:exception", "2": "py:class", "3": "py:attribute", "4": "py:method", "5": "py:data", "6": "py:function", "7": "py:property"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "exception", "Python exception"], "2": ["py", "class", "Python class"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "method", "Python method"], "5": ["py", "data", "Python data"], "6": ["py", "function", "Python function"], "7": ["py", "property", "Python property"]}, "titleterms": {"pyflybi": [0, 20], "api": 0, "content": [0, 20], "_autoimp": 1, "modul": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "_cmdline": 2, "_comm": 3, "_dbg": 4, "_file": 5, "_flag": 6, "_format": 7, "_ident": 8, "_importcln": 9, "_importdb": 10, "_imports2": 11, "_importstmt": 12, "_interact": 13, "_livepatch": 14, "custom": 14, "behavior": 14, "_log": 15, "_modul": 16, "_pars": 17, "_py": 18, "invoc": 18, "summari": 18, "featur": 18, "option": 18, "_util": 19, "instal": 20, "quick": 20, "start": 20, "autoimport": 20, "ipython": 20, "py": 20, "command": 20, "line": 20, "multi": 20, "tool": 20, "tidi": 20, "import": 20, "librari": 20, "detail": 20, "automat": 20, "It": 20, "just": 20, "work": 20, "implement": 20, "compat": 20, "known": 20, "forget": 20, "mandatori": 20, "canonic": 20, "soapbox": 20, "avoid": 20, "star": 20, "per": 20, "project": 20, "configur": 20, "emac": 20, "support": 20, "authorship": 20, "licens": 20, "releas": 20, "tabl": 20, "indic": 20}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"pyflyby API": [[0, "pyflyby-api"]], "Contents:": [[0, null]], "_autoimp module": [[1, "module-pyflyby._autoimp"]], "_cmdline module": [[2, "module-pyflyby._cmdline"]], "_comms module": [[3, "module-pyflyby._comms"]], "_dbg module": [[4, "module-pyflyby._dbg"]], "_file module": [[5, "module-pyflyby._file"]], "_flags module": [[6, "module-pyflyby._flags"]], "_format module": [[7, "module-pyflyby._format"]], "_idents module": [[8, "module-pyflyby._idents"]], "_importclns module": [[9, "module-pyflyby._importclns"]], "_importdb module": [[10, "module-pyflyby._importdb"]], "_imports2s module": [[11, "module-pyflyby._imports2s"]], "_importstmt module": [[12, "module-pyflyby._importstmt"]], "_interactive module": [[13, "module-pyflyby._interactive"]], "_livepatch module": [[14, "module-pyflyby._livepatch"]], "Customizing behavior": [[14, "customizing-behavior"]], "_log module": [[15, "module-pyflyby._log"]], "_modules module": [[16, "module-pyflyby._modules"]], "_parse module": [[17, "module-pyflyby._parse"]], "_py module": [[18, "module-pyflyby._py"]], "Invocation summary": [[18, "invocation-summary"]], "Features": [[18, "features"]], "Options": [[18, "options"]], "_util module": [[19, "module-pyflyby._util"]], "Pyflyby": [[20, "pyflyby"]], "Installation": [[20, "installation"]], "Quick start: Autoimporter + IPython": [[20, "quick-start-autoimporter-ipython"]], "Quick start: py command-line multi-tool": [[20, "quick-start-py-command-line-multi-tool"]], "Quick start: tidy-imports": [[20, "quick-start-tidy-imports"]], "Quick start: import libraries": [[20, "quick-start-import-libraries"]], "Details: automatic imports": [[20, "details-automatic-imports"]], "It just works": [[20, "it-just-works"]], "Implementation details": [[20, "implementation-details"]], "Compatibility": [[20, "compatibility"]], "Details: import libraries": [[20, "details-import-libraries"]], "Known imports": [[20, "known-imports"]], "Forgetting imports": [[20, "forgetting-imports"]], "Mandatory imports": [[20, "mandatory-imports"]], "Canonicalize imports": [[20, "canonicalize-imports"]], "Soapbox: avoid \u201cstar\u201d imports": [[20, "soapbox-avoid-star-imports"]], "Per-Project configuration of tidy-imports": [[20, "per-project-configuration-of-tidy-imports"]], "Emacs support": [[20, "emacs-support"]], "Authorship": [[20, "authorship"]], "License": [[20, "license"]], "Release": [[20, "release"]], "Table of Contents": [[20, "table-of-contents"]], "Indices and tables": [[20, "indices-and-tables"]]}, "indexentries": {"loadsymbolerror": [[1, "pyflyby._autoimp.LoadSymbolError"]], "scopestack (class in pyflyby._autoimp)": [[1, "pyflyby._autoimp.ScopeStack"]], "_classscope (class in pyflyby._autoimp)": [[1, "pyflyby._autoimp._ClassScope"]], "_import_failed (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp._IMPORT_FAILED"]], "_missingimportfinder (class in pyflyby._autoimp)": [[1, "pyflyby._autoimp._MissingImportFinder"]], "_newscopectx() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._NewScopeCtx"]], "_upscopectx() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._UpScopeCtx"]], "_usechecker (class in pyflyby._autoimp)": [[1, "pyflyby._autoimp._UseChecker"]], "_abc_impl (pyflyby._autoimp.scopestack attribute)": [[1, "pyflyby._autoimp.ScopeStack._abc_impl"]], "_cached_has_star_import (pyflyby._autoimp.scopestack attribute)": [[1, "pyflyby._autoimp.ScopeStack._cached_has_star_import"]], "_check_load() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._check_load"]], "_find_earliest_backjump_label() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp._find_earliest_backjump_label"]], "_find_loads_without_stores_in_code() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp._find_loads_without_stores_in_code"]], "_find_missing_imports_in_ast() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp._find_missing_imports_in_ast"]], "_find_missing_imports_in_code() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp._find_missing_imports_in_code"]], "_finish_deferred_load_checks() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._finish_deferred_load_checks"]], "_get_scope_info() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._get_scope_info"]], "_op() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp._op"]], "_remove_from_missing_imports() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._remove_from_missing_imports"]], "_scan_node() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._scan_node"]], "_scan_unused_imports() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._scan_unused_imports"]], "_try_import() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp._try_import"]], "_visit_load() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_Load"]], "_visit_load_defered() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_Load_defered"]], "_visit_load_defered_global() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_Load_defered_global"]], "_visit_load_immediate() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_Load_immediate"]], "_visit_store() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_Store"]], "_visit_storeimport() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_StoreImport"]], "_visit__all__() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit__all__"]], "_visit_fullname() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_fullname"]], "_visit_typecomment() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder._visit_typecomment"]], "auto_import_symbol() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp.auto_import_symbol"]], "clear_failed_imports_cache() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp.clear_failed_imports_cache"]], "clone_top() (pyflyby._autoimp.scopestack method)": [[1, "pyflyby._autoimp.ScopeStack.clone_top"]], "find_missing_imports() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.find_missing_imports"]], "generic_visit() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.generic_visit"]], "get_known_import() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp.get_known_import"]], "has_star_import() (pyflyby._autoimp.scopestack method)": [[1, "pyflyby._autoimp.ScopeStack.has_star_import"]], "load_symbol() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp.load_symbol"]], "merged_to_two() (pyflyby._autoimp.scopestack method)": [[1, "pyflyby._autoimp.ScopeStack.merged_to_two"]], "module": [[1, "module-pyflyby._autoimp"], [2, "module-pyflyby._cmdline"], [3, "module-pyflyby._comms"], [4, "module-pyflyby._dbg"], [5, "module-pyflyby._file"], [6, "module-pyflyby._flags"], [7, "module-pyflyby._format"], [8, "module-pyflyby._idents"], [9, "module-pyflyby._importclns"], [10, "module-pyflyby._importdb"], [11, "module-pyflyby._imports2s"], [12, "module-pyflyby._importstmt"], [13, "module-pyflyby._interactive"], [14, "module-pyflyby._livepatch"], [15, "module-pyflyby._log"], [16, "module-pyflyby._modules"], [17, "module-pyflyby._parse"], [18, "module-pyflyby._py"], [19, "module-pyflyby._util"]], "pyflyby._autoimp": [[1, "module-pyflyby._autoimp"]], "scan_for_import_issues() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp.scan_for_import_issues"]], "scan_for_import_issues() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.scan_for_import_issues"]], "symbol_needs_import() (in module pyflyby._autoimp)": [[1, "pyflyby._autoimp.symbol_needs_import"]], "used (pyflyby._autoimp._usechecker attribute)": [[1, "pyflyby._autoimp._UseChecker.used"]], "visit() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit"]], "visit_assign() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_Assign"]], "visit_asyncfunctiondef() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_AsyncFunctionDef"]], "visit_attribute() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_Attribute"]], "visit_classdef() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_ClassDef"]], "visit_delete() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_Delete"]], "visit_dict() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_Dict"]], "visit_dictcomp() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_DictComp"]], "visit_excepthandler() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_ExceptHandler"]], "visit_functiondef() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_FunctionDef"]], "visit_generatorexp() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_GeneratorExp"]], "visit_importfrom() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_ImportFrom"]], "visit_lambda() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_Lambda"]], "visit_listcomp() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_ListComp"]], "visit_name() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_Name"]], "visit_setcomp() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_SetComp"]], "visit_alias() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_alias"]], "visit_arg() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_arg"]], "visit_arguments() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_arguments"]], "visit_comprehension() (pyflyby._autoimp._missingimportfinder method)": [[1, "pyflyby._autoimp._MissingImportFinder.visit_comprehension"]], "with_new_scope() (pyflyby._autoimp.scopestack method)": [[1, "pyflyby._autoimp.ScopeStack.with_new_scope"]], "abortactions": [[2, "pyflyby._cmdline.AbortActions"]], "exit1": [[2, "pyflyby._cmdline.Exit1"]], "modifier (class in pyflyby._cmdline)": [[2, "pyflyby._cmdline.Modifier"]], "_default_on_error() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline._default_on_error"]], "_sigpipe_handler() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline._sigpipe_handler"]], "_tempfile() (pyflyby._cmdline.modifier method)": [[2, "pyflyby._cmdline.Modifier._tempfile"]], "action_exit1() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.action_exit1"]], "action_external_command() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.action_external_command"]], "action_ifchanged() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.action_ifchanged"]], "action_print() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.action_print"]], "action_query() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.action_query"]], "action_replace() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.action_replace"]], "filename_args() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.filename_args"]], "hfmt() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.hfmt"]], "input_content (pyflyby._cmdline.modifier attribute)": [[2, "pyflyby._cmdline.Modifier.input_content"]], "input_content_filename (pyflyby._cmdline.modifier attribute)": [[2, "pyflyby._cmdline.Modifier.input_content_filename"]], "maindoc() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.maindoc"]], "output_content (pyflyby._cmdline.modifier attribute)": [[2, "pyflyby._cmdline.Modifier.output_content"]], "output_content_filename (pyflyby._cmdline.modifier attribute)": [[2, "pyflyby._cmdline.Modifier.output_content_filename"]], "parse_args() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.parse_args"]], "print_version_and_exit() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.print_version_and_exit"]], "process_actions() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.process_actions"]], "pyflyby._cmdline": [[2, "module-pyflyby._cmdline"]], "symlink_callback() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.symlink_callback"]], "symlink_error() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.symlink_error"]], "symlink_follow() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.symlink_follow"]], "symlink_replace() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.symlink_replace"]], "symlink_skip() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.symlink_skip"]], "syntax() (in module pyflyby._cmdline)": [[2, "pyflyby._cmdline.syntax"]], "_reformat_helper() (in module pyflyby._comms)": [[3, "pyflyby._comms._reformat_helper"]], "_register_target() (in module pyflyby._comms)": [[3, "pyflyby._comms._register_target"]], "collect_code_with_imports_on_top() (in module pyflyby._comms)": [[3, "pyflyby._comms.collect_code_with_imports_on_top"]], "comm_close_handler() (in module pyflyby._comms)": [[3, "pyflyby._comms.comm_close_handler"]], "comm_open_handler() (in module pyflyby._comms)": [[3, "pyflyby._comms.comm_open_handler"]], "extract_import_statements() (in module pyflyby._comms)": [[3, "pyflyby._comms.extract_import_statements"]], "in_jupyter() (in module pyflyby._comms)": [[3, "pyflyby._comms.in_jupyter"]], "initialize_comms() (in module pyflyby._comms)": [[3, "pyflyby._comms.initialize_comms"]], "pyflyby._comms": [[3, "module-pyflyby._comms"]], "remove_comms() (in module pyflyby._comms)": [[3, "pyflyby._comms.remove_comms"]], "run_tidy_imports() (in module pyflyby._comms)": [[3, "pyflyby._comms.run_tidy_imports"]], "send_comm_message() (in module pyflyby._comms)": [[3, "pyflyby._comms.send_comm_message"]], "debuggerattachtimeouterror": [[4, "pyflyby._dbg.DebuggerAttachTimeoutError"]], "pty (class in pyflyby._dbg)": [[4, "pyflyby._dbg.Pty"]], "_debuggerctx() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._DebuggerCtx"]], "_displayhookctx() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._DisplayHookCtx"]], "_excepthookctx() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._ExceptHookCtx"]], "_fdctx() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._FdCtx"]], "_nottyerror": [[4, "pyflyby._dbg._NoTtyError"]], "_stdioctx() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._StdioCtx"]], "_abbrev_filename() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._abbrev_filename"]], "_debug_code() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._debug_code"]], "_debug_exception() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._debug_exception"]], "_dev_null() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._dev_null"]], "_dev_tty_fd() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._dev_tty_fd"]], "_escape_for_gdb() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._escape_for_gdb"]], "_find_py_commandline() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._find_py_commandline"]], "_get_caller_frame() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._get_caller_frame"]], "_override_excepthook() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._override_excepthook"]], "_prompt_continue_waiting_for_debugger() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._prompt_continue_waiting_for_debugger"]], "_remote_print_stack_to_file() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._remote_print_stack_to_file"]], "_reset_excepthook() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._reset_excepthook"]], "_send_email_with_attach_instructions() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._send_email_with_attach_instructions"]], "_signal_handler_debugger() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._signal_handler_debugger"]], "_sigterm_handler() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._sigterm_handler"]], "_sleep_until_debugger_attaches() (in module pyflyby._dbg)": [[4, "pyflyby._dbg._sleep_until_debugger_attaches"]], "communicate() (pyflyby._dbg.pty method)": [[4, "pyflyby._dbg.Pty.communicate"]], "enable_sigterm_handler() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.enable_sigterm_handler"]], "get_executable() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.get_executable"]], "inject() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.inject"]], "kill_process() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.kill_process"]], "process_exists() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.process_exists"]], "pyflyby._dbg": [[4, "module-pyflyby._dbg"]], "setraw_but_sigint() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.setraw_but_sigint"]], "syscall_marker() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.syscall_marker"]], "tty_is_usable() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.tty_is_usable"]], "wait_for_debugger_to_attach() (in module pyflyby._dbg)": [[4, "pyflyby._dbg.wait_for_debugger_to_attach"]], "filepos (class in pyflyby._file)": [[5, "pyflyby._file.FilePos"]], "filetext (class in pyflyby._file)": [[5, "pyflyby._file.FileText"]], "unsafefilenameerror": [[5, "pyflyby._file.UnsafeFilenameError"]], "_one_one (pyflyby._file.filepos attribute)": [[5, "pyflyby._file.FilePos._ONE_ONE"]], "_colno_to_index() (pyflyby._file.filetext method)": [[5, "pyflyby._file.FileText._colno_to_index"]], "_data (pyflyby._file.filepos property)": [[5, "pyflyby._file.FilePos._data"]], "_from_lc() (pyflyby._file.filepos class method)": [[5, "pyflyby._file.FilePos._from_lc"]], "_from_lines() (pyflyby._file.filetext class method)": [[5, "pyflyby._file.FileText._from_lines"]], "_intint() (pyflyby._file.filepos static method)": [[5, "pyflyby._file.FilePos._intint"]], "_lineno_to_index() (pyflyby._file.filetext method)": [[5, "pyflyby._file.FileText._lineno_to_index"]], "alter() (pyflyby._file.filetext method)": [[5, "pyflyby._file.FileText.alter"]], "atomic_write_file() (in module pyflyby._file)": [[5, "pyflyby._file.atomic_write_file"]], "concatenate() (pyflyby._file.filetext class method)": [[5, "pyflyby._file.FileText.concatenate"]], "endpos (pyflyby._file.filetext attribute)": [[5, "pyflyby._file.FileText.endpos"]], "expand_py_files_from_args() (in module pyflyby._file)": [[5, "pyflyby._file.expand_py_files_from_args"]], "from_filename() (pyflyby._file.filetext class method)": [[5, "pyflyby._file.FileText.from_filename"]], "joined (pyflyby._file.filetext attribute)": [[5, "pyflyby._file.FileText.joined"]], "lines (pyflyby._file.filetext attribute)": [[5, "pyflyby._file.FileText.lines"]], "pyflyby._file": [[5, "module-pyflyby._file"]], "read_file() (in module pyflyby._file)": [[5, "pyflyby._file.read_file"]], "which() (in module pyflyby._file)": [[5, "pyflyby._file.which"]], "write_file() (in module pyflyby._file)": [[5, "pyflyby._file.write_file"]], "compilerflags() (in module pyflyby._flags)": [[6, "pyflyby._flags.CompilerFlags"]], "pyflyby._flags": [[6, "module-pyflyby._flags"]], "formatparams (class in pyflyby._format)": [[7, "pyflyby._format.FormatParams"]], "fill() (in module pyflyby._format)": [[7, "pyflyby._format.fill"]], "hanging_indent (pyflyby._format.formatparams attribute)": [[7, "pyflyby._format.FormatParams.hanging_indent"]], "indent (pyflyby._format.formatparams attribute)": [[7, "pyflyby._format.FormatParams.indent"]], "max_line_length (pyflyby._format.formatparams attribute)": [[7, "pyflyby._format.FormatParams.max_line_length"]], "pyfill() (in module pyflyby._format)": [[7, "pyflyby._format.pyfill"]], "pyflyby._format": [[7, "module-pyflyby._format"]], "use_black (pyflyby._format.formatparams attribute)": [[7, "pyflyby._format.FormatParams.use_black"]], "wrap_paren (pyflyby._format.formatparams attribute)": [[7, "pyflyby._format.FormatParams.wrap_paren"]], "baddottedidentifiererror": [[8, "pyflyby._idents.BadDottedIdentifierError"]], "dottedidentifier (class in pyflyby._idents)": [[8, "pyflyby._idents.DottedIdentifier"]], "_from_name() (pyflyby._idents.dottedidentifier class method)": [[8, "pyflyby._idents.DottedIdentifier._from_name"]], "brace_identifiers() (in module pyflyby._idents)": [[8, "pyflyby._idents.brace_identifiers"]], "dotted_prefixes() (in module pyflyby._idents)": [[8, "pyflyby._idents.dotted_prefixes"]], "is_identifier() (in module pyflyby._idents)": [[8, "pyflyby._idents.is_identifier"]], "parent (pyflyby._idents.dottedidentifier attribute)": [[8, "pyflyby._idents.DottedIdentifier.parent"]], "prefixes (pyflyby._idents.dottedidentifier attribute)": [[8, "pyflyby._idents.DottedIdentifier.prefixes"]], "pyflyby._idents": [[8, "module-pyflyby._idents"]], "startswith() (pyflyby._idents.dottedidentifier method)": [[8, "pyflyby._idents.DottedIdentifier.startswith"]], "conflictingimportserror": [[9, "pyflyby._importclns.ConflictingImportsError"]], "importmap (class in pyflyby._importclns)": [[9, "pyflyby._importclns.ImportMap"]], "importset (class in pyflyby._importclns)": [[9, "pyflyby._importclns.ImportSet"]], "nosuchimporterror": [[9, "pyflyby._importclns.NoSuchImportError"]], "_empty (pyflyby._importclns.importmap attribute)": [[9, "pyflyby._importclns.ImportMap._EMPTY"]], "_empty (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet._EMPTY"]], "_by_module_name (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet._by_module_name"]], "_from_args() (pyflyby._importclns.importset class method)": [[9, "pyflyby._importclns.ImportSet._from_args"]], "_from_imports() (pyflyby._importclns.importset class method)": [[9, "pyflyby._importclns.ImportSet._from_imports"]], "_from_map() (pyflyby._importclns.importmap class method)": [[9, "pyflyby._importclns.ImportMap._from_map"]], "_merge() (pyflyby._importclns.importmap class method)": [[9, "pyflyby._importclns.ImportMap._merge"]], "by_import_as (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet.by_import_as"]], "conflicting_imports (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet.conflicting_imports"]], "flags (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet.flags"]], "get_statements() (pyflyby._importclns.importset method)": [[9, "pyflyby._importclns.ImportSet.get_statements"]], "imports (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet.imports"]], "items() (pyflyby._importclns.importmap method)": [[9, "pyflyby._importclns.ImportMap.items"]], "iteritems() (pyflyby._importclns.importmap method)": [[9, "pyflyby._importclns.ImportMap.iteritems"]], "iterkeys() (pyflyby._importclns.importmap method)": [[9, "pyflyby._importclns.ImportMap.iterkeys"]], "keys() (pyflyby._importclns.importmap method)": [[9, "pyflyby._importclns.ImportMap.keys"]], "member_names (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet.member_names"]], "pretty_print() (pyflyby._importclns.importset method)": [[9, "pyflyby._importclns.ImportSet.pretty_print"]], "pyflyby._importclns": [[9, "module-pyflyby._importclns"]], "statements (pyflyby._importclns.importset attribute)": [[9, "pyflyby._importclns.ImportSet.statements"]], "values() (pyflyby._importclns.importmap method)": [[9, "pyflyby._importclns.ImportMap.values"]], "with_imports() (pyflyby._importclns.importset method)": [[9, "pyflyby._importclns.ImportSet.with_imports"]], "without_imports() (pyflyby._importclns.importmap method)": [[9, "pyflyby._importclns.ImportMap.without_imports"]], "without_imports() (pyflyby._importclns.importset method)": [[9, "pyflyby._importclns.ImportSet.without_imports"]], "_ancestors_on_same_partition() (in module pyflyby._importdb)": [[10, "pyflyby._importdb._ancestors_on_same_partition"]], "_expand_tripledots() (in module pyflyby._importdb)": [[10, "pyflyby._importdb._expand_tripledots"]], "_get_env_var() (in module pyflyby._importdb)": [[10, "pyflyby._importdb._get_env_var"]], "_get_python_path() (in module pyflyby._importdb)": [[10, "pyflyby._importdb._get_python_path"]], "pyflyby._importdb": [[10, "module-pyflyby._importdb"]], "importalreadyexistserror": [[11, "pyflyby._imports2s.ImportAlreadyExistsError"]], "importpathforrelativeimportsctx() (in module pyflyby._imports2s)": [[11, "pyflyby._imports2s.ImportPathForRelativeImportsCtx"]], "linenumberambiguouserror": [[11, "pyflyby._imports2s.LineNumberAmbiguousError"]], "linenumbernotfounderror": [[11, "pyflyby._imports2s.LineNumberNotFoundError"]], "noimportblockerror": [[11, "pyflyby._imports2s.NoImportBlockError"]], "sourcetosourcefileimportstransformation (class in pyflyby._imports2s)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation"]], "sourcetosourceimportblocktransformation (class in pyflyby._imports2s)": [[11, "pyflyby._imports2s.SourceToSourceImportBlockTransformation"]], "sourcetosourcetransformation (class in pyflyby._imports2s)": [[11, "pyflyby._imports2s.SourceToSourceTransformation"]], "sourcetosourcetransformationbase (class in pyflyby._imports2s)": [[11, "pyflyby._imports2s.SourceToSourceTransformationBase"]], "_from_source_code() (pyflyby._imports2s.sourcetosourcetransformationbase class method)": [[11, "pyflyby._imports2s.SourceToSourceTransformationBase._from_source_code"]], "add_import() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.add_import"]], "find_import_block_by_lineno() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.find_import_block_by_lineno"]], "fix_unused_and_missing_imports() (in module pyflyby._imports2s)": [[11, "pyflyby._imports2s.fix_unused_and_missing_imports"]], "insert_new_blocks_after_comments() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.insert_new_blocks_after_comments"]], "insert_new_import_block() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.insert_new_import_block"]], "output() (pyflyby._imports2s.sourcetosourcetransformationbase method)": [[11, "pyflyby._imports2s.SourceToSourceTransformationBase.output"]], "preprocess() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.preprocess"]], "preprocess() (pyflyby._imports2s.sourcetosourceimportblocktransformation method)": [[11, "pyflyby._imports2s.SourceToSourceImportBlockTransformation.preprocess"]], "preprocess() (pyflyby._imports2s.sourcetosourcetransformation method)": [[11, "pyflyby._imports2s.SourceToSourceTransformation.preprocess"]], "preprocess() (pyflyby._imports2s.sourcetosourcetransformationbase method)": [[11, "pyflyby._imports2s.SourceToSourceTransformationBase.preprocess"]], "pretty_print() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.pretty_print"]], "pretty_print() (pyflyby._imports2s.sourcetosourceimportblocktransformation method)": [[11, "pyflyby._imports2s.SourceToSourceImportBlockTransformation.pretty_print"]], "pretty_print() (pyflyby._imports2s.sourcetosourcetransformation method)": [[11, "pyflyby._imports2s.SourceToSourceTransformation.pretty_print"]], "pretty_print() (pyflyby._imports2s.sourcetosourcetransformationbase method)": [[11, "pyflyby._imports2s.SourceToSourceTransformationBase.pretty_print"]], "pyflyby._imports2s": [[11, "module-pyflyby._imports2s"]], "remove_import() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.remove_import"]], "select_import_block_by_closest_prefix_match() (pyflyby._imports2s.sourcetosourcefileimportstransformation method)": [[11, "pyflyby._imports2s.SourceToSourceFileImportsTransformation.select_import_block_by_closest_prefix_match"]], "sort_imports() (in module pyflyby._imports2s)": [[11, "pyflyby._imports2s.sort_imports"]], "importformatparams (class in pyflyby._importstmt)": [[12, "pyflyby._importstmt.ImportFormatParams"]], "importsplit (class in pyflyby._importstmt)": [[12, "pyflyby._importstmt.ImportSplit"]], "_asdict() (pyflyby._importstmt.importsplit method)": [[12, "pyflyby._importstmt.ImportSplit._asdict"]], "_field_defaults (pyflyby._importstmt.importsplit attribute)": [[12, "pyflyby._importstmt.ImportSplit._field_defaults"]], "_fields (pyflyby._importstmt.importsplit attribute)": [[12, "pyflyby._importstmt.ImportSplit._fields"]], "_make() (pyflyby._importstmt.importsplit class method)": [[12, "pyflyby._importstmt.ImportSplit._make"]], "_replace() (pyflyby._importstmt.importsplit method)": [[12, "pyflyby._importstmt.ImportSplit._replace"]], "_validate_alias() (in module pyflyby._importstmt)": [[12, "pyflyby._importstmt._validate_alias"]], "align_future (pyflyby._importstmt.importformatparams attribute)": [[12, "pyflyby._importstmt.ImportFormatParams.align_future"]], "align_imports (pyflyby._importstmt.importformatparams attribute)": [[12, "pyflyby._importstmt.ImportFormatParams.align_imports"]], "from_spaces (pyflyby._importstmt.importformatparams attribute)": [[12, "pyflyby._importstmt.ImportFormatParams.from_spaces"]], "import_as (pyflyby._importstmt.importsplit attribute)": [[12, "pyflyby._importstmt.ImportSplit.import_as"]], "member_name (pyflyby._importstmt.importsplit attribute)": [[12, "pyflyby._importstmt.ImportSplit.member_name"]], "module_name (pyflyby._importstmt.importsplit attribute)": [[12, "pyflyby._importstmt.ImportSplit.module_name"]], "pyflyby._importstmt": [[12, "module-pyflyby._importstmt"]], "separate_from_imports (pyflyby._importstmt.importformatparams attribute)": [[12, "pyflyby._importstmt.ImportFormatParams.separate_from_imports"]], "autoimporter (class in pyflyby._interactive)": [[13, "pyflyby._interactive.AutoImporter"]], "disabled (pyflyby._interactive._enablestate attribute)": [[13, "pyflyby._interactive._EnableState.DISABLED"]], "disabling (pyflyby._interactive._enablestate attribute)": [[13, "pyflyby._interactive._EnableState.DISABLING"]], "enabled (pyflyby._interactive._enablestate attribute)": [[13, "pyflyby._interactive._EnableState.ENABLED"]], "enabling (pyflyby._interactive._enablestate attribute)": [[13, "pyflyby._interactive._EnableState.ENABLING"]], "interceptprintsduringpromptctx() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.InterceptPrintsDuringPromptCtx"]], "noactiveipythonapperror": [[13, "pyflyby._interactive.NoActiveIPythonAppError"]], "noipythonpackageerror": [[13, "pyflyby._interactive.NoIPythonPackageError"]], "updateipythonstdioctx() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.UpdateIPythonStdioCtx"]], "_dummyipythonembeddedapp (class in pyflyby._interactive)": [[13, "pyflyby._interactive._DummyIPythonEmbeddedApp"]], "_enablestate (class in pyflyby._interactive)": [[13, "pyflyby._interactive._EnableState"]], "_ipython010terminalapplication (class in pyflyby._interactive)": [[13, "pyflyby._interactive._IPython010TerminalApplication"]], "_advise() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._advise"]], "_app_is_initialized() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._app_is_initialized"]], "_auto_import_in_pdb_frame() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._auto_import_in_pdb_frame"]], "_construct() (pyflyby._interactive.autoimporter class method)": [[13, "pyflyby._interactive.AutoImporter._construct"]], "_continue_enable() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._continue_enable"]], "_enable_ast_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_ast_hook"]], "_enable_completer_hooks() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_completer_hooks"]], "_enable_completion_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_completion_hook"]], "_enable_debugger_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_debugger_hook"]], "_enable_initializer_hooks() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_initializer_hooks"]], "_enable_internal() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_internal"]], "_enable_ipython_bugfixes() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_ipython_bugfixes"]], "_enable_ipython_bugfixes_levelformatter() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_ipython_bugfixes_LevelFormatter"]], "_enable_ipython_shell_bugfixes() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_ipython_shell_bugfixes"]], "_enable_kernel_manager_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_kernel_manager_hook"]], "_enable_ofind_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_ofind_hook"]], "_enable_pdb_hooks() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._enable_pdb_hooks"]], "_enable_prun_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_prun_hook"]], "_enable_reset_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_reset_hook"]], "_enable_run_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_run_hook"]], "_enable_shell_hooks() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_shell_hooks"]], "_enable_start_kernel_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_start_kernel_hook"]], "_enable_terminal_pdb_hooks() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._enable_terminal_pdb_hooks"]], "_enable_time_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_time_hook"]], "_enable_timeit_hook() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._enable_timeit_hook"]], "_from_app() (pyflyby._interactive.autoimporter class method)": [[13, "pyflyby._interactive.AutoImporter._from_app"]], "_generate_enabler_code() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._generate_enabler_code"]], "_get_ipdb_class() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._get_IPdb_class"]], "_get_terminalpdb_class() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._get_TerminalPdb_class"]], "_get_ipython_app() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._get_ipython_app"]], "_get_ipython_color_scheme() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._get_ipython_color_scheme"]], "_get_or_create_ipython_kernel_app() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._get_or_create_ipython_kernel_app"]], "_get_or_create_ipython_terminal_app() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._get_or_create_ipython_terminal_app"]], "_get_pdb_if_is_in_pdb() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._get_pdb_if_is_in_pdb"]], "_initialize_and_start_app_with_autoimporter() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._initialize_and_start_app_with_autoimporter"]], "_install_in_ipython_config_file_010() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._install_in_ipython_config_file_010"]], "_install_in_ipython_config_file_011() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._install_in_ipython_config_file_011"]], "_install_in_ipython_config_file_012() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._install_in_ipython_config_file_012"]], "_install_in_ipython_config_file_40() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._install_in_ipython_config_file_40"]], "_instance (pyflyby._interactive._ipython010terminalapplication attribute)": [[13, "pyflyby._interactive._IPython010TerminalApplication._instance"]], "_ipython_in_multiline() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._ipython_in_multiline"]], "_ipython_namespaces() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._ipython_namespaces"]], "_list_members_for_completion() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._list_members_for_completion"]], "_python_can_import_pyflyby() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._python_can_import_pyflyby"]], "_safe_call() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter._safe_call"]], "_skip_frames() (in module pyflyby._interactive)": [[13, "pyflyby._interactive._skip_frames"]], "auto_import() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter.auto_import"]], "compile_with_autoimport() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter.compile_with_autoimport"]], "complete_symbol() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.complete_symbol"]], "complete_symbol() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter.complete_symbol"]], "disable() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter.disable"]], "enable() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter.enable"]], "get_global_namespaces() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.get_global_namespaces"]], "get_ipython_terminal_app_with_autoimporter() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.get_ipython_terminal_app_with_autoimporter"]], "init_shell() (pyflyby._interactive._ipython010terminalapplication method)": [[13, "pyflyby._interactive._IPython010TerminalApplication.init_shell"]], "initialize() (pyflyby._interactive._ipython010terminalapplication method)": [[13, "pyflyby._interactive._IPython010TerminalApplication.initialize"]], "instance() (pyflyby._interactive._ipython010terminalapplication class method)": [[13, "pyflyby._interactive._IPython010TerminalApplication.instance"]], "new_ipdb_instance() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.new_IPdb_instance"]], "print_verbose_tb() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.print_verbose_tb"]], "pyflyby._interactive": [[13, "module-pyflyby._interactive"]], "reset_state_new_cell() (pyflyby._interactive.autoimporter method)": [[13, "pyflyby._interactive.AutoImporter.reset_state_new_cell"]], "run_ipython_line_magic() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.run_ipython_line_magic"]], "start() (pyflyby._interactive._ipython010terminalapplication method)": [[13, "pyflyby._interactive._IPython010TerminalApplication.start"]], "start_ipython_kernel_with_autoimporter() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.start_ipython_kernel_with_autoimporter"]], "start_ipython_with_autoimporter() (in module pyflyby._interactive)": [[13, "pyflyby._interactive.start_ipython_with_autoimporter"]], "unknownmoduleerror": [[14, "pyflyby._livepatch.UnknownModuleError"]], "_format_age() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._format_age"]], "_get_definition_module() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._get_definition_module"]], "_get_module_py_file() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._get_module_py_file"]], "_interpret_module() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._interpret_module"]], "_livepatch__class() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._livepatch__class"]], "_livepatch__dict() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._livepatch__dict"]], "_livepatch__function() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._livepatch__function"]], "_livepatch__method() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._livepatch__method"]], "_livepatch__module() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._livepatch__module"]], "_livepatch__object() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._livepatch__object"]], "_livepatch__setattr() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._livepatch__setattr"]], "_xreload_module() (in module pyflyby._livepatch)": [[14, "pyflyby._livepatch._xreload_module"]], "pyflyby._livepatch": [[14, "module-pyflyby._livepatch"]], "hookctx() (pyflyby._log.pyflybylogger method)": [[15, "pyflyby._log.PyflybyLogger.HookCtx"]], "hookctx() (pyflyby._log._pyflybyhandler method)": [[15, "pyflyby._log._PyflybyHandler.HookCtx"]], "pyflybylogger (class in pyflyby._log)": [[15, "pyflyby._log.PyflybyLogger"]], "_levels (pyflyby._log.pyflybylogger attribute)": [[15, "pyflyby._log.PyflybyLogger._LEVELS"]], "_prompttoolkitstdoutproxyrawctx() (in module pyflyby._log)": [[15, "pyflyby._log._PromptToolkitStdoutProxyRawCtx"]], "_pyflybyhandler (class in pyflyby._log)": [[15, "pyflyby._log._PyflybyHandler"]], "_interactive_prefix (pyflyby._log._pyflybyhandler attribute)": [[15, "pyflyby._log._PyflybyHandler._interactive_prefix"]], "_is_interactive() (in module pyflyby._log)": [[15, "pyflyby._log._is_interactive"]], "_is_ipython() (in module pyflyby._log)": [[15, "pyflyby._log._is_ipython"]], "_logged_anything_during_context (pyflyby._log._pyflybyhandler attribute)": [[15, "pyflyby._log._PyflybyHandler._logged_anything_during_context"]], "_noninteractive_prefix (pyflyby._log._pyflybyhandler attribute)": [[15, "pyflyby._log._PyflybyHandler._noninteractive_prefix"]], "_pre_log_function (pyflyby._log._pyflybyhandler attribute)": [[15, "pyflyby._log._PyflybyHandler._pre_log_function"]], "debug_enabled (pyflyby._log.pyflybylogger property)": [[15, "pyflyby._log.PyflybyLogger.debug_enabled"]], "emit() (pyflyby._log._pyflybyhandler method)": [[15, "pyflyby._log._PyflybyHandler.emit"]], "info_enabled (pyflyby._log.pyflybylogger property)": [[15, "pyflyby._log.PyflybyLogger.info_enabled"]], "pyflyby._log": [[15, "module-pyflyby._log"]], "set_level() (pyflyby._log.pyflybylogger method)": [[15, "pyflyby._log.PyflybyLogger.set_level"]], "errorduringimporterror": [[16, "pyflyby._modules.ErrorDuringImportError"]], "modulehandle (class in pyflyby._modules)": [[16, "pyflyby._modules.ModuleHandle"]], "_cls_cache (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle._cls_cache"]], "_from_filename() (pyflyby._modules.modulehandle class method)": [[16, "pyflyby._modules.ModuleHandle._from_filename"]], "_from_module() (pyflyby._modules.modulehandle class method)": [[16, "pyflyby._modules.ModuleHandle._from_module"]], "_from_modulename() (pyflyby._modules.modulehandle class method)": [[16, "pyflyby._modules.ModuleHandle._from_modulename"]], "_member_from_node() (pyflyby._modules.modulehandle static method)": [[16, "pyflyby._modules.ModuleHandle._member_from_node"]], "_my_iter_modules() (in module pyflyby._modules)": [[16, "pyflyby._modules._my_iter_modules"]], "ancestors (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.ancestors"]], "block (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.block"]], "containing() (pyflyby._modules.modulehandle class method)": [[16, "pyflyby._modules.ModuleHandle.containing"]], "exists (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.exists"]], "exports (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.exports"]], "filename (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.filename"]], "list() (pyflyby._modules.modulehandle static method)": [[16, "pyflyby._modules.ModuleHandle.list"]], "module (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.module"]], "parent (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.parent"]], "pyc_to_py() (in module pyflyby._modules)": [[16, "pyflyby._modules.pyc_to_py"]], "pyflyby._modules": [[16, "module-pyflyby._modules"]], "submodules (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.submodules"]], "text (pyflyby._modules.modulehandle attribute)": [[16, "pyflyby._modules.ModuleHandle.text"]], "astnodecontext (class in pyflyby._parse)": [[17, "pyflyby._parse.AstNodeContext"]], "ignoreoptionsdoctestparser (class in pyflyby._parse)": [[17, "pyflyby._parse.IgnoreOptionsDocTestParser"]], "_dummyast_node (class in pyflyby._parse)": [[17, "pyflyby._parse._DummyAst_Node"]], "_annotate_ast_context() (in module pyflyby._parse)": [[17, "pyflyby._parse._annotate_ast_context"]], "_annotate_ast_nodes() (in module pyflyby._parse)": [[17, "pyflyby._parse._annotate_ast_nodes"]], "_annotate_ast_startpos() (in module pyflyby._parse)": [[17, "pyflyby._parse._annotate_ast_startpos"]], "_asdict() (pyflyby._parse.astnodecontext method)": [[17, "pyflyby._parse.AstNodeContext._asdict"]], "_ast_node_is_in_docstring_position() (in module pyflyby._parse)": [[17, "pyflyby._parse._ast_node_is_in_docstring_position"]], "_ast_str_literal_value() (in module pyflyby._parse)": [[17, "pyflyby._parse._ast_str_literal_value"]], "_field_defaults (pyflyby._parse.astnodecontext attribute)": [[17, "pyflyby._parse.AstNodeContext._field_defaults"]], "_fields (pyflyby._parse.astnodecontext attribute)": [[17, "pyflyby._parse.AstNodeContext._fields"]], "_find_options() (pyflyby._parse.ignoreoptionsdoctestparser method)": [[17, "pyflyby._parse.IgnoreOptionsDocTestParser._find_options"]], "_flags_to_try() (in module pyflyby._parse)": [[17, "pyflyby._parse._flags_to_try"]], "_flatten_ast_nodes() (in module pyflyby._parse)": [[17, "pyflyby._parse._flatten_ast_nodes"]], "_is_comment_or_blank() (in module pyflyby._parse)": [[17, "pyflyby._parse._is_comment_or_blank"]], "_iter_child_nodes_in_order() (in module pyflyby._parse)": [[17, "pyflyby._parse._iter_child_nodes_in_order"]], "_iter_child_nodes_in_order_internal_1() (in module pyflyby._parse)": [[17, "pyflyby._parse._iter_child_nodes_in_order_internal_1"]], "_make() (pyflyby._parse.astnodecontext class method)": [[17, "pyflyby._parse.AstNodeContext._make"]], "_parse_ast_nodes() (in module pyflyby._parse)": [[17, "pyflyby._parse._parse_ast_nodes"]], "_replace() (pyflyby._parse.astnodecontext method)": [[17, "pyflyby._parse.AstNodeContext._replace"]], "_split_code_lines() (in module pyflyby._parse)": [[17, "pyflyby._parse._split_code_lines"]], "_test_parse_string_literal() (in module pyflyby._parse)": [[17, "pyflyby._parse._test_parse_string_literal"]], "_walk_ast_nodes_in_order() (in module pyflyby._parse)": [[17, "pyflyby._parse._walk_ast_nodes_in_order"]], "field (pyflyby._parse.astnodecontext attribute)": [[17, "pyflyby._parse.AstNodeContext.field"]], "index (pyflyby._parse.astnodecontext attribute)": [[17, "pyflyby._parse.AstNodeContext.index"]], "infer_compile_mode() (in module pyflyby._parse)": [[17, "pyflyby._parse.infer_compile_mode"]], "parent (pyflyby._parse.astnodecontext attribute)": [[17, "pyflyby._parse.AstNodeContext.parent"]], "pyflyby._parse": [[17, "module-pyflyby._parse"]], "loggedlist (class in pyflyby._py)": [[18, "pyflyby._py.LoggedList"]], "notafunctionerror": [[18, "pyflyby._py.NotAFunctionError"]], "parseerror": [[18, "pyflyby._py.ParseError"]], "sysargvctx() (in module pyflyby._py)": [[18, "pyflyby._py.SysArgvCtx"]], "unimportablenameerror": [[18, "pyflyby._py.UnimportableNameError"]], "userexpr (class in pyflyby._py)": [[18, "pyflyby._py.UserExpr"]], "_accessed (pyflyby._py.loggedlist attribute)": [[18, "pyflyby._py.LoggedList._ACCESSED"]], "_namespace (class in pyflyby._py)": [[18, "pyflyby._py._Namespace"]], "_parseinterruptedwanthelp": [[18, "pyflyby._py._ParseInterruptedWantHelp"]], "_parseinterruptedwantsource": [[18, "pyflyby._py._ParseInterruptedWantSource"]], "_pymain (class in pyflyby._py)": [[18, "pyflyby._py._PyMain"]], "_as_filename_if_seems_like_filename() (in module pyflyby._py)": [[18, "pyflyby._py._as_filename_if_seems_like_filename"]], "_build_function_usage_string() (in module pyflyby._py)": [[18, "pyflyby._py._build_function_usage_string"]], "_enable_debug_tools() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain._enable_debug_tools"]], "_format_call() (in module pyflyby._py)": [[18, "pyflyby._py._format_call"]], "_format_call_spec() (in module pyflyby._py)": [[18, "pyflyby._py._format_call_spec"]], "_get_argspec() (in module pyflyby._py)": [[18, "pyflyby._py._get_argspec"]], "_get_help() (in module pyflyby._py)": [[18, "pyflyby._py._get_help"]], "_handle_user_exception() (in module pyflyby._py)": [[18, "pyflyby._py._handle_user_exception"]], "_has_python_shebang() (in module pyflyby._py)": [[18, "pyflyby._py._has_python_shebang"]], "_infer_and_evaluate() (pyflyby._py.userexpr method)": [[18, "pyflyby._py.UserExpr._infer_and_evaluate"]], "_interpret_arg_mode() (in module pyflyby._py)": [[18, "pyflyby._py._interpret_arg_mode"]], "_interpret_output_mode() (in module pyflyby._py)": [[18, "pyflyby._py._interpret_output_mode"]], "_parse_auto_apply_args() (in module pyflyby._py)": [[18, "pyflyby._py._parse_auto_apply_args"]], "_parse_global_opts() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain._parse_global_opts"]], "_pre_exit() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain._pre_exit"]], "_pre_exit_interactive_shell() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain._pre_exit_interactive_shell"]], "_pre_exit_matplotlib_show() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain._pre_exit_matplotlib_show"]], "_requires_parens_as_function() (in module pyflyby._py)": [[18, "pyflyby._py._requires_parens_as_function"]], "_run_action() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain._run_action"]], "_seems_like_runnable_module() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain._seems_like_runnable_module"]], "append() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.append"]], "apply() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.apply"]], "auto_apply() (in module pyflyby._py)": [[18, "pyflyby._py.auto_apply"]], "auto_eval() (pyflyby._py._namespace method)": [[18, "pyflyby._py._Namespace.auto_eval"]], "auto_import() (pyflyby._py._namespace method)": [[18, "pyflyby._py._Namespace.auto_import"]], "count() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.count"]], "create_ipython_app() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.create_ipython_app"]], "eval() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.eval"]], "exec_stdin() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.exec_stdin"]], "execfile() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.execfile"]], "extend() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.extend"]], "heuristic_cmd() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.heuristic_cmd"]], "heuristic_run_module() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.heuristic_run_module"]], "index() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.index"]], "insert() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.insert"]], "pop() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.pop"]], "print_help() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.print_help"]], "print_result() (in module pyflyby._py)": [[18, "pyflyby._py.print_result"]], "print_version() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.print_version"]], "py_main() (in module pyflyby._py)": [[18, "pyflyby._py.py_main"]], "pyflyby._py": [[18, "module-pyflyby._py"]], "remove() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.remove"]], "reverse() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.reverse"]], "run() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.run"]], "run_module() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.run_module"]], "sort() (pyflyby._py.loggedlist method)": [[18, "pyflyby._py.LoggedList.sort"]], "start_ipython() (pyflyby._py._pymain method)": [[18, "pyflyby._py._PyMain.start_ipython"]], "unaccessed (pyflyby._py.loggedlist property)": [[18, "pyflyby._py.LoggedList.unaccessed"]], "advicectx() (in module pyflyby._util)": [[19, "pyflyby._util.AdviceCtx"]], "aspect (class in pyflyby._util)": [[19, "pyflyby._util.Aspect"]], "cwdctx() (in module pyflyby._util)": [[19, "pyflyby._util.CwdCtx"]], "envvarctx() (in module pyflyby._util)": [[19, "pyflyby._util.EnvVarCtx"]], "excludeimplicitcwdfrompathctx() (in module pyflyby._util)": [[19, "pyflyby._util.ExcludeImplicitCwdFromPathCtx"]], "functionwithglobals (class in pyflyby._util)": [[19, "pyflyby._util.FunctionWithGlobals"]], "importpathctx() (in module pyflyby._util)": [[19, "pyflyby._util.ImportPathCtx"]], "nullctx() (in module pyflyby._util)": [[19, "pyflyby._util.NullCtx"]], "wrappedattributeerror": [[19, "pyflyby._util.WrappedAttributeError"]], "_writabledictproxy (class in pyflyby._util)": [[19, "pyflyby._util._WritableDictProxy"]], "_wrapper (pyflyby._util.aspect attribute)": [[19, "pyflyby._util.Aspect._wrapper"]], "advise() (in module pyflyby._util)": [[19, "pyflyby._util.advise"]], "advise() (pyflyby._util.aspect method)": [[19, "pyflyby._util.Aspect.advise"]], "cached_attribute (class in pyflyby._util)": [[19, "pyflyby._util.cached_attribute"]], "cmp() (in module pyflyby._util)": [[19, "pyflyby._util.cmp"]], "get() (pyflyby._util._writabledictproxy method)": [[19, "pyflyby._util._WritableDictProxy.get"]], "indent() (in module pyflyby._util)": [[19, "pyflyby._util.indent"]], "longest_common_prefix() (in module pyflyby._util)": [[19, "pyflyby._util.longest_common_prefix"]], "memoize() (in module pyflyby._util)": [[19, "pyflyby._util.memoize"]], "nested() (in module pyflyby._util)": [[19, "pyflyby._util.nested"]], "partition() (in module pyflyby._util)": [[19, "pyflyby._util.partition"]], "prefixes() (in module pyflyby._util)": [[19, "pyflyby._util.prefixes"]], "pyflyby._util": [[19, "module-pyflyby._util"]], "stable_unique() (in module pyflyby._util)": [[19, "pyflyby._util.stable_unique"]], "unadvise() (pyflyby._util.aspect method)": [[19, "pyflyby._util.Aspect.unadvise"]]}}) \ No newline at end of file