<spanid="cpl-query-base-default-lambda"></span><h2>cpl_query.base.default_lambda<aclass="headerlink"href="#module-cpl_query.base.default_lambda"title="Permalink to this heading"></a></h2>
<spanclass="sig-prename descclassname"><spanclass="pre">cpl_query.base.default_lambda.</span></span><spanclass="sig-name descname"><spanclass="pre">default_lambda</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">x</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">object</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.base.default_lambda.default_lambda"title="Permalink to this definition"></a></dt>
<spanid="cpl-query-base-ordered-queryable"></span><h2>cpl_query.base.ordered_queryable<aclass="headerlink"href="#module-cpl_query.base.ordered_queryable"title="Permalink to this heading"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">cpl_query.base.ordered_queryable.</span></span><spanclass="sig-name descname"><spanclass="pre">OrderedQueryable</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">type</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">_values</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="cpl_query.iterable.html#cpl_query.iterable.iterable.Iterable"title="cpl_query.iterable.iterable.Iterable"><spanclass="pre">Iterable</span></a><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.base.ordered_queryable.OrderedQueryable"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">then_by</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"title="cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"><spanclass="pre">OrderedQueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.ordered_queryable.OrderedQueryable.then_by"title="Permalink to this definition"></a></dt>
<dd><p>Sorts OrderedList in ascending order by function</p>
<spanclass="sig-name descname"><spanclass="pre">then_by_descending</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"title="cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"><spanclass="pre">OrderedQueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.ordered_queryable.OrderedQueryable.then_by_descending"title="Permalink to this definition"></a></dt>
<dd><p>Sorts OrderedList in descending order by function</p>
<spanid="cpl-query-base-ordered-queryable-abc"></span><h2>cpl_query.base.ordered_queryable_abc<aclass="headerlink"href="#module-cpl_query.base.ordered_queryable_abc"title="Permalink to this heading"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">cpl_query.base.ordered_queryable_abc.</span></span><spanclass="sig-name descname"><spanclass="pre">OrderedQueryableABC</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">type</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">_values</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Iterable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">abstract</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">then_by</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"title="cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"><spanclass="pre">OrderedQueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.ordered_queryable_abc.OrderedQueryableABC.then_by"title="Permalink to this definition"></a></dt>
<dd><p>Sorts OrderedList in ascending order by function</p>
<emclass="property"><spanclass="pre">abstract</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">then_by_descending</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"title="cpl_query.base.ordered_queryable_abc.OrderedQueryableABC"><spanclass="pre">OrderedQueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.ordered_queryable_abc.OrderedQueryableABC.then_by_descending"title="Permalink to this definition"></a></dt>
<dd><p>Sorts OrderedList in descending order by function</p>
<div><p>list of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">cpl_query.iterable.ordered_iterable_abc.OrderedIterableABC</span></code></p>
</div></blockquote>
</dd></dl>
</dd></dl>
</section>
<sectionid="module-cpl_query.base.queryable_abc">
<spanid="cpl-query-base-queryable-abc"></span><h2>cpl_query.base.queryable_abc<aclass="headerlink"href="#module-cpl_query.base.queryable_abc"title="Permalink to this heading"></a></h2>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">cpl_query.base.queryable_abc.</span></span><spanclass="sig-name descname"><spanclass="pre">QueryableABC</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">type</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">values</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">list</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">all</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">bool</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.all"title="Permalink to this definition"></a></dt>
<dd><p>Checks if every element of list equals result found by function</p>
<spanclass="sig-name descname"><spanclass="pre">any</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">bool</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.any"title="Permalink to this definition"></a></dt>
<dd><p>Checks if list contains result found by function</p>
<spanclass="sig-name descname"><spanclass="pre">average</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.average"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">contains</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_value</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">object</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">bool</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.contains"title="Permalink to this definition"></a></dt>
<dd><p>Checks if list contains value given by function</p>
<spanclass="sig-name descname"><spanclass="pre">count</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">int</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.count"title="Permalink to this definition"></a></dt>
<dd><p>Returns length of list or count of found elements</p>
<spanclass="sig-name descname"><spanclass="pre">distinct</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.distinct"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">element_at</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">any</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.element_at"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">element_at_or_default</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">any</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.element_at_or_default"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">first</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">any</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.first"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">first_or_default</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">any</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.first_or_default"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">for_each</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.for_each"title="Permalink to this definition"></a></dt>
<dd><p>Runs given function for each element of list</p>
<blockquote>
<div><dlclass="simple">
<dt>func: :class: <cite>Callable</cite></dt><dd><p>function to call</p>
<spanclass="sig-name descname"><spanclass="pre">group_by</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.group_by"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">last</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">any</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.last"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">last_or_default</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">any</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.last_or_default"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">max</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.max"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">median</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.median"title="Permalink to this definition"></a></dt>
<dd><p>Return the median value of data elements</p>
<spanclass="sig-name descname"><spanclass="pre">min</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.min"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">order_by</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.order_by"title="Permalink to this definition"></a></dt>
<dd><p>Sorts elements by function in ascending order</p>
<spanclass="sig-name descname"><spanclass="pre">order_by_descending</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.order_by_descending"title="Permalink to this definition"></a></dt>
<dd><p>Sorts elements by function in descending order</p>
<spanclass="sig-name descname"><spanclass="pre">reverse</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.reverse"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">select</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.select"title="Permalink to this definition"></a></dt>
<dd><p>Formats each element of list to a given format</p>
<spanclass="sig-name descname"><spanclass="pre">select_many</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.select_many"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">single</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">any</span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.single"title="Permalink to this definition"></a></dt>
<dd><p>Returns one single element of list</p>
<blockquote>
<div><p>Found value: any</p>
</div></blockquote>
<blockquote>
<div><p>ArgumentNoneException: when argument is None
Exception: when argument is None or found more than one element</p>
<spanclass="sig-name descname"><spanclass="pre">single_or_default</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">any</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.single_or_default"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">skip</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.skip"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">skip_last</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.skip_last"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">sum</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.sum"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">take</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.take"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">take_last</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.take_last"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">where</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal"href="#cpl_query.base.queryable_abc.QueryableABC"title="cpl_query.base.queryable_abc.QueryableABC"><spanclass="pre">QueryableABC</span></a></span></span><aclass="headerlink"href="#cpl_query.base.queryable_abc.QueryableABC.where"title="Permalink to this definition"></a></dt>