Skip to content

Commit

Permalink
deploy: 1b77c28
Browse files Browse the repository at this point in the history
  • Loading branch information
theodore-s-beers committed Dec 10, 2024
1 parent 505baff commit 03d1fc3
Show file tree
Hide file tree
Showing 29 changed files with 165 additions and 155 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 records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: cb86a825803c7409178e46d0dfc3aa3a
config: a74a8924d91f4e925fbae228de24dd9a
tags: 645f666f9bcd5a90fca523b33c5a78b7
10 changes: 5 additions & 5 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation</title>
<title>Overview: module code &#8212; PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />

<script src="../_static/documentation_options.js?v=736603de"></script>
<script src="../_static/documentation_options.js?v=a5a6adf3"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
Expand All @@ -48,7 +48,7 @@
<link rel="search" title="Search" href="../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="0.0.post1.dev1+gd2e9bd2" />
<meta name="docsearch:version" content="0.0.post1.dev1+g1b77c28" />
<meta name="docbuild:last-update" content="Dec 10, 2024"/>
</head>

Expand Down Expand Up @@ -115,8 +115,8 @@



<img src="../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>
<img src="../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>


</a></div>
Expand Down
10 changes: 5 additions & 5 deletions _modules/pykubegrader/initialize.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pykubegrader.initialize &#8212; PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation</title>
<title>pykubegrader.initialize &#8212; PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />

<script src="../../_static/documentation_options.js?v=736603de"></script>
<script src="../../_static/documentation_options.js?v=a5a6adf3"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
Expand All @@ -48,7 +48,7 @@
<link rel="search" title="Search" href="../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="0.0.post1.dev1+gd2e9bd2" />
<meta name="docsearch:version" content="0.0.post1.dev1+g1b77c28" />
<meta name="docbuild:last-update" content="Dec 10, 2024"/>
</head>

Expand Down Expand Up @@ -115,8 +115,8 @@



<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>


</a></div>
Expand Down
10 changes: 5 additions & 5 deletions _modules/pykubegrader/misc.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pykubegrader.misc &#8212; PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation</title>
<title>pykubegrader.misc &#8212; PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />

<script src="../../_static/documentation_options.js?v=736603de"></script>
<script src="../../_static/documentation_options.js?v=a5a6adf3"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
Expand All @@ -48,7 +48,7 @@
<link rel="search" title="Search" href="../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="0.0.post1.dev1+gd2e9bd2" />
<meta name="docsearch:version" content="0.0.post1.dev1+g1b77c28" />
<meta name="docbuild:last-update" content="Dec 10, 2024"/>
</head>

Expand Down Expand Up @@ -115,8 +115,8 @@



<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>


</a></div>
Expand Down
66 changes: 38 additions & 28 deletions _modules/pykubegrader/telemetry.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pykubegrader.telemetry &#8212; PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation</title>
<title>pykubegrader.telemetry &#8212; PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />

<script src="../../_static/documentation_options.js?v=736603de"></script>
<script src="../../_static/documentation_options.js?v=a5a6adf3"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
Expand All @@ -48,7 +48,7 @@
<link rel="search" title="Search" href="../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="0.0.post1.dev1+gd2e9bd2" />
<meta name="docsearch:version" content="0.0.post1.dev1+g1b77c28" />
<meta name="docbuild:last-update" content="Dec 10, 2024"/>
</head>

Expand Down Expand Up @@ -115,8 +115,8 @@



<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>


</a></div>
Expand Down Expand Up @@ -409,15 +409,12 @@ <h1>Source code for pykubegrader.telemetry</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">requests</span> <span class="kn">import</span> <span class="n">Response</span>
<span class="kn">from</span> <span class="nn">requests.auth</span> <span class="kn">import</span> <span class="n">HTTPBasicAuth</span>

<span class="c1"># Set logging config (`force` is important)</span>
<span class="n">logging</span><span class="o">.</span><span class="n">basicConfig</span><span class="p">(</span><span class="n">filename</span><span class="o">=</span><span class="s2">&quot;.output.log&quot;</span><span class="p">,</span> <span class="n">level</span><span class="o">=</span><span class="n">logging</span><span class="o">.</span><span class="n">INFO</span><span class="p">,</span> <span class="n">force</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>


<div class="viewcode-block" id="telemetry">
<a class="viewcode-back" href="../../api/pykubegrader.html#pykubegrader.telemetry.telemetry">[docs]</a>
<span class="k">def</span> <span class="nf">telemetry</span><span class="p">(</span><span class="n">info</span><span class="p">:</span> <span class="n">ExecutionInfo</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">cell_content</span> <span class="o">=</span> <span class="n">info</span><span class="o">.</span><span class="n">raw_cell</span>
<span class="n">log_encrypted</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;code run: </span><span class="si">{</span><span class="n">cell_content</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span></div>

<span class="c1">#</span>
<span class="c1"># Local functions</span>
<span class="c1">#</span>


<div class="viewcode-block" id="encrypt_to_b64">
Expand All @@ -439,6 +436,25 @@ <h1>Source code for pykubegrader.telemetry</h1><div class="highlight"><pre>



<div class="viewcode-block" id="ensure_responses">
<a class="viewcode-back" href="../../api/pykubegrader.html#pykubegrader.telemetry.ensure_responses">[docs]</a>
<span class="k">def</span> <span class="nf">ensure_responses</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;.responses.json&quot;</span><span class="p">,</span> <span class="s2">&quot;a&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">_</span><span class="p">:</span>
<span class="k">pass</span>

<span class="n">data</span> <span class="o">=</span> <span class="p">{}</span>

<span class="k">try</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;.responses.json&quot;</span><span class="p">,</span> <span class="s2">&quot;r&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">data</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
<span class="k">except</span> <span class="n">json</span><span class="o">.</span><span class="n">JSONDecodeError</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;.responses.json&quot;</span><span class="p">,</span> <span class="s2">&quot;w&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">json</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">f</span><span class="p">)</span>

<span class="k">return</span> <span class="n">data</span></div>



<div class="viewcode-block" id="log_encrypted">
<a class="viewcode-back" href="../../api/pykubegrader.html#pykubegrader.telemetry.log_encrypted">[docs]</a>
<span class="k">def</span> <span class="nf">log_encrypted</span><span class="p">(</span><span class="n">message</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
Expand All @@ -456,22 +472,11 @@ <h1>Source code for pykubegrader.telemetry</h1><div class="highlight"><pre>



<div class="viewcode-block" id="ensure_responses">
<a class="viewcode-back" href="../../api/pykubegrader.html#pykubegrader.telemetry.ensure_responses">[docs]</a>
<span class="k">def</span> <span class="nf">ensure_responses</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;.responses.json&quot;</span><span class="p">,</span> <span class="s2">&quot;a&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">_</span><span class="p">:</span>
<span class="k">pass</span>

<span class="n">data</span> <span class="o">=</span> <span class="p">{}</span>

<span class="k">try</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;.responses.json&quot;</span><span class="p">,</span> <span class="s2">&quot;r&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">data</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
<span class="k">except</span> <span class="n">json</span><span class="o">.</span><span class="n">JSONDecodeError</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;.responses.json&quot;</span><span class="p">,</span> <span class="s2">&quot;w&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">json</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">f</span><span class="p">)</span>

<span class="k">return</span> <span class="n">data</span></div>
<div class="viewcode-block" id="telemetry">
<a class="viewcode-back" href="../../api/pykubegrader.html#pykubegrader.telemetry.telemetry">[docs]</a>
<span class="k">def</span> <span class="nf">telemetry</span><span class="p">(</span><span class="n">info</span><span class="p">:</span> <span class="n">ExecutionInfo</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">cell_content</span> <span class="o">=</span> <span class="n">info</span><span class="o">.</span><span class="n">raw_cell</span>
<span class="n">log_encrypted</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;code run: </span><span class="si">{</span><span class="n">cell_content</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span></div>



Expand Down Expand Up @@ -501,6 +506,11 @@ <h1>Source code for pykubegrader.telemetry</h1><div class="highlight"><pre>



<span class="c1">#</span>
<span class="c1"># API request functions</span>
<span class="c1">#</span>


<div class="viewcode-block" id="score_question">
<a class="viewcode-back" href="../../api/pykubegrader.html#pykubegrader.telemetry.score_question">[docs]</a>
<span class="k">def</span> <span class="nf">score_question</span><span class="p">(</span>
Expand Down
10 changes: 5 additions & 5 deletions _modules/pykubegrader/validate.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pykubegrader.validate &#8212; PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation</title>
<title>pykubegrader.validate &#8212; PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />

<script src="../../_static/documentation_options.js?v=736603de"></script>
<script src="../../_static/documentation_options.js?v=a5a6adf3"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
Expand All @@ -48,7 +48,7 @@
<link rel="search" title="Search" href="../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="0.0.post1.dev1+gd2e9bd2" />
<meta name="docsearch:version" content="0.0.post1.dev1+g1b77c28" />
<meta name="docbuild:last-update" content="Dec 10, 2024"/>
</head>

Expand Down Expand Up @@ -115,8 +115,8 @@



<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+gd2e9bd2 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Light.png" class="logo__image only-light" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>
<img src="../../_static/Drexel_blue_Logo_square_Dark.png" class="logo__image only-dark pst-js-only" alt="PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation - Home"/>


</a></div>
Expand Down
Loading

0 comments on commit 03d1fc3

Please sign in to comment.