Skip to content

Commit

Permalink
Deploying to gh-pages from @ 1317074 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Nov 25, 2024
1 parent 421cdf5 commit 1c84527
Show file tree
Hide file tree
Showing 25 changed files with 135 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 994a85dd7e852f94a789ac05cfe1999d
config: d9b4bfbd69bf791028c0a63243ee2074
tags: 645f666f9bcd5a90fca523b33c5a78b7
8 changes: 4 additions & 4 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" />

<!-- Generated with Sphinx 7.4.7 and Furo 2024.08.06 -->
<title>Overview: module code - SewerRat 0.0.post1.dev1+g3e87e4b documentation</title>
<title>Overview: module code - SewerRat 0.0.post1.dev1+g1317074 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../_static/styles/furo-extensions.css?v=302659d7" />
Expand Down Expand Up @@ -165,7 +165,7 @@
</label>
</div>
<div class="header-center">
<a href="../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g3e87e4b documentation</div></a>
<a href="../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g1317074 documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -189,7 +189,7 @@
<div class="sidebar-sticky"><a class="sidebar-brand" href="../index.html">


<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g3e87e4b documentation</span>
<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g1317074 documentation</span>

</a><form class="sidebar-search-container" method="get" action="../search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
Expand Down Expand Up @@ -283,7 +283,7 @@ <h1>All modules for which code is available</h1>

</aside>
</div>
</div><script src="../_static/documentation_options.js?v=b807f31b"></script>
</div><script src="../_static/documentation_options.js?v=c06976b0"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/scripts/furo.js?v=5fa4622c"></script>
Expand Down
8 changes: 4 additions & 4 deletions _modules/sewerrat/deregister.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="../../genindex.html" /><link rel="search" title="Search" href="../../search.html" />

<!-- Generated with Sphinx 7.4.7 and Furo 2024.08.06 -->
<title>sewerrat.deregister - SewerRat 0.0.post1.dev1+g3e87e4b documentation</title>
<title>sewerrat.deregister - SewerRat 0.0.post1.dev1+g1317074 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo-extensions.css?v=302659d7" />
Expand Down Expand Up @@ -165,7 +165,7 @@
</label>
</div>
<div class="header-center">
<a href="../../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g3e87e4b documentation</div></a>
<a href="../../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g1317074 documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -189,7 +189,7 @@
<div class="sidebar-sticky"><a class="sidebar-brand" href="../../index.html">


<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g3e87e4b documentation</span>
<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g1317074 documentation</span>

</a><form class="sidebar-search-container" method="get" action="../../search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
Expand Down Expand Up @@ -326,7 +326,7 @@ <h1>Source code for sewerrat.deregister</h1><div class="highlight"><pre>

</aside>
</div>
</div><script src="../../_static/documentation_options.js?v=b807f31b"></script>
</div><script src="../../_static/documentation_options.js?v=c06976b0"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/furo.js?v=5fa4622c"></script>
Expand Down
21 changes: 15 additions & 6 deletions _modules/sewerrat/list_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="../../genindex.html" /><link rel="search" title="Search" href="../../search.html" />

<!-- Generated with Sphinx 7.4.7 and Furo 2024.08.06 -->
<title>sewerrat.list_files - SewerRat 0.0.post1.dev1+g3e87e4b documentation</title>
<title>sewerrat.list_files - SewerRat 0.0.post1.dev1+g1317074 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo-extensions.css?v=302659d7" />
Expand Down Expand Up @@ -165,7 +165,7 @@
</label>
</div>
<div class="header-center">
<a href="../../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g3e87e4b documentation</div></a>
<a href="../../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g1317074 documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -189,7 +189,7 @@
<div class="sidebar-sticky"><a class="sidebar-brand" href="../../index.html">


<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g3e87e4b documentation</span>
<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g1317074 documentation</span>

</a><form class="sidebar-search-container" method="get" action="../../search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
Expand Down Expand Up @@ -250,7 +250,7 @@ <h1>Source code for sewerrat.list_files</h1><div class="highlight"><pre>

<div class="viewcode-block" id="list_files">
<a class="viewcode-back" href="../../api/sewerrat.html#sewerrat.list_files.list_files">[docs]</a>
<span class="k">def</span> <span class="nf">list_files</span><span class="p">(</span><span class="n">path</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">url</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">force_remote</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
<span class="k">def</span> <span class="nf">list_files</span><span class="p">(</span><span class="n">path</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">url</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">recursive</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span> <span class="n">force_remote</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">False</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> List the contents of a registered directory or a subdirectory thereof.</span>

Expand All @@ -261,6 +261,11 @@ <h1>Source code for sewerrat.list_files</h1><div class="highlight"><pre>
<span class="sd"> url:</span>
<span class="sd"> URL to the SewerRat REST API. Only used for remote access.</span>

<span class="sd"> recursive:</span>
<span class="sd"> Whether to list the contents recursively. If False, the contents of</span>
<span class="sd"> subdirectories are not listed, and the names of directories are</span>
<span class="sd"> suffxed with ``/`` in the returned list.</span>

<span class="sd"> force_remote:</span>
<span class="sd"> Whether to force remote access via the API, even if ``path`` is</span>
<span class="sd"> on the same filesystem as the caller. </span>
Expand All @@ -277,12 +282,16 @@ <h1>Source code for sewerrat.list_files</h1><div class="highlight"><pre>
<span class="n">listing</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">rel</span><span class="p">,</span> <span class="n">f</span><span class="p">))</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">listing</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">recursive</span><span class="p">:</span>
<span class="k">for</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">dirs</span><span class="p">:</span>
<span class="n">listing</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">d</span> <span class="o">+</span> <span class="s2">&quot;/&quot;</span><span class="p">)</span>
<span class="k">break</span>

<span class="k">return</span> <span class="n">listing</span>

<span class="k">else</span><span class="p">:</span>
<span class="kn">import</span> <span class="nn">urllib</span>
<span class="n">res</span> <span class="o">=</span> <span class="n">requests</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">url</span> <span class="o">+</span> <span class="s2">&quot;/list?path=&quot;</span> <span class="o">+</span> <span class="n">urllib</span><span class="o">.</span><span class="n">parse</span><span class="o">.</span><span class="n">quote_plus</span><span class="p">(</span><span class="n">path</span><span class="p">)</span> <span class="o">+</span> <span class="s2">&quot;&amp;recursive=true&quot;</span><span class="p">)</span>
<span class="n">res</span> <span class="o">=</span> <span class="n">requests</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">url</span> <span class="o">+</span> <span class="s2">&quot;/list?path=&quot;</span> <span class="o">+</span> <span class="n">urllib</span><span class="o">.</span><span class="n">parse</span><span class="o">.</span><span class="n">quote_plus</span><span class="p">(</span><span class="n">path</span><span class="p">)</span> <span class="o">+</span> <span class="s2">&quot;&amp;recursive=&quot;</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">recursive</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">())</span>
<span class="k">if</span> <span class="n">res</span><span class="o">.</span><span class="n">status_code</span> <span class="o">&gt;=</span> <span class="mi">300</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">ut</span><span class="o">.</span><span class="n">format_error</span><span class="p">(</span><span class="n">res</span><span class="p">)</span>
<span class="k">return</span> <span class="n">res</span><span class="o">.</span><span class="n">json</span><span class="p">()</span></div>
Expand Down Expand Up @@ -319,7 +328,7 @@ <h1>Source code for sewerrat.list_files</h1><div class="highlight"><pre>

</aside>
</div>
</div><script src="../../_static/documentation_options.js?v=b807f31b"></script>
</div><script src="../../_static/documentation_options.js?v=c06976b0"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/furo.js?v=5fa4622c"></script>
Expand Down
8 changes: 4 additions & 4 deletions _modules/sewerrat/list_registered_directories.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="../../genindex.html" /><link rel="search" title="Search" href="../../search.html" />

<!-- Generated with Sphinx 7.4.7 and Furo 2024.08.06 -->
<title>sewerrat.list_registered_directories - SewerRat 0.0.post1.dev1+g3e87e4b documentation</title>
<title>sewerrat.list_registered_directories - SewerRat 0.0.post1.dev1+g1317074 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo-extensions.css?v=302659d7" />
Expand Down Expand Up @@ -165,7 +165,7 @@
</label>
</div>
<div class="header-center">
<a href="../../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g3e87e4b documentation</div></a>
<a href="../../index.html"><div class="brand">SewerRat 0.0.post1.dev1+g1317074 documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -189,7 +189,7 @@
<div class="sidebar-sticky"><a class="sidebar-brand" href="../../index.html">


<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g3e87e4b documentation</span>
<span class="sidebar-brand-text">SewerRat 0.0.post1.dev1+g1317074 documentation</span>

</a><form class="sidebar-search-container" method="get" action="../../search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
Expand Down Expand Up @@ -329,7 +329,7 @@ <h1>Source code for sewerrat.list_registered_directories</h1><div class="highlig

</aside>
</div>
</div><script src="../../_static/documentation_options.js?v=b807f31b"></script>
</div><script src="../../_static/documentation_options.js?v=c06976b0"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/furo.js?v=5fa4622c"></script>
Expand Down
Loading

0 comments on commit 1c84527

Please sign in to comment.