Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonxslays committed Dec 28, 2021
1 parent 34c2d96 commit 52c953c
Showing 1 changed file with 48 additions and 8 deletions.
56 changes: 48 additions & 8 deletions docs/piston_rspy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,44 @@ <h3 id="returns">Returns:</h3>
<li><code><a title="piston_rspy.Client" href="#piston_rspy.Client">Client</a></code>: The new client.</li>
</ul></div>
</dd>
<dt id="piston_rspy.Client.with_url"><code class="name flex">
<span>def <span class="ident">with_url</span></span>(<span>key: str, /) ‑> <a title="piston_rspy.Client" href="#piston_rspy.Client">Client</a></span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
<p>Creates a new Client with a custom url.</p>
<h3 id="args">Args:</h3>
<ul>
<li>url <code>str</code>:
The url to use as the underlying piston backend.</li>
</ul>
<h3 id="returns">Returns:</h3>
<ul>
<li><code><a title="piston_rspy.Client" href="#piston_rspy.Client">Client</a></code>: The new client.</li>
</ul></div>
</dd>
<dt id="piston_rspy.Client.with_url_and_key"><code class="name flex">
<span>def <span class="ident">with_url_and_key</span></span>(<span>key: str, /) ‑> <a title="piston_rspy.Client" href="#piston_rspy.Client">Client</a></span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
<p>Creates a new Client with a custom url and an api key.</p>
<h3 id="args">Args:</h3>
<ul>
<li>
<p>url <code>str</code>:
The url to use as the underlying piston backend.</p>
</li>
<li>
<p>key <code>str</code>:
The api key to use.</p>
</li>
</ul>
<h3 id="returns">Returns:</h3>
<ul>
<li><code><a title="piston_rspy.Client" href="#piston_rspy.Client">Client</a></code>: The new client.</li>
</ul></div>
</dd>
</dl>
<h3>Instance variables</h3>
<dl>
Expand Down Expand Up @@ -97,7 +135,7 @@ <h3 id="raises">Raises:</h3>
</ul></div>
</dd>
<dt id="piston_rspy.Client.fetch_runtimes"><code class="name flex">
<span>def <span class="ident">fetch_runtimes</span></span>(<span>self) ‑> list</span>
<span>def <span class="ident">fetch_runtimes</span></span>(<span>self) ‑> list[<a title="piston_rspy.Runtime" href="#piston_rspy.Runtime">Runtime</a>]</span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand All @@ -112,7 +150,7 @@ <h3 id="raises">Raises:</h3>
</ul></div>
</dd>
<dt id="piston_rspy.Client.get_headers"><code class="name flex">
<span>def <span class="ident">get_headers</span></span>(<span>self) ‑> dict</span>
<span>def <span class="ident">get_headers</span></span>(<span>self) ‑> dict[str, str]</span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand Down Expand Up @@ -258,7 +296,7 @@ <h3 id="returns">Returns:</h3>
</dd>
<dt id="piston_rspy.Executor"><code class="flex name class">
<span>class <span class="ident">Executor</span></span>
<span>(</span><span>language: str = '', version: str = '*', files: list = [], stdin: str = '', args: list = [], compile_timeout: int = 10000, run_timeout: int = 3000, compile_memory_limit: int = -1, run_memory_limit: int = -1, /)</span>
<span>(</span><span>language: str = '', version: str = '*', files: list[<a title="piston_rspy.File" href="#piston_rspy.File">File</a>] = [], stdin: str = '', args: list[str] = [], compile_timeout: int = 10000, run_timeout: int = 3000, compile_memory_limit: int = -1, run_memory_limit: int = -1, /)</span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand Down Expand Up @@ -329,7 +367,7 @@ <h3 id="returns">Returns:</h3>
</ul></div>
</dd>
<dt id="piston_rspy.Executor.add_args"><code class="name flex">
<span>def <span class="ident">add_args</span></span>(<span>self, args: list, /) ‑> <a title="piston_rspy.Executor" href="#piston_rspy.Executor">Executor</a></span>
<span>def <span class="ident">add_args</span></span>(<span>self, args: list[str], /) ‑> <a title="piston_rspy.Executor" href="#piston_rspy.Executor">Executor</a></span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand Down Expand Up @@ -363,7 +401,7 @@ <h3 id="returns">Returns:</h3>
</ul></div>
</dd>
<dt id="piston_rspy.Executor.add_files"><code class="name flex">
<span>def <span class="ident">add_files</span></span>(<span>self, files: list, /) ‑> <a title="piston_rspy.Executor" href="#piston_rspy.Executor">Executor</a></span>
<span>def <span class="ident">add_files</span></span>(<span>self, files: list[<a title="piston_rspy.File" href="#piston_rspy.File">File</a>], /) ‑> <a title="piston_rspy.Executor" href="#piston_rspy.Executor">Executor</a></span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand Down Expand Up @@ -400,7 +438,7 @@ <h3 id="returns">Returns:</h3>
<p>This method mutates the executor in place.</p></div>
</dd>
<dt id="piston_rspy.Executor.set_args"><code class="name flex">
<span>def <span class="ident">set_args</span></span>(<span>self, args: list, /)</span>
<span>def <span class="ident">set_args</span></span>(<span>self, args: list[str], /)</span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand Down Expand Up @@ -446,7 +484,7 @@ <h3 id="returns">Returns:</h3>
</ul></div>
</dd>
<dt id="piston_rspy.Executor.set_files"><code class="name flex">
<span>def <span class="ident">set_files</span></span>(<span>self, files: list, /)</span>
<span>def <span class="ident">set_files</span></span>(<span>self, files: list[<a title="piston_rspy.File" href="#piston_rspy.File">File</a>], /)</span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand Down Expand Up @@ -628,7 +666,7 @@ <h3 id="returns">Returns:</h3>
</dd>
<dt id="piston_rspy.Runtime"><code class="flex name class">
<span>class <span class="ident">Runtime</span></span>
<span>(</span><span>language: str, version: str, aliases: list, /)</span>
<span>(</span><span>language: str, version: str, aliases: list[str], /)</span>
</code></dt>
<dd>
<div class="desc"><p>&ndash;</p>
Expand Down Expand Up @@ -693,6 +731,8 @@ <h4><code><a title="piston_rspy.Client" href="#piston_rspy.Client">Client</a></c
<li><code><a title="piston_rspy.Client.headers" href="#piston_rspy.Client.headers">headers</a></code></li>
<li><code><a title="piston_rspy.Client.url" href="#piston_rspy.Client.url">url</a></code></li>
<li><code><a title="piston_rspy.Client.with_key" href="#piston_rspy.Client.with_key">with_key</a></code></li>
<li><code><a title="piston_rspy.Client.with_url" href="#piston_rspy.Client.with_url">with_url</a></code></li>
<li><code><a title="piston_rspy.Client.with_url_and_key" href="#piston_rspy.Client.with_url_and_key">with_url_and_key</a></code></li>
</ul>
</li>
<li>
Expand Down

0 comments on commit 52c953c

Please sign in to comment.