Skip to content

Commit 55adec8

Browse files
author
github-actions
committed
Docs build 2025-07-08
1 parent 9cd1df2 commit 55adec8

14 files changed

+48
-36
lines changed

en/latest/apidoc/pyinfra.api.arguments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ <h3>Navigation</h3>
236236

237237
<dl class="py function">
238238
<dt class="sig sig-object py" id="pyinfra.api.arguments.pop_global_arguments">
239-
<span class="sig-prename descclassname"><span class="pre">pyinfra.api.arguments.</span></span><span class="sig-name descname"><span class="pre">pop_global_arguments</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">kwargs</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">Any</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">state</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="s"><span class="pre">'State'</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">host</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="s"><span class="pre">'Host'</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">keys_to_check</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">tuple</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="#pyinfra.api.arguments.AllArguments" title="pyinfra.api.arguments.AllArguments"><span class="pre">AllArguments</span></a><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">list</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pyinfra.api.arguments.pop_global_arguments" title="Link to this definition"></a></dt>
239+
<span class="sig-prename descclassname"><span class="pre">pyinfra.api.arguments.</span></span><span class="sig-name descname"><span class="pre">pop_global_arguments</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">state</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="pyinfra.api.state.html#pyinfra.api.state.State" title="pyinfra.api.state.State"><span class="pre">State</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">host</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><span class="pre">Host</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">kwargs</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">Any</span><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">tuple</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="#pyinfra.api.arguments.AllArguments" title="pyinfra.api.arguments.AllArguments"><span class="pre">AllArguments</span></a><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">list</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pyinfra.api.arguments.pop_global_arguments" title="Link to this definition"></a></dt>
240240
<dd><p>Pop and return operation global keyword arguments, in preferred order:</p>
241241
<ul class="simple">
242242
<li><p>From the current context (a direct &#64;operator or &#64;deploy function being called)</p></li>

en/latest/apidoc/pyinfra.api.facts.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ <h3>Navigation</h3>
130130
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.facts.ShortFactBase"><code class="docutils literal notranslate"><span class="pre">ShortFactBase</span></code></a></li>
131131
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.facts.get_fact"><code class="docutils literal notranslate"><span class="pre">get_fact()</span></code></a></li>
132132
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.facts.get_facts"><code class="docutils literal notranslate"><span class="pre">get_facts()</span></code></a></li>
133-
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.facts.get_host_fact"><code class="docutils literal notranslate"><span class="pre">get_host_fact()</span></code></a></li>
134133
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.facts.get_short_facts"><code class="docutils literal notranslate"><span class="pre">get_short_facts()</span></code></a></li>
135134
</ul>
136135
</li>
@@ -247,12 +246,7 @@ <h3>Navigation</h3>
247246

248247
<dl class="py function">
249248
<dt class="sig sig-object py" id="pyinfra.api.facts.get_facts">
250-
<span class="sig-prename descclassname"><span class="pre">pyinfra.api.facts.</span></span><span class="sig-name descname"><span class="pre">get_facts</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">state</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="pyinfra.api.state.html#pyinfra.api.state.State" title="pyinfra.api.state.State"><span class="pre">State</span></a></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.facts.get_facts" title="Link to this definition"></a></dt>
251-
<dd></dd></dl>
252-
253-
<dl class="py function">
254-
<dt class="sig sig-object py" id="pyinfra.api.facts.get_host_fact">
255-
<span class="sig-prename descclassname"><span class="pre">pyinfra.api.facts.</span></span><span class="sig-name descname"><span class="pre">get_host_fact</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">state</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="pyinfra.api.state.html#pyinfra.api.state.State" title="pyinfra.api.state.State"><span class="pre">State</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">host</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><span class="pre">Host</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">cls</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">args</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Iterable</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">kwargs</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">dict</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Any</span></span></span><a class="headerlink" href="#pyinfra.api.facts.get_host_fact" title="Link to this definition"></a></dt>
249+
<span class="sig-prename descclassname"><span class="pre">pyinfra.api.facts.</span></span><span class="sig-name descname"><span class="pre">get_facts</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">state</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.facts.get_facts" title="Link to this definition"></a></dt>
256250
<dd></dd></dl>
257251

258252
<dl class="py function">

en/latest/apidoc/pyinfra.api.inventory.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h3>Navigation</h3>
191191

192192
<dl class="py method">
193193
<dt class="sig sig-object py" id="pyinfra.api.inventory.Inventory.get_group">
194-
<span class="sig-name descname"><span class="pre">get_group</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name:</span> <span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default=&lt;class</span> <span class="pre">'pyinfra.api.exceptions.NoGroupError'&gt;</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.inventory.Inventory.get_group" title="Link to this definition"></a></dt>
194+
<span class="sig-name descname"><span class="pre">get_group</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name:</span> <span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default=&lt;class</span> <span class="pre">'pyinfra.api.exceptions.NoGroupError'&gt;</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">list</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><span class="pre">Host</span></a><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pyinfra.api.inventory.Inventory.get_group" title="Link to this definition"></a></dt>
195195
<dd><p>Get a list of hosts belonging to a group.</p>
196196
</dd></dl>
197197

@@ -210,7 +210,7 @@ <h3>Navigation</h3>
210210

211211
<dl class="py method">
212212
<dt class="sig sig-object py" id="pyinfra.api.inventory.Inventory.get_host">
213-
<span class="sig-name descname"><span class="pre">get_host</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name:</span> <span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default=&lt;class</span> <span class="pre">'pyinfra.api.exceptions.NoHostError'&gt;</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.inventory.Inventory.get_host" title="Link to this definition"></a></dt>
213+
<span class="sig-name descname"><span class="pre">get_host</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name:</span> <span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">default=&lt;class</span> <span class="pre">'pyinfra.api.exceptions.NoHostError'&gt;</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><span class="pre">Host</span></a></span></span><a class="headerlink" href="#pyinfra.api.inventory.Inventory.get_host" title="Link to this definition"></a></dt>
214214
<dd><p>Get a single host by name.</p>
215215
</dd></dl>
216216

@@ -226,6 +226,11 @@ <h3>Navigation</h3>
226226
<dd><p>Get override data for this inventory.</p>
227227
</dd></dl>
228228

229+
<dl class="py attribute">
230+
<dt class="sig sig-object py" id="pyinfra.api.inventory.Inventory.groups">
231+
<span class="sig-name descname"><span class="pre">groups</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">list</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><span class="pre">Host</span></a><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#pyinfra.api.inventory.Inventory.groups" title="Link to this definition"></a></dt>
232+
<dd></dd></dl>
233+
229234
<dl class="py method">
230235
<dt class="sig sig-object py" id="pyinfra.api.inventory.Inventory.iter_activated_hosts">
231236
<span class="sig-name descname"><span class="pre">iter_activated_hosts</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Iterator</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><span class="pre">Host</span></a><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pyinfra.api.inventory.Inventory.iter_activated_hosts" title="Link to this definition"></a></dt>

en/latest/apidoc/pyinfra.api.util.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ <h3>Navigation</h3>
138138
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.util.get_file_io"><code class="docutils literal notranslate"><span class="pre">get_file_io</span></code></a></li>
139139
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.util.get_file_path"><code class="docutils literal notranslate"><span class="pre">get_file_path()</span></code></a></li>
140140
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.util.get_file_sha1"><code class="docutils literal notranslate"><span class="pre">get_file_sha1()</span></code></a></li>
141+
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.util.get_file_sha256"><code class="docutils literal notranslate"><span class="pre">get_file_sha256()</span></code></a></li>
141142
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.util.get_kwargs_str"><code class="docutils literal notranslate"><span class="pre">get_kwargs_str()</span></code></a></li>
142143
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.util.get_operation_order_from_stack"><code class="docutils literal notranslate"><span class="pre">get_operation_order_from_stack()</span></code></a></li>
143144
<li class="toctree-l3"><a class="reference internal" href="#pyinfra.api.util.get_path_permissions_mode"><code class="docutils literal notranslate"><span class="pre">get_path_permissions_mode()</span></code></a></li>
@@ -196,7 +197,7 @@ <h3>Navigation</h3>
196197

197198
<dl class="py class">
198199
<dt class="sig sig-object py" id="pyinfra.api.util.get_file_io">
199-
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pyinfra.api.util.</span></span><span class="sig-name descname"><span class="pre">get_file_io</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename_or_io</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mode</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'rb'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.util.get_file_io" title="Link to this definition"></a></dt>
200+
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pyinfra.api.util.</span></span><span class="sig-name descname"><span class="pre">get_file_io</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename_or_io</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">IO</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mode</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">'rb'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.util.get_file_io" title="Link to this definition"></a></dt>
200201
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
201202
<p>Given either a filename or an existing IO object, this context processor
202203
will open and close filenames, and leave IO objects alone.</p>
@@ -225,8 +226,12 @@ <h3>Navigation</h3>
225226
<dl class="py function">
226227
<dt class="sig sig-object py" id="pyinfra.api.util.get_file_sha1">
227228
<span class="sig-prename descclassname"><span class="pre">pyinfra.api.util.</span></span><span class="sig-name descname"><span class="pre">get_file_sha1</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename_or_io</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.util.get_file_sha1" title="Link to this definition"></a></dt>
228-
<dd><p>Calculates the SHA1 of a file or file object using a buffer to handle larger files.</p>
229-
</dd></dl>
229+
<dd></dd></dl>
230+
231+
<dl class="py function">
232+
<dt class="sig sig-object py" id="pyinfra.api.util.get_file_sha256">
233+
<span class="sig-prename descclassname"><span class="pre">pyinfra.api.util.</span></span><span class="sig-name descname"><span class="pre">get_file_sha256</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename_or_io</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyinfra.api.util.get_file_sha256" title="Link to this definition"></a></dt>
234+
<dd></dd></dl>
230235

231236
<dl class="py function">
232237
<dt class="sig sig-object py" id="pyinfra.api.util.get_kwargs_str">

0 commit comments

Comments
 (0)