You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="sig-prename descclassname"><spanclass="pre">pyinfra.api.facts.</span></span><spanclass="sig-name descname"><spanclass="pre">get_host_fact</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">state</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal" href="pyinfra.api.state.html#pyinfra.api.state.State" title="pyinfra.api.state.State"><spanclass="pre">State</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">host</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><spanclass="pre">Host</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cls</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">args</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">Iterable</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">kwargs</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">dict</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">None</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Any</span></span></span><aclass="headerlink" href="#pyinfra.api.facts.get_host_fact" title="Link to this definition">¶</a></dt>
249
+
<spanclass="sig-prename descclassname"><spanclass="pre">pyinfra.api.facts.</span></span><spanclass="sig-name descname"><spanclass="pre">get_facts</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">state</span></span></em>, <emclass="sig-param"><spanclass="o"><spanclass="pre">*</span></span><spanclass="n"><spanclass="pre">args</span></span></em>, <emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#pyinfra.api.facts.get_facts" title="Link to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_group</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name:</span><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">default=<class</span><spanclass="pre">'pyinfra.api.exceptions.NoGroupError'></span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#pyinfra.api.inventory.Inventory.get_group" title="Link to this definition">¶</a></dt>
194
+
<spanclass="sig-name descname"><spanclass="pre">get_group</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name:</span><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">default=<class</span><spanclass="pre">'pyinfra.api.exceptions.NoGroupError'></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">list</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><spanclass="pre">Host</span></a><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink" href="#pyinfra.api.inventory.Inventory.get_group" title="Link to this definition">¶</a></dt>
195
195
<dd><p>Get a list of hosts belonging to a group.</p>
<spanclass="sig-name descname"><spanclass="pre">get_host</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name:</span><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">default=<class</span><spanclass="pre">'pyinfra.api.exceptions.NoHostError'></span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#pyinfra.api.inventory.Inventory.get_host" title="Link to this definition">¶</a></dt>
213
+
<spanclass="sig-name descname"><spanclass="pre">get_host</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name:</span><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">default=<class</span><spanclass="pre">'pyinfra.api.exceptions.NoHostError'></span></span></em><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><aclass="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><spanclass="pre">Host</span></a></span></span><aclass="headerlink" href="#pyinfra.api.inventory.Inventory.get_host" title="Link to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">groups</span></span><emclass="property"><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="pre">dict</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="w"></span><spanclass="pre">list</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><spanclass="pre">Host</span></a><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></em><aclass="headerlink" href="#pyinfra.api.inventory.Inventory.groups" title="Link to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">iter_activated_hosts</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><spanclass="sig-return"><spanclass="sig-return-icon">→</span><spanclass="sig-return-typehint"><spanclass="pre">Iterator</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal" href="pyinfra.api.host.html#pyinfra.api.host.Host" title="pyinfra.api.host.Host"><spanclass="pre">Host</span></a><spanclass="p"><spanclass="pre">]</span></span></span></span><aclass="headerlink" href="#pyinfra.api.inventory.Inventory.iter_activated_hosts" title="Link to this definition">¶</a></dt>
<emclass="property"><spanclass="k"><spanclass="pre">class</span></span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">pyinfra.api.util.</span></span><spanclass="sig-name descname"><spanclass="pre">get_file_io</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">filename_or_io</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mode</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'rb'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#pyinfra.api.util.get_file_io" title="Link to this definition">¶</a></dt>
200
+
<emclass="property"><spanclass="k"><spanclass="pre">class</span></span><spanclass="w"></span></em><spanclass="sig-prename descclassname"><spanclass="pre">pyinfra.api.util.</span></span><spanclass="sig-name descname"><spanclass="pre">get_file_io</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">filename_or_io</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span><spanclass="w"></span><spanclass="p"><spanclass="pre">|</span></span><spanclass="w"></span><spanclass="pre">IO</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mode</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><spanclass="pre">str</span></span><spanclass="w"></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="default_value"><spanclass="pre">'rb'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#pyinfra.api.util.get_file_io" title="Link to this definition">¶</a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">pyinfra.api.util.</span></span><spanclass="sig-name descname"><spanclass="pre">get_file_sha1</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">filename_or_io</span></span></em><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-prename descclassname"><spanclass="pre">pyinfra.api.util.</span></span><spanclass="sig-name descname"><spanclass="pre">get_file_sha256</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">filename_or_io</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#pyinfra.api.util.get_file_sha256" title="Link to this definition">¶</a></dt>
0 commit comments