Skip to content

Commit

Permalink
Deploying to gh-pages from @ dacf44e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
deveaud-m committed Mar 18, 2024
1 parent 2ea9046 commit 5d13ee7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 6 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/fossology.doctree
Binary file not shown.
Binary file modified .doctrees/obj.doctree
Binary file not shown.
Binary file modified .doctrees/uploads.doctree
Binary file not shown.
8 changes: 5 additions & 3 deletions fossology.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1>Fossology<a class="headerlink" href="#fossology" title="Link to this heading
get user relevant information.</p>
<dl class="py class" id="module-fossology">
<dt class="sig sig-object py" id="fossology.Fossology">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">fossology.</span></span><span class="sig-name descname"><span class="pre">Fossology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">url</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">name</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#fossology.Fossology" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">fossology.</span></span><span class="sig-name descname"><span class="pre">Fossology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">url</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">version</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'v2'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#fossology.Fossology" title="Link to this definition"></a></dt>
<dd><p>Main Fossology API class</p>
<p>Authentication against a running Fossology instance is performed using an API token.</p>
<dl class="field-list simple">
Expand All @@ -132,6 +132,7 @@ <h1>Fossology<a class="headerlink" href="#fossology" title="Link to this heading
<dd class="field-odd"><ul class="simple">
<li><p><strong>url</strong> (<em>str</em>) – URL of the Fossology instance</p></li>
<li><p><strong>token</strong> (<em>str</em>) – The API token generated using the Fossology UI</p></li>
<li><p><strong>version</strong> (<em>str</em>) – the version of the API to use (default: “v2”)</p></li>
</ul>
</dd>
<dt class="field-even">Raises<span class="colon">:</span></dt>
Expand Down Expand Up @@ -202,7 +203,7 @@ <h1>Fossology<a class="headerlink" href="#fossology" title="Link to this heading

<dl class="py function">
<dt class="sig sig-object py" id="fossology.fossology_token">
<span class="sig-prename descclassname"><span class="pre">fossology.</span></span><span class="sig-name descname"><span class="pre">fossology_token</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">url</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">username</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">password</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token_scope</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">TokenScope.READ</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token_expire</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#fossology.fossology_token" title="Link to this definition"></a></dt>
<span class="sig-prename descclassname"><span class="pre">fossology.</span></span><span class="sig-name descname"><span class="pre">fossology_token</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">url</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">username</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">password</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token_scope</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">TokenScope.READ</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">token_expire</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">version</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'v2'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#fossology.fossology_token" title="Link to this definition"></a></dt>
<dd><p>Generate an API token using username/password</p>
<p>API endpoint: POST /tokens</p>
<dl class="field-list simple">
Expand All @@ -211,7 +212,7 @@ <h1>Fossology<a class="headerlink" href="#fossology" title="Link to this heading
</dl>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">fossology</span> <span class="kn">import</span> <span class="n">fossology_token</span>
<span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">fossology.obj</span> <span class="kn">import</span> <span class="n">TokenScope</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">token</span> <span class="o">=</span> <span class="n">fossology_token</span><span class="p">(</span><span class="s2">&quot;https://fossology.example.com&quot;</span><span class="p">,</span> <span class="s2">&quot;Me&quot;</span><span class="p">,</span> <span class="s2">&quot;MyPassword&quot;</span><span class="p">,</span> <span class="s2">&quot;MyToken&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">token</span> <span class="o">=</span> <span class="n">fossology_token</span><span class="p">(</span><span class="s2">&quot;https://fossology.example.com/repo&quot;</span><span class="p">,</span> <span class="s2">&quot;Me&quot;</span><span class="p">,</span> <span class="s2">&quot;MyPassword&quot;</span><span class="p">,</span> <span class="s2">&quot;MyToken&quot;</span><span class="p">,</span> <span class="n">version</span><span class="o">=</span><span class="s2">&quot;v2&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
Expand All @@ -223,6 +224,7 @@ <h1>Fossology<a class="headerlink" href="#fossology" title="Link to this heading
<li><p><strong>name</strong> (<em>string</em>) – the name of the token</p></li>
<li><p><strong>scope</strong> (<a class="reference internal" href="enums.html#fossology.enums.TokenScope" title="fossology.enums.TokenScope"><em>TokenScope</em></a>) – the scope of the token (default: TokenScope.READ)</p></li>
<li><p><strong>expire</strong> (<em>string</em>) – the expire date of the token, e.g. 2019-12-25 (default: max. 30 days)</p></li>
<li><p><strong>version</strong> (<em>string</em>) – the version of the API to use (default: “v2”)</p></li>
</ul>
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
Expand Down
5 changes: 4 additions & 1 deletion obj.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ <h1>Fossology objects<a class="headerlink" href="#fossology-objects" title="Link

<dl class="py class">
<dt class="sig sig-object py" id="fossology.obj.Upload">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">fossology.obj.</span></span><span class="sig-name descname"><span class="pre">Upload</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">folderid</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">foldername</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">description</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">uploadname</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">uploaddate</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">filesize</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">filesha1</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">hash</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#fossology.obj.Upload" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">fossology.obj.</span></span><span class="sig-name descname"><span class="pre">Upload</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">folderid</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">foldername</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">description</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">uploadname</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">uploaddate</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">assignee</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">assigneeDate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">closingDate</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">hash</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#fossology.obj.Upload" title="Link to this definition"></a></dt>
<dd><p>FOSSology upload.</p>
<p>Represents a FOSSology upload.</p>
<dl class="field-list simple">
Expand All @@ -591,6 +591,9 @@ <h1>Fossology objects<a class="headerlink" href="#fossology-objects" title="Link
<li><p><strong>description</strong> (<em>string</em>) – further information about the upload</p></li>
<li><p><strong>uploadname</strong> (<em>string</em>) – the name of the upload (default: the name of the upload file)</p></li>
<li><p><strong>uploaddate</strong> (<em>string</em>) – the date of the upload</p></li>
<li><p><strong>assignee</strong> (<em>string</em>) – the user who is assigned to the upload</p></li>
<li><p><strong>assigneeDate</strong> (<em>string</em>) – the date of the assignment</p></li>
<li><p><strong>closingDate</strong> (<em>string</em>) – the date of the closing</p></li>
<li><p><strong>hash</strong> (<a class="reference internal" href="#fossology.obj.Hash" title="fossology.obj.Hash"><em>Hash</em></a>) – the hash data of the uploaded file</p></li>
<li><p><strong>kwargs</strong> (<em>key word argument</em>) – handle any other upload information provided by the fossology instance</p></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

Loading

0 comments on commit 5d13ee7

Please sign in to comment.