Skip to content

Commit

Permalink
deploy: 37f317b
Browse files Browse the repository at this point in the history
  • Loading branch information
zkurtz committed Dec 10, 2024
1 parent 5a191ac commit d00d665
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 1 deletion.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/index.doctree
Binary file not shown.
18 changes: 18 additions & 0 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ <h1 id="index">Index</h1>
| <a href="#M"><strong>M</strong></a>
| <a href="#P"><strong>P</strong></a>
| <a href="#R"><strong>R</strong></a>
| <a href="#U"><strong>U</strong></a>
| <a href="#W"><strong>W</strong></a>
| <a href="#Z"><strong>Z</strong></a>

</div>
<h2 id="F">F</h2>
Expand Down Expand Up @@ -84,6 +86,14 @@ <h2 id="R">R</h2>
</ul></td>
</tr></table>

<h2 id="U">U</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#packio.unzipflat">unzipflat() (in module packio)</a>
</li>
</ul></td>
</tr></table>

<h2 id="W">W</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
Expand All @@ -92,6 +102,14 @@ <h2 id="W">W</h2>
</ul></td>
</tr></table>

<h2 id="Z">Z</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#packio.zipflat">zipflat() (in module packio)</a>
</li>
</ul></td>
</tr></table>



</div>
Expand Down
39 changes: 39 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,45 @@
<p>Context manager to write multiple objects to the same file.</p>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="packio.unzipflat">
<span class="sig-prename descclassname"><span class="pre">packio.</span></span><span class="sig-name descname"><span class="pre">unzipflat</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">file</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">Path</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dest_dir</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">Path</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">overwrite</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</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">False</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">None</span></span></span><a class="headerlink" href="#packio.unzipflat" title="Link to this definition"></a></dt>
<dd><p>Unzip a file into a destination directory.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>file</strong> – Path to the zip archive.</p></li>
<li><p><strong>dest_dir</strong> – An existing directory to unzip the archive into.</p></li>
<li><p><strong>overwrite</strong> – If True, overwrite any existing files in the destination directory.</p></li>
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><ul class="simple">
<li><p><strong>ValueError</strong> – If the input file is not a zip archive.</p></li>
<li><p><strong>ValueError</strong> – If any contents of the input zip archive are directories – expect a flat archive.</p></li>
<li><p><strong>FileExistsError</strong> – If any files in the archive would overwrite existing files in the destination directory.</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="packio.zipflat">
<span class="sig-prename descclassname"><span class="pre">packio.</span></span><span class="sig-name descname"><span class="pre">zipflat</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">files</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">list</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Path</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">outfile</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">Path</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">None</span></span></span><a class="headerlink" href="#packio.zipflat" title="Link to this definition"></a></dt>
<dd><p>Zip files into a single archive with no directory structure.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>files</strong> – List of files to zip.</p></li>
<li><p><strong>outfile</strong> – Path to the resulting zip archive.</p></li>
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
<dd class="field-even"><p><strong>ValueError</strong> – If the names of the provided files are not unique.</p>
</dd>
</dl>
</dd></dl>

</section>


Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d00d665

Please sign in to comment.