Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 25, 2024
1 parent 07cc206 commit 60c9a75
Show file tree
Hide file tree
Showing 84 changed files with 5,979 additions and 13 deletions.
2 changes: 1 addition & 1 deletion stable/.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: 2bf08dc798585fbbd01bfdca0fc09fdb
config: 041b978ad7dfbedc4d772508d4dd16cb
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified stable/.doctrees/commands/run.doctree
Binary file not shown.
Binary file modified stable/.doctrees/environment.pickle
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/application.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/exceptions.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/middlewares.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/runner.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/subscriptions.doctree
Binary file not shown.
Binary file modified stable/.doctrees/methoddocs/utils.doctree
Binary file not shown.
Binary file modified stable/.doctrees/userguides/development.doctree
Binary file not shown.
8 changes: 3 additions & 5 deletions stable/_sources/userguides/development.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,16 @@ For this to work, you must configure a [TaskIQ broker](https://taskiq-python.git

```bash
export SILVERBACK_BROKER_CLASS="taskiq_redis:ListQueueBroker"
export SILVERBACK_BROKER_URI="redis://127.0.0.1:6379"
export SILVERBACK_BROKER_KWARGS='{"queue_name": "taskiq", "url": "redis://127.0.0.1:6379"}'

silverback run "example:app" \
--network :mainnet:alchemy \
--runner "silverback.runner:WebsocketRunner"
silverback run "example:app" --network :mainnet:alchemy
```

And then the worker process with 2 worker subprocesses:

```bash
export SILVERBACK_BROKER_CLASS="taskiq_redis:ListQueueBroker"
export SILVERBACK_BROKER_URI="redis://127.0.0.1:6379"
export SILVERBACK_BROKER_KWARGS='{"url": "redis://127.0.0.1:6379"}'

silverback worker -w 2 "example:app"
```
Expand Down
3 changes: 2 additions & 1 deletion stable/commands/run.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down Expand Up @@ -157,7 +158,7 @@ <h2>run<a class="headerlink" href="#run" title="Permalink to this heading"></

<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-run-runner">
<span class="sig-name descname"><span class="pre">--runner</span></span><span class="sig-prename descclassname"> <span class="pre">&lt;runner&gt;</span></span><a class="headerlink" href="#cmdoption-run-runner" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">--runner</span></span><span class="sig-prename descclassname"> <span class="pre">&lt;runner_class&gt;</span></span><a class="headerlink" href="#cmdoption-run-runner" title="Permalink to this definition"></a></dt>
<dd><p>An import str in format ‘&lt;module&gt;:&lt;CustomRunner&gt;’</p>
</dd></dl>

Expand Down
1 change: 1 addition & 0 deletions stable/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/methoddocs/application.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/methoddocs/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/methoddocs/middlewares.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/methoddocs/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/methoddocs/subscriptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/methoddocs/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
1 change: 1 addition & 0 deletions stable/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
2 changes: 1 addition & 1 deletion stable/searchindex.js

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions stable/userguides/development.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down Expand Up @@ -269,16 +270,14 @@ <h3>Distributed Execution<a class="headerlink" href="#distributed-execution" tit
<p>The primary components are the client and workers. The client handles Silverback events (blocks and contract event logs) and creates jobs for the workers to process in an asynchronous manner.</p>
<p>For this to work, you must configure a <a class="reference external" href="https://taskiq-python.github.io/guide/architecture-overview.html#broker">TaskIQ broker</a> capable of distributed processing. For instance, with <a class="reference external" href="https://github.com/taskiq-python/taskiq-redis"><code class="docutils literal notranslate"><span class="pre">taskiq_redis</span></code></a> you could do something like this for the client:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_CLASS</span><span class="o">=</span><span class="s2">&quot;taskiq_redis:ListQueueBroker&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_URI</span><span class="o">=</span><span class="s2">&quot;redis://127.0.0.1:6379&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_KWARGS</span><span class="o">=</span><span class="s1">&#39;{&quot;queue_name&quot;: &quot;taskiq&quot;, &quot;url&quot;: &quot;redis://127.0.0.1:6379&quot;}&#39;</span>

silverback<span class="w"> </span>run<span class="w"> </span><span class="s2">&quot;example:app&quot;</span><span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--network<span class="w"> </span>:mainnet:alchemy<span class="w"> </span><span class="se">\</span>
<span class="w"> </span>--runner<span class="w"> </span><span class="s2">&quot;silverback.runner:WebsocketRunner&quot;</span>
silverback<span class="w"> </span>run<span class="w"> </span><span class="s2">&quot;example:app&quot;</span><span class="w"> </span>--network<span class="w"> </span>:mainnet:alchemy
</pre></div>
</div>
<p>And then the worker process with 2 worker subprocesses:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_CLASS</span><span class="o">=</span><span class="s2">&quot;taskiq_redis:ListQueueBroker&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_URI</span><span class="o">=</span><span class="s2">&quot;redis://127.0.0.1:6379&quot;</span>
<span class="nb">export</span><span class="w"> </span><span class="nv">SILVERBACK_BROKER_KWARGS</span><span class="o">=</span><span class="s1">&#39;{&quot;url&quot;: &quot;redis://127.0.0.1:6379&quot;}&#39;</span>

silverback<span class="w"> </span>worker<span class="w"> </span>-w<span class="w"> </span><span class="m">2</span><span class="w"> </span><span class="s2">&quot;example:app&quot;</span>
</pre></div>
Expand Down
1 change: 1 addition & 0 deletions stable/userguides/quickstart.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<option value="">Select version...</option>
<option value="latest">latest</option>
<option value="stable">stable</option>
<option value="v0.5.1">v0.5.1</option>
<option value="v0.5.0">v0.5.0</option>
<option value="v0.4.2">v0.4.2</option>
<option value="v0.4.1">v0.4.1</option>
Expand Down
4 changes: 4 additions & 0 deletions v0.5.2/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +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: 041b978ad7dfbedc4d772508d4dd16cb
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added v0.5.2/.doctrees/commands/run.doctree
Binary file not shown.
Binary file added v0.5.2/.doctrees/environment.pickle
Binary file not shown.
Binary file added v0.5.2/.doctrees/index.doctree
Binary file not shown.
Binary file added v0.5.2/.doctrees/methoddocs/application.doctree
Binary file not shown.
Binary file added v0.5.2/.doctrees/methoddocs/exceptions.doctree
Binary file not shown.
Binary file added v0.5.2/.doctrees/methoddocs/middlewares.doctree
Binary file not shown.
Binary file added v0.5.2/.doctrees/methoddocs/runner.doctree
Binary file not shown.
Binary file not shown.
Binary file added v0.5.2/.doctrees/methoddocs/utils.doctree
Binary file not shown.
Binary file added v0.5.2/.doctrees/userguides/development.doctree
Binary file not shown.
Binary file added v0.5.2/.doctrees/userguides/quickstart.doctree
Binary file not shown.
6 changes: 6 additions & 0 deletions v0.5.2/_sources/commands/run.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
run
***

.. click:: silverback._cli:run
:prog: run
:nested: none
31 changes: 31 additions & 0 deletions v0.5.2/_sources/index.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Silverback Docs

```{eval-rst}
.. toctree::
:caption: User Guides
:maxdepth: 1

userguides/quickstart
userguides/development
```

```{eval-rst}
.. toctree::
:caption: CLI Reference
:maxdepth: 1

commands/run.rst
```

```{eval-rst}
.. toctree::
:caption: Python Reference
:maxdepth: 1

methoddocs/application.md
methoddocs/runner.md
methoddocs/middlewares.md
methoddocs/subscriptions.md
methoddocs/exceptions.md
methoddocs/utils.md
```
10 changes: 10 additions & 0 deletions v0.5.2/_sources/methoddocs/application.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# silverback.application

The `silverback.application` module contains the high-level implementation of the the user's
Silverback application, meant to be used to expose method handlers and other functionality.

```{eval-rst}
.. automodule:: silverback.application
:members:
:show-inheritance:
```
7 changes: 7 additions & 0 deletions v0.5.2/_sources/methoddocs/exceptions.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# silverback.exceptions

```{eval-rst}
.. automodule:: silverback.exceptions
:members:
:show-inheritance:
```
10 changes: 10 additions & 0 deletions v0.5.2/_sources/methoddocs/middlewares.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# silverback.middlewares

The `silverback.middlewares` module contains middleware intended to improve the usability of
silverback as a whole, and add integrations for the silverback platform as well.

```{eval-rst}
.. automodule:: silverback.middlewares
:members:
:show-inheritance:
```
10 changes: 10 additions & 0 deletions v0.5.2/_sources/methoddocs/runner.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# silverback.runner

The `silverback.runner` module contains implementations for running Silverback apps in a variety
of different scenarios and trigger methods.

```{eval-rst}
.. automodule:: silverback.runner
:members:
:show-inheritance:
```
10 changes: 10 additions & 0 deletions v0.5.2/_sources/methoddocs/subscriptions.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# silverback.subscriptions

The `silverback.subscriptions` module contains an implementation of a Websocket subscription queue,
used for connected to an RPC node via websockets that implements the `eth_subscribe` RPC method.

```{eval-rst}
.. automodule:: silverback.subscriptions
:members:
:show-inheritance:
```
7 changes: 7 additions & 0 deletions v0.5.2/_sources/methoddocs/utils.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# silverback.utils

```{eval-rst}
.. automodule:: silverback.utils
:members:
:show-inheritance:
```
Loading

0 comments on commit 60c9a75

Please sign in to comment.