|
20 | 20 |
|
21 | 21 |
|
22 | 22 | <link rel="icon" href="../assets/images/favicon.png"> |
23 | | - <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.16"> |
| 23 | + <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.17"> |
24 | 24 |
|
25 | 25 |
|
26 | 26 |
|
|
71 | 71 |
|
72 | 72 |
|
73 | 73 |
|
74 | | - <body dir="ltr" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo"> |
| 74 | + <body dir="ltr" data-md-color-scheme="default" data-md-color-primary="blue" data-md-color-accent="indigo"> |
75 | 75 |
|
76 | 76 |
|
77 | 77 | <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off"> |
|
129 | 129 |
|
130 | 130 |
|
131 | 131 |
|
132 | | - <input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_0"> |
| 132 | + <input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="blue" data-md-color-accent="indigo" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_0"> |
133 | 133 |
|
134 | 134 | <label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_1" hidden> |
135 | 135 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0-7 2.39 3.42C13.65 5.15 12.84 5 12 5s-1.65.15-2.39.42zM3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29zm.02 10 1.76-3.77a7.131 7.131 0 0 0 2.38 4.14zM20.65 7l-1.77 3.79a7.02 7.02 0 0 0-2.38-4.15zm-.01 10-4.14.36c.59-.51 1.12-1.14 1.54-1.86.42-.73.69-1.5.83-2.29zM12 22l-2.41-3.44c.74.27 1.55.44 2.41.44.82 0 1.63-.17 2.37-.44z"/></svg> |
|
139 | 139 |
|
140 | 140 |
|
141 | 141 |
|
142 | | - <input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="blue" data-md-color-accent="indigo" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_1"> |
| 142 | + <input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="blue" data-md-color-accent="blue" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_1"> |
143 | 143 |
|
144 | 144 | <label class="md-header__button md-icon" title="Switch to light mode" for="__palette_0" hidden> |
145 | 145 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m17.75 4.09-2.53 1.94.91 3.06-2.63-1.81-2.63 1.81.91-3.06-2.53-1.94L12.44 4l1.06-3 1.06 3zm3.5 6.91-1.64 1.25.59 1.98-1.7-1.17-1.7 1.17.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95zm-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14.4-.4.82-.76 1.27-1.08.75-.53 1.93.36 1.85 1.19-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82-2.81 3.14-2.7 7.96.31 10.98 3.02 3.01 7.84 3.12 10.98.31"/></svg> |
|
505 | 505 | </span> |
506 | 506 | </a> |
507 | 507 |
|
508 | | -</li> |
509 | | - |
510 | | - <li class="md-nav__item"> |
511 | | - <a href="#subclassing-lexer" class="md-nav__link"> |
512 | | - <span class="md-ellipsis"> |
513 | | - Subclassing Lexer |
514 | | - </span> |
515 | | - </a> |
516 | | - |
517 | | -</li> |
518 | | - |
519 | | - <li class="md-nav__item"> |
520 | | - <a href="#subclassing-parser" class="md-nav__link"> |
521 | | - <span class="md-ellipsis"> |
522 | | - Subclassing Parser |
523 | | - </span> |
524 | | - </a> |
525 | | - |
526 | | -</li> |
527 | | - |
528 | | - <li class="md-nav__item"> |
529 | | - <a href="#get-item" class="md-nav__link"> |
530 | | - <span class="md-ellipsis"> |
531 | | - Get Item |
532 | | - </span> |
533 | | - </a> |
534 | | - |
535 | | -</li> |
536 | | - |
537 | | - <li class="md-nav__item"> |
538 | | - <a href="#truthiness-and-existence" class="md-nav__link"> |
539 | | - <span class="md-ellipsis"> |
540 | | - Truthiness and Existence |
541 | | - </span> |
542 | | - </a> |
543 | | - |
544 | | -</li> |
545 | | - |
546 | | - <li class="md-nav__item"> |
547 | | - <a href="#filter-infix-expressions" class="md-nav__link"> |
548 | | - <span class="md-ellipsis"> |
549 | | - Filter Infix Expressions |
550 | | - </span> |
551 | | - </a> |
552 | | - |
553 | 508 | </li> |
554 | 509 |
|
555 | 510 | </ul> |
|
810 | 765 |
|
811 | 766 |
|
812 | 767 |
|
| 768 | + <li class="md-nav__item"> |
| 769 | + <a href="../convenience/" class="md-nav__link"> |
| 770 | + |
| 771 | + |
| 772 | + |
| 773 | + <span class="md-ellipsis"> |
| 774 | + Package Level Functions |
| 775 | + |
| 776 | + </span> |
| 777 | + |
| 778 | + |
| 779 | + </a> |
| 780 | + </li> |
| 781 | + |
| 782 | + |
| 783 | + |
| 784 | + |
| 785 | + |
| 786 | + |
| 787 | + |
| 788 | + |
| 789 | + |
| 790 | + |
813 | 791 | <li class="md-nav__item"> |
814 | 792 | <a href="../api/" class="md-nav__link"> |
815 | 793 |
|
|
1010 | 988 | </span> |
1011 | 989 | </a> |
1012 | 990 |
|
1013 | | -</li> |
1014 | | - |
1015 | | - <li class="md-nav__item"> |
1016 | | - <a href="#subclassing-lexer" class="md-nav__link"> |
1017 | | - <span class="md-ellipsis"> |
1018 | | - Subclassing Lexer |
1019 | | - </span> |
1020 | | - </a> |
1021 | | - |
1022 | | -</li> |
1023 | | - |
1024 | | - <li class="md-nav__item"> |
1025 | | - <a href="#subclassing-parser" class="md-nav__link"> |
1026 | | - <span class="md-ellipsis"> |
1027 | | - Subclassing Parser |
1028 | | - </span> |
1029 | | - </a> |
1030 | | - |
1031 | | -</li> |
1032 | | - |
1033 | | - <li class="md-nav__item"> |
1034 | | - <a href="#get-item" class="md-nav__link"> |
1035 | | - <span class="md-ellipsis"> |
1036 | | - Get Item |
1037 | | - </span> |
1038 | | - </a> |
1039 | | - |
1040 | | -</li> |
1041 | | - |
1042 | | - <li class="md-nav__item"> |
1043 | | - <a href="#truthiness-and-existence" class="md-nav__link"> |
1044 | | - <span class="md-ellipsis"> |
1045 | | - Truthiness and Existence |
1046 | | - </span> |
1047 | | - </a> |
1048 | | - |
1049 | | -</li> |
1050 | | - |
1051 | | - <li class="md-nav__item"> |
1052 | | - <a href="#filter-infix-expressions" class="md-nav__link"> |
1053 | | - <span class="md-ellipsis"> |
1054 | | - Filter Infix Expressions |
1055 | | - </span> |
1056 | | - </a> |
1057 | | - |
1058 | 991 | </li> |
1059 | 992 |
|
1060 | 993 | </ul> |
|
1080 | 1013 |
|
1081 | 1014 | <h1 id="advanced-usage">Advanced Usage</h1> |
1082 | 1015 | <h2 id="filter-variables">Filter Variables</h2> |
1083 | | -<p>Arbitrary variables can be made available to <a href="../syntax/#filters-expression">filter expressions</a> using the <em>filter_context</em> argument to <a href="../quickstart/#findallpath-data"><code>findall()</code></a> and <a href="../quickstart/#finditerpath-data"><code>finditer()</code></a>. <em>filter_context</em> should be a <a href="https://docs.python.org/3/library/typing.html#typing.Mapping">mapping</a> of strings to JSON-like objects, like lists, dictionaries, strings and integers.</p> |
| 1016 | +<p>Arbitrary variables can be made available to <a href="../syntax/#filter-selector">filter selectors</a> using the <code>filter_context</code> argument to <a href="../quickstart/#findallpath-data"><code>findall()</code></a> and <a href="../quickstart/#finditerpath-data"><code>finditer()</code></a>. <code>filter_context</code> should be a <a href="https://docs.python.org/3/library/typing.html#typing.Mapping">mapping</a> of strings to JSON-like objects, like lists, dictionaries, strings and integers.</p> |
1084 | 1017 | <p>Filter context variables are selected using a filter query starting with the <em>filter context identifier</em>, which defaults to <code>_</code> and has usage similar to <code>$</code> and <code>@</code>.</p> |
1085 | 1018 | <div class="language-python highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="kn">import</span><span class="w"> </span><span class="nn">jsonpath</span> |
1086 | 1019 | </span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a> |
@@ -1303,16 +1236,6 @@ <h3 id="array-index-limits">Array Index Limits</h3> |
1303 | 1236 | </span><span id="__span-10-8"><a id="__codelineno-10-8" name="__codelineno-10-8" href="#__codelineno-10-8"></a><span class="n">query</span> <span class="o">=</span> <span class="n">env</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s2">"$.users[999]"</span><span class="p">)</span> |
1304 | 1237 | </span><span id="__span-10-9"><a id="__codelineno-10-9" name="__codelineno-10-9" href="#__codelineno-10-9"></a><span class="c1"># jsonpath.exceptions.JSONPathIndexError: index out of range, line 1, column 8</span> |
1305 | 1238 | </span></code></pre></div> |
1306 | | -<h3 id="subclassing-lexer">Subclassing Lexer</h3> |
1307 | | -<p>TODO:</p> |
1308 | | -<h3 id="subclassing-parser">Subclassing Parser</h3> |
1309 | | -<p>TODO:</p> |
1310 | | -<h3 id="get-item">Get Item</h3> |
1311 | | -<p>TODO:</p> |
1312 | | -<h3 id="truthiness-and-existence">Truthiness and Existence</h3> |
1313 | | -<p>TODO:</p> |
1314 | | -<h3 id="filter-infix-expressions">Filter Infix Expressions</h3> |
1315 | | -<p>TODO:</p> |
1316 | 1239 |
|
1317 | 1240 |
|
1318 | 1241 |
|
@@ -1361,10 +1284,10 @@ <h3 id="filter-infix-expressions">Filter Infix Expressions</h3> |
1361 | 1284 |
|
1362 | 1285 |
|
1363 | 1286 |
|
1364 | | - <script id="__config" type="application/json">{"base": "..", "features": ["navigation.sections", "content.code.copy"], "search": "../assets/javascripts/workers/search.d50fe291.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script> |
| 1287 | + <script id="__config" type="application/json">{"base": "..", "features": ["navigation.sections", "content.code.copy"], "search": "../assets/javascripts/workers/search.973d3a69.min.js", "tags": null, "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": null}</script> |
1365 | 1288 |
|
1366 | 1289 |
|
1367 | | - <script src="../assets/javascripts/bundle.50899def.min.js"></script> |
| 1290 | + <script src="../assets/javascripts/bundle.92b07e13.min.js"></script> |
1368 | 1291 |
|
1369 | 1292 |
|
1370 | 1293 | </body> |
|
0 commit comments