<spanid="cpl-query-base-default-lambda-module"></span><h2>cpl_query.base.default_lambda module<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-module"></span><h2>cpl_query.base.ordered_queryable module<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-module"></span><h2>cpl_query.base.ordered_queryable_abc module<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>
<spanid="cpl-query-base-queryable-abc-module"></span><h2>cpl_query.base.queryable_abc module<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">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><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"><span class="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>
<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">object</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">object</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>
<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">split</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.split"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>
<spanid="cpl-query-base-sequence-module"></span><h2>cpl_query.base.sequence module<aclass="headerlink"href="#module-cpl_query.base.sequence"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.sequence.</span></span><spanclass="sig-name descname"><spanclass="pre">Sequence</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><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.base.sequence.Sequence"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">copy</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.sequence.Sequence"title="cpl_query.base.sequence.Sequence"><spanclass="pre">Sequence</span></a></span></span><aclass="headerlink"href="#cpl_query.base.sequence.Sequence.copy"title="Permalink to this definition"></a></dt>
<emclass="property"><spanclass="pre">classmethod</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">empty</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.sequence.Sequence"title="cpl_query.base.sequence.Sequence"><spanclass="pre">Sequence</span></a></span></span><aclass="headerlink"href="#cpl_query.base.sequence.Sequence.empty"title="Permalink to this definition"></a></dt>
<dd><p>Returns an empty sequence</p>
<dlclass="simple">
<dt>Returns:</dt><dd><p>Sequence object that contains no elements</p>
<spanclass="sig-name descname"><spanclass="pre">index_of</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_object</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">int</span></span></span><aclass="headerlink"href="#cpl_query.base.sequence.Sequence.index_of"title="Permalink to this definition"></a></dt>
<dd><p>Returns the index of given element</p>
<dlclass="simple">
<dt>Returns:</dt><dd><p>Index of object</p>
</dd>
<dt>Raises:</dt><dd><p>IndexError if object not in sequence</p>
<emclass="property"><spanclass="pre">classmethod</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">range</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">start</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">length</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.sequence.Sequence"title="cpl_query.base.sequence.Sequence"><spanclass="pre">Sequence</span></a></span></span><aclass="headerlink"href="#cpl_query.base.sequence.Sequence.range"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">to_list</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">list</span></span></span><aclass="headerlink"href="#cpl_query.base.sequence.Sequence.to_list"title="Permalink to this definition"></a></dt>
<dd><p>Converts :class: <cite>cpl_query.base.sequence_abc.SequenceABC</cite> to :class: <cite>list</cite></p>
<emclass="property"><spanclass="pre">property</span><spanclass="w"></span></em><spanclass="sig-name descname"><spanclass="pre">type</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">type</span></em><aclass="headerlink"href="#cpl_query.base.sequence.Sequence.type"title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<sectionid="module-cpl_query.base">
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-cpl_query.base"title="Permalink to this heading"></a></h2>
<sectionid="cpl-query-cpl-queries">
<h3>cpl-query CPL Queries<aclass="headerlink"href="#cpl-query-cpl-queries"title="Permalink to this heading"></a></h3>
<emclass="property"><spanclass="pre">class</span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">cpl_query.base.</span></span><spanclass="sig-name descname"><spanclass="pre">VersionInfo</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">major</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">minor</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">micro</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.base.VersionInfo"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">major</span></span><aclass="headerlink"href="#cpl_query.base.VersionInfo.major"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">micro</span></span><aclass="headerlink"href="#cpl_query.base.VersionInfo.micro"title="Permalink to this definition"></a></dt>
<spanclass="sig-name descname"><spanclass="pre">minor</span></span><aclass="headerlink"href="#cpl_query.base.VersionInfo.minor"title="Permalink to this definition"></a></dt>