Skip to content

Commit

Permalink
Deployed 972ea52 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Oct 8, 2024
1 parent 66537c0 commit e62e576
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 15 deletions.
40 changes: 30 additions & 10 deletions concepts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,19 +440,28 @@
</li>

<li class="md-nav__item">
<a href="#sharing" class="md-nav__link">
<span class="md-ellipsis">
Sharing
</span>
</a>

<nav class="md-nav" aria-label="Sharing">
<ul class="md-nav__list">

<li class="md-nav__item">
<a href="#shared-contexts" class="md-nav__link">
<span class="md-ellipsis">
Shared Contexts
</span>
</a>

<nav class="md-nav" aria-label="Shared Contexts">
<ul class="md-nav__list">
</li>

<li class="md-nav__item">
<a href="#shared-static-values" class="md-nav__link">
<a href="#shared-values" class="md-nav__link">
<span class="md-ellipsis">
Shared Static Values
Shared Values
</span>
</a>

Expand Down Expand Up @@ -691,19 +700,28 @@
</li>

<li class="md-nav__item">
<a href="#sharing" class="md-nav__link">
<span class="md-ellipsis">
Sharing
</span>
</a>

<nav class="md-nav" aria-label="Sharing">
<ul class="md-nav__list">

<li class="md-nav__item">
<a href="#shared-contexts" class="md-nav__link">
<span class="md-ellipsis">
Shared Contexts
</span>
</a>

<nav class="md-nav" aria-label="Shared Contexts">
<ul class="md-nav__list">
</li>

<li class="md-nav__item">
<a href="#shared-static-values" class="md-nav__link">
<a href="#shared-values" class="md-nav__link">
<span class="md-ellipsis">
Shared Static Values
Shared Values
</span>
</a>

Expand Down Expand Up @@ -1224,7 +1242,9 @@ <h3 id="tuple-types">Tuple Types</h3>
</span><span id="__span-17-30"><a id="__codelineno-17-30" name="__codelineno-17-30" href="#__codelineno-17-30"></a><span class="k">with</span> <span class="n">username_and_password</span><span class="o">.</span><span class="n">scope</span><span class="p">():</span>
</span><span id="__span-17-31"><a id="__codelineno-17-31" name="__codelineno-17-31" href="#__codelineno-17-31"></a> <span class="k">assert</span> <span class="n">login_message</span><span class="p">()</span> <span class="o">==</span> <span class="s2">&quot;Logged in as alice&quot;</span>
</span></code></pre></div>
<h2 id="shared-contexts">Shared Contexts</h2>
<h2 id="sharing">Sharing</h2>
<p>PyBooster provides a few ways to share dependencies across multiple injections.</p>
<h3 id="shared-contexts">Shared Contexts</h3>
<p>By default, PyBooster will create a new instance of a dependency each time it is
injected. To change this, using the <code>shared</code> context manager to declare that a
dependency should be re-used across all injections for the duration of a context. This
Expand Down Expand Up @@ -1263,7 +1283,7 @@ <h2 id="shared-contexts">Shared Contexts</h2>
<p>If the dependency's provider might be asynchronous, enter the <code>shared()</code> context manager
using <code>async with</code> instead. If you in an async context you should default to using
<code>async with</code> to ensure that async providers can be executed successfully.</p>
<h3 id="shared-static-values">Shared Static Values</h3>
<h3 id="shared-values">Shared Values</h3>
<p>You can share a static value across all injections by passing a <code>value</code> argument to the
<code>shared</code> context manager. This can be useful for sharing configuration values or other
static data.</p>
Expand Down
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<div data-md-component="skip">


<a href="#home" class="md-skip">
<a href="#pybooster" class="md-skip">
Skip to content
</a>

Expand Down Expand Up @@ -412,9 +412,8 @@



<h1 id="home">Home</h1>
<p>PyBooster is a dependency injection framework for Python that reduces boilerplate with
modern typing features.</p>
<h1 id="pybooster">PyBooster</h1>
<p>Dependency injection without the boilerplate.</p>
<h2 id="install">Install</h2>
<div class="language-bash highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>pip<span class="w"> </span>install<span class="w"> </span>-U<span class="w"> </span>pybooster
</span></code></pre></div>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

0 comments on commit e62e576

Please sign in to comment.