<spanid="pylorax-api-bisect-module"></span><h2>pylorax.api.bisect module<aclass="headerlink"href="#module-pylorax.api.bisect"title="Permalink to this headline">¶</a></h2>
<li><p><strong>x</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#object"title="(in Python v3.8)"><em>object</em></a>) -- item to insert into the list</p></li>
<spanid="pylorax-api-checkparams-module"></span><h2>pylorax.api.checkparams module<aclass="headerlink"href="#module-pylorax.api.checkparams"title="Permalink to this headline">¶</a></h2>
<codeclass="sig-prename descclassname">pylorax.api.checkparams.</code><codeclass="sig-name descname">checkparams</code><spanclass="sig-paren">(</span><emclass="sig-param">tuples</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/checkparams.html#checkparams"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.checkparams.checkparams"title="Permalink to this definition">¶</a></dt>
<spanid="pylorax-api-cmdline-module"></span><h2>pylorax.api.cmdline module<aclass="headerlink"href="#module-pylorax.api.cmdline"title="Permalink to this headline">¶</a></h2>
<codeclass="sig-prename descclassname">pylorax.api.cmdline.</code><codeclass="sig-name descname">lorax_composer_parser</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/cmdline.html#lorax_composer_parser"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.cmdline.lorax_composer_parser"title="Permalink to this definition">¶</a></dt>
<spanid="pylorax-api-compose-module"></span><h2>pylorax.api.compose module<aclass="headerlink"href="#module-pylorax.api.compose"title="Permalink to this headline">¶</a></h2>
<p>Setup for composing an image</p>
<divclass="section"id="adding-new-output-types">
<h3>Adding New Output Types<aclass="headerlink"href="#adding-new-output-types"title="Permalink to this headline">¶</a></h3>
<p>The new output type must add a kickstart template to ./share/composer/ where the
name of the kickstart (without the trailing .ks) matches the entry in compose_args.</p>
<p>The kickstart should not have any url or repo entries, these will be added at build
time. The %packages section should be the last thing, and while it can contain mandatory
packages required by the output type, it should not have the trailing %end because the
package NEVRAs will be appended to it at build time.</p>
<p>compose_args should have a name matching the kickstart, and it should set the novirt_install
parameters needed to generate the desired output. Other types should be set to False.</p>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">add_customizations</code><spanclass="sig-paren">(</span><emclass="sig-param">f</em>, <emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#add_customizations"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.add_customizations"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">bootloader_append</code><spanclass="sig-paren">(</span><emclass="sig-param">line</em>, <emclass="sig-param">kernel_append</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#bootloader_append"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.bootloader_append"title="Permalink to this definition">¶</a></dt>
<li><p><strong>line</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The bootloader ... line</p></li>
<li><p><strong>kernel_append</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The arguments to append to the --append section</p></li>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">compose_args</code><spanclass="sig-paren">(</span><emclass="sig-param">compose_type</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#compose_args"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.compose_args"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>compose_type</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The type of compose to create, from <cite>compose_types()</cite></p>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">compose_types</code><spanclass="sig-paren">(</span><emclass="sig-param">share_dir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#compose_types"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.compose_types"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">customize_ks_template</code><spanclass="sig-paren">(</span><emclass="sig-param">ks_template</em>, <emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#customize_ks_template"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.customize_ks_template"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">firewall_cmd</code><spanclass="sig-paren">(</span><emclass="sig-param">line</em>, <emclass="sig-param">settings</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#firewall_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.firewall_cmd"title="Permalink to this definition">¶</a></dt>
<li><p><strong>line</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The firewall ... line</p></li>
<li><p><strong>settings</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A dict with the list of services and ports to enable and disable</p></li>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_default_services</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_default_services"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_default_services"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_extra_pkgs</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">share_dir</em>, <emclass="sig-param">compose_type</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_extra_pkgs"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_extra_pkgs"title="Permalink to this definition">¶</a></dt>
<li><p><strong>share_dir</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Path to the top level share directory</p></li>
<li><p><strong>compose_type</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The type of output to create from the recipe</p></li>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_firewall_settings</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_firewall_settings"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_firewall_settings"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_kernel_append</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_kernel_append"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_kernel_append"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_keyboard_layout</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_keyboard_layout"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_keyboard_layout"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_languages</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_languages"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_languages"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_services</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_services"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_services"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">get_timezone_settings</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#get_timezone_settings"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.get_timezone_settings"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">keyboard_cmd</code><spanclass="sig-paren">(</span><emclass="sig-param">line</em>, <emclass="sig-param">layout</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#keyboard_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.keyboard_cmd"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">lang_cmd</code><spanclass="sig-paren">(</span><emclass="sig-param">line</em>, <emclass="sig-param">languages</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#lang_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.lang_cmd"title="Permalink to this definition">¶</a></dt>
<li><p><strong>line</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The lang ... line</p></li>
<li><p><strong>settings</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#list"title="(in Python v3.8)"><em>list</em></a>) -- The list of languages</p></li>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">move_compose_results</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">results_dir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#move_compose_results"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.move_compose_results"title="Permalink to this definition">¶</a></dt>
<li><p><strong>results_dir</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Directory to put the results into</p></li>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">repo_to_ks</code><spanclass="sig-paren">(</span><emclass="sig-param">r</em>, <emclass="sig-param">url='url'</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#repo_to_ks"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.repo_to_ks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">services_cmd</code><spanclass="sig-paren">(</span><emclass="sig-param">line</em>, <emclass="sig-param">settings</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#services_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.services_cmd"title="Permalink to this definition">¶</a></dt>
<li><p><strong>line</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The services ... line</p></li>
<li><p><strong>settings</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A dict with the list of services to enable and disable</p></li>
<li><p><strong>recipe</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The recipe to build</p></li>
<li><p><strong>compose_type</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The type of output to create from the recipe</p></li>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">test_templates</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">share_dir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#test_templates"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.test_templates"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">timezone_cmd</code><spanclass="sig-paren">(</span><emclass="sig-param">line</em>, <emclass="sig-param">settings</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#timezone_cmd"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.timezone_cmd"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">write_ks_group</code><spanclass="sig-paren">(</span><emclass="sig-param">f</em>, <emclass="sig-param">group</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#write_ks_group"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.write_ks_group"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">write_ks_root</code><spanclass="sig-paren">(</span><emclass="sig-param">f</em>, <emclass="sig-param">user</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#write_ks_root"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.write_ks_root"title="Permalink to this definition">¶</a></dt>
<li><p><strong>user</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A blueprint user dictionary</p></li>
<codeclass="sig-prename descclassname">pylorax.api.compose.</code><codeclass="sig-name descname">write_ks_user</code><spanclass="sig-paren">(</span><emclass="sig-param">f</em>, <emclass="sig-param">user</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/compose.html#write_ks_user"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.compose.write_ks_user"title="Permalink to this definition">¶</a></dt>
<li><p><strong>user</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A blueprint user dictionary</p></li>
<spanid="pylorax-api-config-module"></span><h2>pylorax.api.config module<aclass="headerlink"href="#module-pylorax.api.config"title="Permalink to this headline">¶</a></h2>
<codeclass="sig-name descname">get_default</code><spanclass="sig-paren">(</span><emclass="sig-param">section</em>, <emclass="sig-param">option</em>, <emclass="sig-param">default</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/config.html#ComposerConfig.get_default"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.config.ComposerConfig.get_default"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.config.</code><codeclass="sig-name descname">configure</code><spanclass="sig-paren">(</span><emclass="sig-param">conf_file='/etc/lorax/composer.conf'</em>, <emclass="sig-param">root_dir='/'</em>, <emclass="sig-param">test_config=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/config.html#configure"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.config.configure"title="Permalink to this definition">¶</a></dt>
<li><p><strong>conf_file</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Path to the config file overriding the default settings</p></li>
<li><p><strong>root_dir</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Directory to prepend to paths, defaults to /</p></li>
<li><p><strong>test_config</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#bool"title="(in Python v3.8)"><em>bool</em></a>) -- Set to True to skip reading conf_file</p></li>
<codeclass="sig-prename descclassname">pylorax.api.config.</code><codeclass="sig-name descname">make_dnf_dirs</code><spanclass="sig-paren">(</span><emclass="sig-param">conf</em>, <emclass="sig-param">uid</em>, <emclass="sig-param">gid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/config.html#make_dnf_dirs"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.config.make_dnf_dirs"title="Permalink to this definition">¶</a></dt>
<li><p><strong>conf</strong> (<aclass="reference internal"href="#pylorax.api.config.ComposerConfig"title="pylorax.api.config.ComposerConfig"><em>ComposerConfig</em></a>) -- The configuration to use</p></li>
<codeclass="sig-prename descclassname">pylorax.api.config.</code><codeclass="sig-name descname">make_owned_dir</code><spanclass="sig-paren">(</span><emclass="sig-param">p_dir</em>, <emclass="sig-param">uid</em>, <emclass="sig-param">gid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/config.html#make_owned_dir"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.config.make_owned_dir"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.config.</code><codeclass="sig-name descname">make_queue_dirs</code><spanclass="sig-paren">(</span><emclass="sig-param">conf</em>, <emclass="sig-param">gid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/config.html#make_queue_dirs"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.config.make_queue_dirs"title="Permalink to this definition">¶</a></dt>
<li><p><strong>conf</strong> (<aclass="reference internal"href="#pylorax.api.config.ComposerConfig"title="pylorax.api.config.ComposerConfig"><em>ComposerConfig</em></a>) -- The configuration to use</p></li>
<li><p><strong>gid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Group ID that has access to the queue directories</p></li>
<spanid="pylorax-api-dnfbase-module"></span><h2>pylorax.api.dnfbase module<aclass="headerlink"href="#module-pylorax.api.dnfbase"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.dnfbase.</code><codeclass="sig-name descname">DNFLock</code><spanclass="sig-paren">(</span><emclass="sig-param">conf</em>, <emclass="sig-param">expire_secs=21600</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/dnfbase.html#DNFLock"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.dnfbase.DNFLock"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">lock</code><aclass="headerlink"href="#pylorax.api.dnfbase.DNFLock.lock"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">lock_check</code><aclass="headerlink"href="#pylorax.api.dnfbase.DNFLock.lock_check"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.dnfbase.</code><codeclass="sig-name descname">get_base_object</code><spanclass="sig-paren">(</span><emclass="sig-param">conf</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/dnfbase.html#get_base_object"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.dnfbase.get_base_object"title="Permalink to this definition">¶</a></dt>
<spanid="pylorax-api-errors-module"></span><h2>pylorax.api.errors module<aclass="headerlink"href="#module-pylorax.api.errors"title="Permalink to this headline">¶</a></h2>
<spanid="pylorax-api-flask-blueprint-module"></span><h2>pylorax.api.flask_blueprint module<aclass="headerlink"href="#module-pylorax.api.flask_blueprint"title="Permalink to this headline">¶</a></h2>
<p>Flask Blueprints that support skipping routes</p>
<p>When using Blueprints for API versioning you will usually want to fall back
to the previous version's rules for routes that have no new behavior. To do
this we add a 'skip_rule' list to the Blueprint's options dictionary. It lists
all of the routes that you do not want to register.</p>
<codeclass="sig-name descname">add_url_rule</code><spanclass="sig-paren">(</span><emclass="sig-param">rule</em>, <emclass="sig-param">endpoint=None</em>, <emclass="sig-param">view_func=None</em>, <emclass="sig-param">**options</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/flask_blueprint.html#BlueprintSetupStateSkip.add_url_rule"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.flask_blueprint.BlueprintSetupStateSkip.add_url_rule"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.flask_blueprint.</code><codeclass="sig-name descname">BlueprintSkip</code><spanclass="sig-paren">(</span><emclass="sig-param">*args</em>, <emclass="sig-param">**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/flask_blueprint.html#BlueprintSkip"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.flask_blueprint.BlueprintSkip"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">make_setup_state</code><spanclass="sig-paren">(</span><emclass="sig-param">app</em>, <emclass="sig-param">options</em>, <emclass="sig-param">first_registration=False</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/flask_blueprint.html#BlueprintSkip.make_setup_state"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.flask_blueprint.BlueprintSkip.make_setup_state"title="Permalink to this definition">¶</a></dt>
<spanid="pylorax-api-gitrpm-module"></span><h2>pylorax.api.gitrpm module<aclass="headerlink"href="#module-pylorax.api.gitrpm"title="Permalink to this headline">¶</a></h2>
<p>Clone a git repository and package it as an rpm</p>
<p>This module contains functions for cloning a git repo, creating a tar archive of
the selected commit, branch, or tag, and packaging the files into an rpm that will
be installed by anaconda when creating the image.</p>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.gitrpm.</code><codeclass="sig-name descname">GitArchiveTarball</code><spanclass="sig-paren">(</span><emclass="sig-param">gitRepo</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitArchiveTarball"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitArchiveTarball"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">write_file</code><spanclass="sig-paren">(</span><emclass="sig-param">sourcesDir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitArchiveTarball.write_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitArchiveTarball.write_file"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>sourcesDir</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Path to use for creating the archive</p>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.gitrpm.</code><codeclass="sig-name descname">GitRpmBuild</code><spanclass="sig-paren">(</span><emclass="sig-param">*args</em>, <emclass="sig-param">**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitRpmBuild"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitRpmBuild"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">add_git_tarball</code><spanclass="sig-paren">(</span><emclass="sig-param">gitRepo</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitRpmBuild.add_git_tarball"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitRpmBuild.add_git_tarball"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>gitRepo</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A dict with the repository details</p>
<codeclass="sig-name descname">check</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitRpmBuild.check"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitRpmBuild.check"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">clean</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitRpmBuild.clean"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitRpmBuild.clean"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">cleanup_tmpdir</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitRpmBuild.cleanup_tmpdir"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitRpmBuild.cleanup_tmpdir"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_base_dir</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#GitRpmBuild.get_base_dir"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.GitRpmBuild.get_base_dir"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.gitrpm.</code><codeclass="sig-name descname">create_gitrpm_repo</code><spanclass="sig-paren">(</span><emclass="sig-param">results_dir</em>, <emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#create_gitrpm_repo"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.create_gitrpm_repo"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe</strong> (<aclass="reference internal"href="#pylorax.api.recipes.Recipe"title="pylorax.api.recipes.Recipe"><em>Recipe</em></a>) -- The recipe to get the repos.git entries from</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>Path to the dnf repository or ""</p>
<codeclass="sig-prename descclassname">pylorax.api.gitrpm.</code><codeclass="sig-name descname">get_repo_description</code><spanclass="sig-paren">(</span><emclass="sig-param">gitRepo</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#get_repo_description"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.get_repo_description"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>gitRepo</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A dict with the repository details</p>
<codeclass="sig-prename descclassname">pylorax.api.gitrpm.</code><codeclass="sig-name descname">make_git_rpm</code><spanclass="sig-paren">(</span><emclass="sig-param">gitRepo</em>, <emclass="sig-param">dest</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/gitrpm.html#make_git_rpm"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.gitrpm.make_git_rpm"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>gitRepo</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A dict with the repository details</p>
<spanid="pylorax-api-projects-module"></span><h2>pylorax.api.projects module<aclass="headerlink"href="#module-pylorax.api.projects"title="Permalink to this headline">¶</a></h2>
<emclass="property">exception </em><codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">ProjectsError</code><aclass="reference internal"href="_modules/pylorax/api/projects.html#ProjectsError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.ProjectsError"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">api_changelog</code><spanclass="sig-paren">(</span><emclass="sig-param">changelog</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#api_changelog"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.api_changelog"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>changelog</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#tuple"title="(in Python v3.8)"><em>tuple</em></a>) -- A list of time, author, string tuples.</p>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">api_time</code><spanclass="sig-paren">(</span><emclass="sig-param">t</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#api_time"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.api_time"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">delete_repo_source</code><spanclass="sig-paren">(</span><emclass="sig-param">source_glob</em>, <emclass="sig-param">source_id</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#delete_repo_source"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.delete_repo_source"title="Permalink to this definition">¶</a></dt>
<li><p><strong>source_glob</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- A glob of the repo sources to search</p></li>
<li><p><strong>source_id</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The repo id to delete</p></li>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">dep_evra</code><spanclass="sig-paren">(</span><emclass="sig-param">dep</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#dep_evra"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.dep_evra"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">dep_nevra</code><spanclass="sig-paren">(</span><emclass="sig-param">dep</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#dep_nevra"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.dep_nevra"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">dnf_repo_to_file_repo</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#dnf_repo_to_file_repo"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.dnf_repo_to_file_repo"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">estimate_size</code><spanclass="sig-paren">(</span><emclass="sig-param">packages</em>, <emclass="sig-param">block_size=6144</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#estimate_size"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.estimate_size"title="Permalink to this definition">¶</a></dt>
<li><p><strong>block_size</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- The block size to use for rounding up file sizes.</p></li>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">get_repo_sources</code><spanclass="sig-paren">(</span><emclass="sig-param">source_glob</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#get_repo_sources"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.get_repo_sources"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>source_glob</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- A glob to use to match the source files, including full path</p>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">get_source_ids</code><spanclass="sig-paren">(</span><emclass="sig-param">source_path</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#get_source_ids"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.get_source_ids"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>source_path</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Full path and filename of the source (yum repo) file</p>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">modules_info</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">module_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#modules_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.modules_info"title="Permalink to this definition">¶</a></dt>
<li><p><strong>module_names</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Names of the modules to get info about</p></li>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">modules_list</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">module_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#modules_list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.modules_list"title="Permalink to this definition">¶</a></dt>
<li><p><strong>limit</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Maximum number of modules to return</p></li>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">new_repo_source</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">repoid</em>, <emclass="sig-param">source</em>, <emclass="sig-param">repo_dir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#new_repo_source"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.new_repo_source"title="Permalink to this definition">¶</a></dt>
<dd><p>Add a new repo source from a Weldr source dict</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>dbo</strong> (<em>dnf.Base</em>) -- dnf base object</p></li>
<li><p><strong>id</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The repo id (API v0 uses the name, v1 uses the id)</p></li>
<li><p><strong>source</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A Weldr source dict</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>None</p>
</dd>
<dtclass="field-odd">Raises</dt>
<ddclass="field-odd"><p>...</p>
</dd>
</dl>
<p>Make sure access to the dbo has been locked before calling this.
The <cite>id</cite> parameter will the the 'name' field for API v0, and the 'id' field for API v1</p>
<p>DNF variables will be substituted at load time, and on restart.</p>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">pkg_to_build</code><spanclass="sig-paren">(</span><emclass="sig-param">pkg</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#pkg_to_build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.pkg_to_build"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">pkg_to_dep</code><spanclass="sig-paren">(</span><emclass="sig-param">pkg</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#pkg_to_dep"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.pkg_to_dep"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">pkg_to_project</code><spanclass="sig-paren">(</span><emclass="sig-param">pkg</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#pkg_to_project"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.pkg_to_project"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">pkg_to_project_info</code><spanclass="sig-paren">(</span><emclass="sig-param">pkg</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#pkg_to_project_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.pkg_to_project_info"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">proj_to_module</code><spanclass="sig-paren">(</span><emclass="sig-param">proj</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#proj_to_module"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.proj_to_module"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">projects_depsolve</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">projects</em>, <emclass="sig-param">groups</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#projects_depsolve"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.projects_depsolve"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">projects_depsolve_with_size</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">projects</em>, <emclass="sig-param">groups</em>, <emclass="sig-param">with_core=True</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#projects_depsolve_with_size"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.projects_depsolve_with_size"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p>tuple of (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)">int</a>, list of dicts)</p>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">projects_info</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em>, <emclass="sig-param">project_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#projects_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.projects_info"title="Permalink to this definition">¶</a></dt>
<li><p><strong>project_names</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- List of names of projects to get info about</p></li>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">projects_list</code><spanclass="sig-paren">(</span><emclass="sig-param">dbo</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#projects_list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.projects_list"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">repo_to_source</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">system_source</em>, <emclass="sig-param">api=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#repo_to_source"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.repo_to_source"title="Permalink to this definition">¶</a></dt>
<li><p><strong>system_source</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#bool"title="(in Python v3.8)"><em>bool</em></a>) -- True if this source is an immutable system source</p></li>
<li><p><strong>api</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Select which api version of the dict to return (default 1)</p></li>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> field has changed in v1 of the API.
In v0 of the API <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> is the repo.id, in v1 it is the repo.name and a new field,
<codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> has been added for the repo.id</p>
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">source_to_repo</code><spanclass="sig-paren">(</span><emclass="sig-param">source</em>, <emclass="sig-param">dnf_conf</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#source_to_repo"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.source_to_repo"title="Permalink to this definition">¶</a></dt>
<p>If the <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> field is included it is used for the repo id, otherwise <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> is used.
v0 of the API only used <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code>, v1 added the distinction between <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code>.</p>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.projects.source_to_repodict">
<codeclass="sig-prename descclassname">pylorax.api.projects.</code><codeclass="sig-name descname">source_to_repodict</code><spanclass="sig-paren">(</span><emclass="sig-param">source</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/projects.html#source_to_repodict"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.projects.source_to_repodict"title="Permalink to this definition">¶</a></dt>
<dd><p>Return a tuple suitable for use with dnf.add_new_repo</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>source</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A Weldr source dict</p>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>A tuple of dnf.Repo attributes</p>
<spanid="pylorax-api-queue-module"></span><h2>pylorax.api.queue module<aclass="headerlink"href="#module-pylorax.api.queue"title="Permalink to this headline">¶</a></h2>
<p>Functions to monitor compose queue and run anaconda</p>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">build_status</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">status_filter=None</em>, <emclass="sig-param">api=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#build_status"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.build_status"title="Permalink to this definition">¶</a></dt>
<li><p><strong>status_filter</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- What builds to return. None == all, "FINISHED", or "FAILED"</p></li>
<li><p><strong>api</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Select which api version of the dict to return (default 1)</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">check_queues</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#check_queues"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.check_queues"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">compose_detail</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">results_dir</em>, <emclass="sig-param">api=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#compose_detail"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.compose_detail"title="Permalink to this definition">¶</a></dt>
<li><p><strong>cfg</strong> (<aclass="reference internal"href="#pylorax.api.config.ComposerConfig"title="pylorax.api.config.ComposerConfig"><em>ComposerConfig</em></a>) -- Configuration settings (required for api=1)</p></li>
<li><p><strong>results_dir</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The directory containing the metadata and results for the build</p></li>
<li><p><strong>api</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Select which api version of the dict to return (default 1)</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">get_compose_type</code><spanclass="sig-paren">(</span><emclass="sig-param">results_dir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#get_compose_type"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.get_compose_type"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>results_dir</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The directory containing the metadata and results for the build</p>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">get_image_name</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid_dir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#get_image_name"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.get_image_name"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">make_compose</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">results_dir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#make_compose"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.make_compose"title="Permalink to this definition">¶</a></dt>
<li><p><strong>results_dir</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The directory containing the metadata and results for the build</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">monitor</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#monitor"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.monitor"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">queue_status</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">api=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#queue_status"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.queue_status"title="Permalink to this definition">¶</a></dt>
<li><p><strong>api</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Select which api version of the dict to return (default 1)</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">start_queue_monitor</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uid</em>, <emclass="sig-param">gid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#start_queue_monitor"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.start_queue_monitor"title="Permalink to this definition">¶</a></dt>
<li><p><strong>uid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- User ID that owns the queue</p></li>
<li><p><strong>gid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Group ID that owns the queue</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>None</p>
</dd>
</dl>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.queue.uuid_add_upload">
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_add_upload</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em>, <emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_add_upload"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_add_upload"title="Permalink to this definition">¶</a></dt>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<li><p><strong>upload_uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the upload</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_cancel</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_cancel"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_cancel"title="Permalink to this definition">¶</a></dt>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_delete</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_delete"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_delete"title="Permalink to this definition">¶</a></dt>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_get_uploads</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_get_uploads"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_get_uploads"title="Permalink to this definition">¶</a></dt>
<dd><p>Return the list of uploads for a build uuid</p>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>The upload UUIDs associated with the build UUID</p>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_image</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_image"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_image"title="Permalink to this definition">¶</a></dt>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_info</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em>, <emclass="sig-param">api=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_info"title="Permalink to this definition">¶</a></dt>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_log</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em>, <emclass="sig-param">size=1024</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_log"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_log"title="Permalink to this definition">¶</a></dt>
<dd><p>Return <cite>size</cite> KiB from the end of the most currently relevant log for a
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<li><p><strong>size</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Number of KiB to read. Default is 1024</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_ready_upload</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em>, <emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_ready_upload"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_ready_upload"title="Permalink to this definition">¶</a></dt>
<dd><p>Set an upload to READY if the build is in FINISHED state</p>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<li><p><strong>upload_uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the upload</p></li>
<ddclass="field-even"><p>RuntimeError if the build uuid is invalid or not in FINISHED state.</p>
</dd>
</dl>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.queue.uuid_remove_upload">
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_remove_upload</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_remove_upload"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_remove_upload"title="Permalink to this definition">¶</a></dt>
<li><p><strong>upload_uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the upload</p></li>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<li><p><strong>provider_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The name of the cloud provider, e.g. "azure"</p></li>
<li><p><strong>image_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Path of the image to upload</p></li>
<li><p><strong>settings</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- Settings to use for the selected provider</p></li>
<codeclass="sig-prename descclassname">pylorax.api.queue.</code><codeclass="sig-name descname">uuid_status</code><spanclass="sig-paren">(</span><emclass="sig-param">cfg</em>, <emclass="sig-param">uuid</em>, <emclass="sig-param">api=1</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/queue.html#uuid_status"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.queue.uuid_status"title="Permalink to this definition">¶</a></dt>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<li><p><strong>api</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Select which api version of the dict to return (default 1)</p></li>
<li><p><strong>uuid</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The UUID of the build</p></li>
<li><p><strong>metadata</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#bool"title="(in Python v3.8)"><em>bool</em></a>) -- Set to true to include all the metadata needed to reproduce the build</p></li>
<li><p><strong>image</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#bool"title="(in Python v3.8)"><em>bool</em></a>) -- Set to true to include the output image</p></li>
<li><p><strong>logs</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#bool"title="(in Python v3.8)"><em>bool</em></a>) -- Set to true to include the logs from the build</p></li>
<spanid="pylorax-api-recipes-module"></span><h2>pylorax.api.recipes module<aclass="headerlink"href="#module-pylorax.api.recipes"title="Permalink to this headline">¶</a></h2>
<emclass="property">exception </em><codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">CommitTimeValError</code><aclass="reference internal"href="_modules/pylorax/api/recipes.html#CommitTimeValError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.CommitTimeValError"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">NewRecipeGit</code><spanclass="sig-paren">(</span><emclass="sig-param">toml_dict</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#NewRecipeGit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.NewRecipeGit"title="Permalink to this definition">¶</a></dt>
<li><p><strong>rpmname</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Name of the rpm to create, also used as the prefix name in the tar archive</p></li>
<li><p><strong>rpmversion</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Version of the rpm, eg. "1.0.0"</p></li>
<li><p><strong>rpmrelease</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Release of the rpm, eg. "1"</p></li>
<li><p><strong>summary</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Summary string for the rpm</p></li>
<li><p><strong>repo</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- URL of the get repo to clone and create the archive from</p></li>
<li><p><strong>ref</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Git reference to check out. eg. origin/branch-name, git tag, or git commit hash</p></li>
<li><p><strong>destination</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Path to install the / of the git repo at when installing the rpm</p></li>
<codeclass="sig-name descname">bump_version</code><spanclass="sig-paren">(</span><emclass="sig-param">old_version=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#Recipe.bump_version"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.Recipe.bump_version"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>old_version</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- An optional old version number</p>
<emclass="property">property </em><codeclass="sig-name descname">filename</code><aclass="headerlink"href="#pylorax.api.recipes.Recipe.filename"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">freeze</code><spanclass="sig-paren">(</span><emclass="sig-param">deps</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#Recipe.freeze"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.Recipe.freeze"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>deps</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#list"title="(in Python v3.8)"><em>list</em></a><em>(</em>) -- A list of dependency NEVRA to use to fill in the modules and packages</p>
<emclass="property">property </em><codeclass="sig-name descname">group_names</code><aclass="headerlink"href="#pylorax.api.recipes.Recipe.group_names"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">module_names</code><aclass="headerlink"href="#pylorax.api.recipes.Recipe.module_names"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">module_nver</code><aclass="headerlink"href="#pylorax.api.recipes.Recipe.module_nver"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">package_names</code><aclass="headerlink"href="#pylorax.api.recipes.Recipe.package_names"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">package_nver</code><aclass="headerlink"href="#pylorax.api.recipes.Recipe.package_nver"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">toml</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#Recipe.toml"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.Recipe.toml"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">RecipeError</code><aclass="reference internal"href="_modules/pylorax/api/recipes.html#RecipeError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.RecipeError"title="Permalink to this definition">¶</a></dt>
<emclass="property">exception </em><codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">RecipeFileError</code><aclass="reference internal"href="_modules/pylorax/api/recipes.html#RecipeFileError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.RecipeFileError"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">RecipeGroup</code><spanclass="sig-paren">(</span><emclass="sig-param">name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#RecipeGroup"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.RecipeGroup"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">RecipeModule</code><spanclass="sig-paren">(</span><emclass="sig-param">name</em>, <emclass="sig-param">version</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#RecipeModule"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.RecipeModule"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">RecipePackage</code><spanclass="sig-paren">(</span><emclass="sig-param">name</em>, <emclass="sig-param">version</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#RecipePackage"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.RecipePackage"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">check_list_case</code><spanclass="sig-paren">(</span><emclass="sig-param">expected_keys</em>, <emclass="sig-param">recipe_keys</em>, <emclass="sig-param">prefix=''</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#check_list_case"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.check_list_case"title="Permalink to this definition">¶</a></dt>
<dd><p>Check the case of the recipe keys</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>expected_keys</strong> (<em>list of str</em>) -- A list of expected key strings</p></li>
<li><p><strong>recipe_keys</strong> (<em>list of str</em>) -- A list of the recipe's key strings</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>list of errors</p>
</dd>
<dtclass="field-odd">Return type</dt>
<ddclass="field-odd"><p>list of str</p>
</dd>
</dl>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.recipes.check_recipe_dict">
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">check_recipe_dict</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe_dict</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#check_recipe_dict"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.check_recipe_dict"title="Permalink to this definition">¶</a></dt>
<dd><p>Check a dict before using it to create a new Recipe</p>
<ddclass="field-odd"><p><strong>recipe_dict</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A plain dict of the recipe</p>
<p>This checks a dict to make sure required fields are present,
that optional fields are correct, and that other optional fields
are of the correct format, when included.</p>
<p>This collects all of the errors and returns a single RecipeError with
a string that can be presented to users.</p>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.recipes.check_required_list">
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">check_required_list</code><spanclass="sig-paren">(</span><emclass="sig-param">lst</em>, <emclass="sig-param">fields</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#check_required_list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.check_required_list"title="Permalink to this definition">¶</a></dt>
<dd><p>Check a list of dicts for required fields</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>lst</strong> (<em>list of dict</em>) -- A list of dicts with fields</p></li>
<li><p><strong>fields</strong> (<em>list of str</em>) -- A list of field name strings</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>A list of error strings</p>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">commit_recipe</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#commit_recipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.commit_recipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">commit_recipe_directory</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">directory</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#commit_recipe_directory"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.commit_recipe_directory"title="Permalink to this definition">¶</a></dt>
<li><p><strong>directory</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The directory of *.toml recipes to commit</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">commit_recipe_file</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#commit_recipe_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.commit_recipe_file"title="Permalink to this definition">¶</a></dt>
<li><p><strong>filename</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Path to the recipe file to commit</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">customizations_diff</code><spanclass="sig-paren">(</span><emclass="sig-param">old_recipe</em>, <emclass="sig-param">new_recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#customizations_diff"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.customizations_diff"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">delete_file</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#delete_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.delete_file"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">delete_recipe</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#delete_recipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.delete_recipe"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Recipe name to delete</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">diff_lists</code><spanclass="sig-paren">(</span><emclass="sig-param">title</em>, <emclass="sig-param">field</em>, <emclass="sig-param">old_items</em>, <emclass="sig-param">new_items</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#diff_lists"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.diff_lists"title="Permalink to this definition">¶</a></dt>
<li><p><strong>title</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Title of the entry</p></li>
<li><p><strong>field</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Field to use as the key for comparisons</p></li>
<li><p><strong>old_items</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#list"title="(in Python v3.8)"><em>list</em></a><em>(</em><aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a><em>)</em>) -- List of item dicts with "name" field</p></li>
<li><p><strong>new_items</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#list"title="(in Python v3.8)"><em>list</em></a><em>(</em><aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a><em>)</em>) -- List of item dicts with "name" field</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">find_commit_tag</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em>, <emclass="sig-param">commit_id</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#find_commit_tag"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.find_commit_tag"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">find_field_value</code><spanclass="sig-paren">(</span><emclass="sig-param">field</em>, <emclass="sig-param">value</em>, <emclass="sig-param">lst</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#find_field_value"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.find_field_value"title="Permalink to this definition">¶</a></dt>
<li><p><strong>field</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- field to search for</p></li>
<li><p><strong>value</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- value to match in the field</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">find_name</code><spanclass="sig-paren">(</span><emclass="sig-param">name</em>, <emclass="sig-param">lst</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#find_name"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.find_name"title="Permalink to this definition">¶</a></dt>
<li><p><strong>name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Name to search for</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">find_recipe_obj</code><spanclass="sig-paren">(</span><emclass="sig-param">path</em>, <emclass="sig-param">recipe</em>, <emclass="sig-param">default=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#find_recipe_obj"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.find_recipe_obj"title="Permalink to this definition">¶</a></dt>
<li><p><strong>path</strong> (<em>list of str</em>) -- A list of dict field names</p></li>
<li><p><strong>recipe</strong> (<aclass="reference internal"href="#pylorax.api.recipes.Recipe"title="pylorax.api.recipes.Recipe"><em>Recipe</em></a>) -- The recipe to search</p></li>
<li><p><strong>default</strong> (<em>Any</em>) -- The value to return if it is not found</p></li>
</ul>
</dd>
</dl>
<p>Return the object found by applying the path to the dicts in the recipe, or
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">get_commit_details</code><spanclass="sig-paren">(</span><emclass="sig-param">commit</em>, <emclass="sig-param">revision=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#get_commit_details"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.get_commit_details"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">get_revision_from_tag</code><spanclass="sig-paren">(</span><emclass="sig-param">tag</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#get_revision_from_tag"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.get_revision_from_tag"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>tag</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The tag to exract the revision from</p>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">gfile</code><spanclass="sig-paren">(</span><emclass="sig-param">path</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#gfile"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.gfile"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">head_commit</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#head_commit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.head_commit"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">is_commit_tag</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">commit_id</em>, <emclass="sig-param">tag</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#is_commit_tag"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.is_commit_tag"title="Permalink to this definition">¶</a></dt>
<li><p><strong>tag</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The tag to check</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">is_parent_diff</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">filename</em>, <emclass="sig-param">tree</em>, <emclass="sig-param">parent</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#is_parent_diff"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.is_parent_diff"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">list_branch_files</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#list_branch_files"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.list_branch_files"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">list_commit_files</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">commit</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#list_commit_files"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.list_commit_files"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">list_commits</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em>, <emclass="sig-param">limit=0</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#list_commits"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.list_commits"title="Permalink to this definition">¶</a></dt>
<li><p><strong>filename</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- filename to revert</p></li>
<li><p><strong>limit</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- Number of commits to return (0=all)</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">open_or_create_repo</code><spanclass="sig-paren">(</span><emclass="sig-param">path</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#open_or_create_repo"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.open_or_create_repo"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">prepare_commit</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">builder</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#prepare_commit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.prepare_commit"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">read_commit</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em>, <emclass="sig-param">commit=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#read_commit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.read_commit"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">read_commit_spec</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">spec</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#read_commit_spec"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.read_commit_spec"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">read_recipe_and_id</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe_name</em>, <emclass="sig-param">commit=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#read_recipe_and_id"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.read_recipe_and_id"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Recipe name to read</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">read_recipe_commit</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe_name</em>, <emclass="sig-param">commit=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#read_recipe_commit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.read_recipe_commit"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Recipe name to read</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">recipe_diff</code><spanclass="sig-paren">(</span><emclass="sig-param">old_recipe</em>, <emclass="sig-param">new_recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#recipe_diff"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.recipe_diff"title="Permalink to this definition">¶</a></dt>
<li><p><strong>old_recipe</strong> (<aclass="reference internal"href="#pylorax.api.recipes.Recipe"title="pylorax.api.recipes.Recipe"><em>Recipe</em></a>) -- The old version of the recipe</p></li>
<li><p><strong>new_recipe</strong> (<aclass="reference internal"href="#pylorax.api.recipes.Recipe"title="pylorax.api.recipes.Recipe"><em>Recipe</em></a>) -- The new version of the recipe</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>A list of diff dict entries with old/new</p>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">recipe_filename</code><spanclass="sig-paren">(</span><emclass="sig-param">name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#recipe_filename"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.recipe_filename"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">recipe_from_dict</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe_dict</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#recipe_from_dict"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.recipe_from_dict"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>recipe_dict</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#dict"title="(in Python v3.8)"><em>dict</em></a>) -- A plain dict of the recipe</p>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">recipe_from_file</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe_path</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#recipe_from_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.recipe_from_file"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">recipe_from_toml</code><spanclass="sig-paren">(</span><emclass="sig-param">recipe_str</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#recipe_from_toml"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.recipe_from_toml"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">repo_file_exists</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#repo_file_exists"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.repo_file_exists"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">revert_file</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em>, <emclass="sig-param">commit</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#revert_file"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.revert_file"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">revert_recipe</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe_name</em>, <emclass="sig-param">commit</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#revert_recipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.revert_recipe"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Recipe name to revert</p></li>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">tag_file_commit</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">filename</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#tag_file_commit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.tag_file_commit"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.recipes.</code><codeclass="sig-name descname">tag_recipe_commit</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/recipes.html#tag_recipe_commit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.recipes.tag_recipe_commit"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Recipe name to tag</p></li>
<li><p><strong>filename</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- full path of the file to add</p></li>
<li><p><strong>message</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The commit message</p></li>
<li><p><strong>content</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The data to write</p></li>
<spanid="pylorax-api-regexes-module"></span><h2>pylorax.api.regexes module<aclass="headerlink"href="#module-pylorax.api.regexes"title="Permalink to this headline">¶</a></h2>
<spanid="pylorax-api-server-module"></span><h2>pylorax.api.server module<aclass="headerlink"href="#module-pylorax.api.server"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">pylorax.api.server.</code><codeclass="sig-name descname">GitLock</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">lock</em>, <emclass="sig-param">dir</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pylorax.api.server.GitLock"title="Permalink to this definition">¶</a></dt>
<spanid="pylorax-api-timestamp-module"></span><h2>pylorax.api.timestamp module<aclass="headerlink"href="#module-pylorax.api.timestamp"title="Permalink to this headline">¶</a></h2>
<codeclass="sig-prename descclassname">pylorax.api.timestamp.</code><codeclass="sig-name descname">timestamp_dict</code><spanclass="sig-paren">(</span><emclass="sig-param">destdir</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/timestamp.html#timestamp_dict"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.timestamp.timestamp_dict"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.timestamp.</code><codeclass="sig-name descname">write_timestamp</code><spanclass="sig-paren">(</span><emclass="sig-param">destdir</em>, <emclass="sig-param">ty</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/timestamp.html#write_timestamp"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.timestamp.write_timestamp"title="Permalink to this definition">¶</a></dt>
<spanid="pylorax-api-toml-module"></span><h2>pylorax.api.toml module<aclass="headerlink"href="#module-pylorax.api.toml"title="Permalink to this headline">¶</a></h2>
<emclass="property">exception </em><codeclass="sig-prename descclassname">pylorax.api.toml.</code><codeclass="sig-name descname">TomlError</code><spanclass="sig-paren">(</span><emclass="sig-param">msg</em>, <emclass="sig-param">doc</em>, <emclass="sig-param">pos</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/toml.html#TomlError"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.toml.TomlError"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.toml.</code><codeclass="sig-name descname">dump</code><spanclass="sig-paren">(</span><emclass="sig-param">o</em>, <emclass="sig-param">file</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/toml.html#dump"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.toml.dump"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.toml.</code><codeclass="sig-name descname">dumps</code><spanclass="sig-paren">(</span><emclass="sig-param">o</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/toml.html#dumps"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.toml.dumps"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.toml.</code><codeclass="sig-name descname">load</code><spanclass="sig-paren">(</span><emclass="sig-param">file</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/toml.html#load"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.toml.load"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.toml.</code><codeclass="sig-name descname">loads</code><spanclass="sig-paren">(</span><emclass="sig-param">s</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/toml.html#loads"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.toml.loads"title="Permalink to this definition">¶</a></dt>
<spanid="pylorax-api-utils-module"></span><h2>pylorax.api.utils module<aclass="headerlink"href="#module-pylorax.api.utils"title="Permalink to this headline">¶</a></h2>
<p>API utility functions</p>
<dlclass="function">
<dtid="pylorax.api.utils.blueprint_exists">
<codeclass="sig-prename descclassname">pylorax.api.utils.</code><codeclass="sig-name descname">blueprint_exists</code><spanclass="sig-paren">(</span><emclass="sig-param">api</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">blueprint_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/utils.html#blueprint_exists"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.utils.blueprint_exists"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- Recipe name to read</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.utils.take_limits">
<codeclass="sig-prename descclassname">pylorax.api.utils.</code><codeclass="sig-name descname">take_limits</code><spanclass="sig-paren">(</span><emclass="sig-param">iterable</em>, <emclass="sig-param">offset</em>, <emclass="sig-param">limit</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/utils.html#take_limits"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.utils.take_limits"title="Permalink to this definition">¶</a></dt>
<dd><p>Apply offset and limit to an iterable object</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>iterable</strong> (<em>iter</em>) -- The object to limit</p></li>
<li><p><strong>offset</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- The number of items to skip</p></li>
<li><p><strong>limit</strong> (<aclass="reference external"href="https://docs.python.org/3/library/functions.html#int"title="(in Python v3.8)"><em>int</em></a>) -- The total number of items to return</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>A subset of the iterable</p>
<spanid="pylorax-api-v0-module"></span><h2>pylorax.api.v0 module<aclass="headerlink"href="#module-pylorax.api.v0"title="Permalink to this headline">¶</a></h2>
<p>Setup v0 of the API server</p>
<p>v0_api() must be called to setup the API routes for Flask</p>
<divclass="section"id="status-responses">
<h3>Status Responses<aclass="headerlink"href="#status-responses"title="Permalink to this headline">¶</a></h3>
<p>Some requests only return a status/error response.</p>
<blockquote>
<div><p>The response will be a status response with <cite>status</cite> set to true, or an
error response with it set to false and an error message included.</p>
<spanclass="s2">"errors"</span><spanclass="p">:</span><spanclass="p">[</span><spanclass="s2">"ggit-error: Failed to remove entry. File isn't in the tree - jboss.toml (-1)"</span><spanclass="p">]</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_changes</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_changes"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_changes"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"blueprint glusterfs, version 0.0.6 saved."</span><spanclass="p">,</span>
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"blueprint glusterfs, version 0.0.5 saved."</span><spanclass="p">,</span>
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"blueprint glusterfs, version 0.0.4 saved."</span><spanclass="p">,</span>
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"blueprint glusterfs, version 0.0.3 saved."</span><spanclass="p">,</span>
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"blueprint glusterfs, version 0.0.2 saved."</span><spanclass="p">,</span>
<spanclass="s2">"message"</span><spanclass="p">:</span><spanclass="s2">"blueprint glusterfs, version 0.0.1 saved."</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_delete</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_delete"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_delete"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_delete_workspace</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_delete_workspace"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_delete_workspace"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_depsolve</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_depsolve"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_depsolve"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"An example GlusterFS server with samba"</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_diff</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_name</em>, <emclass="sig-param">from_commit</em>, <emclass="sig-param">to_commit</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_diff"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_diff"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_freeze</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_freeze"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_freeze"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"An example GlusterFS server with samba"</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_info</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_info"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"An example GlusterFS server with samba"</span><spanclass="p">,</span>
<spanclass="s2">"errors"</span><spanclass="p">:</span><spanclass="p">[</span><spanclass="s2">"ggit-error: the path 'missing.toml' does not exist in the given tree (-3)"</span><spanclass="p">]</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_list</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_list"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_new</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_new"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_new"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_tag</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_tag"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_tag"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_undo</code><spanclass="sig-paren">(</span><emclass="sig-param">blueprint_name</em>, <emclass="sig-param">commit</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_undo"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_undo"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_blueprints_workspace</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_blueprints_workspace"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_blueprints_workspace"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_cancel</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_cancel"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_cancel"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_delete</code><spanclass="sig-paren">(</span><emclass="sig-param">uuids</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_delete"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_delete"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_failed</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_failed"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_failed"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_finished</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_finished"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_finished"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_image</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_image"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_image"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_info</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_info"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"An example kubernetes master"</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_log_tail</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_log_tail"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_log_tail"title="Permalink to this definition">¶</a></dt>
<dd><p>Return the tail of the most currently relevant log</p>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_logs</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_logs"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_logs"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_metadata</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_metadata"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_metadata"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_queue</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_queue"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_queue"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_results</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_results"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_results"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_start</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_start"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_start"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_status</code><spanclass="sig-paren">(</span><emclass="sig-param">uuids</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_status"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_status"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_compose_types</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_compose_types"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_compose_types"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_modules_info</code><spanclass="sig-paren">(</span><emclass="sig-param">module_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_modules_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_modules_info"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"The GNU tar program saves ..."</span><spanclass="p">,</span>
<spanclass="s2">"summary"</span><spanclass="p">:</span><spanclass="s2">"A GNU file archiving program"</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_modules_list</code><spanclass="sig-paren">(</span><emclass="sig-param">module_names=None</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_modules_list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_modules_list"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_projects_depsolve</code><spanclass="sig-paren">(</span><emclass="sig-param">project_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_projects_depsolve"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_projects_depsolve"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_projects_info</code><spanclass="sig-paren">(</span><emclass="sig-param">project_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_projects_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_projects_info"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"The GNU tar program saves many ..."</span><spanclass="p">,</span>
<spanclass="s2">"summary"</span><spanclass="p">:</span><spanclass="s2">"A GNU file archiving program"</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_projects_list</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_projects_list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_projects_list"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"0 A.D. (pronounced "</span><spanclass="n">zero</span><spanclass="n">ey</span><spanclass="o">-</span><spanclass="n">dee</span><spanclass="s2">") is a ..."</span><spanclass="p">,</span>
<spanclass="s2">"summary"</span><spanclass="p">:</span><spanclass="s2">"Cross-Platform RTS Game of Ancient Warfare"</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_projects_source_delete</code><spanclass="sig-paren">(</span><emclass="sig-param">source_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_projects_source_delete"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_projects_source_delete"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_projects_source_info</code><spanclass="sig-paren">(</span><emclass="sig-param">source_names</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_projects_source_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_projects_source_info"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_projects_source_list</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_projects_source_list"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_projects_source_list"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v0.</code><codeclass="sig-name descname">v0_projects_source_new</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v0.html#v0_projects_source_new"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v0.v0_projects_source_new"title="Permalink to this definition">¶</a></dt>
<div><p>Add (or change) a source for use when depsolving blueprints and composing images.</p>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">proxy</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">gpgkey_urls</span></code> entries are optional. All of the others are required. The supported
types for the urls are:</p>
<ulclass="simple">
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">yum-baseurl</span></code> is a URL to a yum repository.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">yum-mirrorlist</span></code> is a URL for a mirrorlist.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">yum-metalink</span></code> is a URL for a metalink.</p></li>
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">check_ssl</span></code> is true the https certificates must be valid. If they are self-signed you can either set
this to false, or add your Certificate Authority to the host system.</p>
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">check_gpg</span></code> is true the GPG key must either be installed on the host system, or <codeclass="docutils literal notranslate"><spanclass="pre">gpgkey_urls</span></code>
should point to it.</p>
<p>You can edit an existing source (other than system sources), by doing a POST
of the new version of the source. It will overwrite the previous one.</p>
<spanid="pylorax-api-v1-module"></span><h2>pylorax.api.v1 module<aclass="headerlink"href="#module-pylorax.api.v1"title="Permalink to this headline">¶</a></h2>
<p>Setup v1 of the API server</p>
<dlclass="function">
<dtid="pylorax.api.v1.v1_compose_failed">
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_failed</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_failed"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_failed"title="Permalink to this definition">¶</a></dt>
<dd><p>Return the list of failed composes</p>
<p><strong>/api/v1/compose/failed</strong></p>
<blockquote>
<div><p>Return the details on all of the failed composes on the system.</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_finished</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_finished"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_finished"title="Permalink to this definition">¶</a></dt>
<dd><p>Return the list of finished composes</p>
<p><strong>/api/v1/compose/finished</strong></p>
<blockquote>
<div><p>Return the details on all of the finished composes on the system.</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_info</code><spanclass="sig-paren">(</span><emclass="sig-param">uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_info"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"description"</span><spanclass="p">:</span><spanclass="s2">"An example kubernetes master"</span><spanclass="p">,</span>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_queue</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_queue"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_queue"title="Permalink to this definition">¶</a></dt>
<dd><p>Return the status of the new and running queues</p>
<p><strong>/api/v1/compose/queue</strong></p>
<blockquote>
<div><p>Return the status of the build queue. It includes information about the builds waiting,
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_start</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_start"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_start"title="Permalink to this definition">¶</a></dt>
<dd><p>Start a compose</p>
<dlclass="simple">
<dt>The body of the post should have these fields:</dt><dd><p>blueprint_name - The blueprint name from /blueprints/list/
compose_type - The type of output to create, from /compose/types
branch - Optional, defaults to master, selects the git branch to use for the blueprint.</p>
</dd>
</dl>
<p><strong>POST /api/v1/compose</strong></p>
<blockquote>
<div><p>Start a compose. The content type should be 'application/json' and the body of the POST
should look like this. The "upload" object is optional.</p>
<p>The upload object can specify either a pre-existing profile to use (as returned by
<cite>/uploads/providers</cite>) or one-time use settings for the provider.</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_status</code><spanclass="sig-paren">(</span><emclass="sig-param">uuids</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_status"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_status"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_uploads_delete</code><spanclass="sig-paren">(</span><emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_uploads_delete"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_uploads_delete"title="Permalink to this definition">¶</a></dt>
<dd><p>Delete an upload and disassociate it from its compose</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_compose_uploads_schedule</code><spanclass="sig-paren">(</span><emclass="sig-param">compose_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_compose_uploads_schedule"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_compose_uploads_schedule"title="Permalink to this definition">¶</a></dt>
<dd><p>Schedule an upload of a compose to a given cloud provider</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_projects_source_info</code><spanclass="sig-paren">(</span><emclass="sig-param">source_ids</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_projects_source_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_projects_source_info"title="Permalink to this definition">¶</a></dt>
<dd><p>Return detailed info about the list of sources</p>
<p>In v0 the <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> field was used for the id (a short name for the repo). In v1 <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> changed
to <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> is now used for the longer descriptive name of the repository.</p>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.v1.v1_projects_source_new">
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_projects_source_new</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_projects_source_new"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_projects_source_new"title="Permalink to this definition">¶</a></dt>
<dd><p>Add a new package source. Or change an existing one</p>
<div><p>Add (or change) a source for use when depsolving blueprints and composing images.</p>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">proxy</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">gpgkey_urls</span></code> entries are optional. All of the others are required. The supported
types for the urls are:</p>
<ulclass="simple">
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">yum-baseurl</span></code> is a URL to a yum repository.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">yum-mirrorlist</span></code> is a URL for a mirrorlist.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">yum-metalink</span></code> is a URL for a metalink.</p></li>
</ul>
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">check_ssl</span></code> is true the https certificates must be valid. If they are self-signed you can either set
this to false, or add your Certificate Authority to the host system.</p>
<p>If <codeclass="docutils literal notranslate"><spanclass="pre">check_gpg</span></code> is true the GPG key must either be installed on the host system, or <codeclass="docutils literal notranslate"><spanclass="pre">gpgkey_urls</span></code>
should point to it.</p>
<p>You can edit an existing source (other than system sources), by doing a POST
of the new version of the source. It will overwrite the previous one.</p>
<p>In v0 the <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> field was used for the id (a short name for the repo). In v1 <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> changed
to <codeclass="docutils literal notranslate"><spanclass="pre">id</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">name</span></code> is now used for the longer descriptive name of the repository.</p>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.v1.v1_providers_delete">
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_providers_delete</code><spanclass="sig-paren">(</span><emclass="sig-param">provider_name</em>, <emclass="sig-param">profile</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_providers_delete"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_providers_delete"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_providers_save</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_providers_save"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_providers_save"title="Permalink to this definition">¶</a></dt>
<dd><p>Save provider settings as a profile for later use</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_upload_cancel</code><spanclass="sig-paren">(</span><emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_upload_cancel"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_upload_cancel"title="Permalink to this definition">¶</a></dt>
<dd><p>Cancel an upload that is either queued or in progress</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_upload_info</code><spanclass="sig-paren">(</span><emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_upload_info"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_upload_info"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns information about a given upload</p>
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_upload_log</code><spanclass="sig-paren">(</span><emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_upload_log"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_upload_log"title="Permalink to this definition">¶</a></dt>
<spanclass="s2">"log"</span><spanclass="p">:</span><spanclass="s2">"< PLAY [localhost] >..."</span>
<spanclass="p">}</span>
</pre></div>
</div>
</div></blockquote>
</dd></dl>
<dlclass="function">
<dtid="pylorax.api.v1.v1_upload_providers">
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_upload_providers</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_upload_providers"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_upload_providers"title="Permalink to this definition">¶</a></dt>
<dd><p>Return the information about all upload providers, including their
display names, expected settings, and saved profiles. Refer to the
<codeclass="sig-prename descclassname">pylorax.api.v1.</code><codeclass="sig-name descname">v1_upload_reset</code><spanclass="sig-paren">(</span><emclass="sig-param">upload_uuid</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/v1.html#v1_upload_reset"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.v1.v1_upload_reset"title="Permalink to this definition">¶</a></dt>
<dd><p>Reset an upload so it can be attempted again</p>
<spanid="pylorax-api-workspace-module"></span><h2>pylorax.api.workspace module<aclass="headerlink"href="#module-pylorax.api.workspace"title="Permalink to this headline">¶</a></h2>
<codeclass="sig-prename descclassname">pylorax.api.workspace.</code><codeclass="sig-name descname">workspace_delete</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/workspace.html#workspace_delete"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.workspace.workspace_delete"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The name of the recipe</p></li>
<codeclass="sig-prename descclassname">pylorax.api.workspace.</code><codeclass="sig-name descname">workspace_dir</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/workspace.html#workspace_dir"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.workspace.workspace_dir"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pylorax.api.workspace.</code><codeclass="sig-name descname">workspace_read</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe_name</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/workspace.html#workspace_read"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.workspace.workspace_read"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe_name</strong> (<aclass="reference external"href="https://docs.python.org/3/library/stdtypes.html#str"title="(in Python v3.8)"><em>str</em></a>) -- The name of the recipe</p></li>
<codeclass="sig-prename descclassname">pylorax.api.workspace.</code><codeclass="sig-name descname">workspace_write</code><spanclass="sig-paren">(</span><emclass="sig-param">repo</em>, <emclass="sig-param">branch</em>, <emclass="sig-param">recipe</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pylorax/api/workspace.html#workspace_write"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pylorax.api.workspace.workspace_write"title="Permalink to this definition">¶</a></dt>
<li><p><strong>recipe</strong> (<aclass="reference internal"href="#pylorax.api.recipes.Recipe"title="pylorax.api.recipes.Recipe"><em>Recipe</em></a>) -- The recipe to write to the workspace</p></li>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.