forked from hildogjr/KiCost
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
19,666 additions
and
26,946 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 550406fd2199fbd56aa8adc80f1b625e | ||
config: 90dc6b68ee69ac40d7d99589cbcc44f9 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
|
||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>kicost — kicost 1.1.5 documentation</title> | ||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> | ||
<link rel="stylesheet" href="../_static/classic.css" type="text/css" /> | ||
|
||
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> | ||
<script src="../_static/jquery.js"></script> | ||
<script src="../_static/underscore.js"></script> | ||
<script src="../_static/doctools.js"></script> | ||
|
||
<link rel="index" title="Index" href="../genindex.html" /> | ||
<link rel="search" title="Search" href="../search.html" /> | ||
</head><body> | ||
<div class="related" role="navigation" aria-label="related navigation"> | ||
<h3>Navigation</h3> | ||
<ul> | ||
<li class="right" style="margin-right: 10px"> | ||
<a href="../genindex.html" title="General Index" | ||
accesskey="I">index</a></li> | ||
<li class="right" > | ||
<a href="../py-modindex.html" title="Python Module Index" | ||
>modules</a> |</li> | ||
<li class="nav-item nav-item-0"><a href="../index.html">kicost 1.1.5 documentation</a> »</li> | ||
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Module code</a> »</li> | ||
<li class="nav-item nav-item-this"><a href="">kicost</a></li> | ||
</ul> | ||
</div> | ||
|
||
<div class="document"> | ||
<div class="documentwrapper"> | ||
<div class="bodywrapper"> | ||
<div class="body" role="main"> | ||
|
||
<h1>Source code for kicost</h1><div class="highlight"><pre> | ||
<span></span><span class="c1"># -*- coding: utf-8 -*-</span> | ||
|
||
<span class="n">__author__</span> <span class="o">=</span> <span class="s1">'XESS Corporation'</span> | ||
<span class="n">__email__</span> <span class="o">=</span> <span class="s1">'[email protected]'</span> | ||
<span class="c1"># Export .version.__version__ as a module version</span> | ||
<span class="kn">from</span> <span class="nn">.version</span> <span class="kn">import</span> <span class="n">__version__</span> <span class="c1"># noqa: F401</span> | ||
|
||
|
||
<span class="c1"># Class for storing part group information.</span> | ||
<div class="viewcode-block" id="PartGroup"><a class="viewcode-back" href="../kicost.html#kicost.PartGroup">[docs]</a><span class="k">class</span> <span class="nc">PartGroup</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span> | ||
<span class="sd">'''@brief Class to group components.'''</span> | ||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> | ||
<span class="c1"># None by default, here to avoid try/except in the code</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">datasheet</span> <span class="o">=</span> <span class="kc">None</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">lifecycle</span> <span class="o">=</span> <span class="kc">None</span> | ||
<span class="c1"># Distributor data</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">part_num</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># Distributor catalogue number.</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">url</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># Purchase distributor URL for the spefic part.</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">price_tiers</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># Price break tiers; [[qty1, price1][qty2, price2]...]</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">qty_avail</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># Available quantity.</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">qty_increment</span> <span class="o">=</span> <span class="p">{}</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">info_dist</span> <span class="o">=</span> <span class="p">{}</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">currency</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># Default currency.</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">moq</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># Minimum order quantity allowd by the distributor.</span></div> | ||
</pre></div> | ||
|
||
<div class="clearer"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation"> | ||
<div class="sphinxsidebarwrapper"> | ||
<div id="searchbox" style="display: none" role="search"> | ||
<h3 id="searchlabel">Quick search</h3> | ||
<div class="searchformwrapper"> | ||
<form class="search" action="../search.html" method="get"> | ||
<input type="text" name="q" aria-labelledby="searchlabel" /> | ||
<input type="submit" value="Go" /> | ||
</form> | ||
</div> | ||
</div> | ||
<script>$('#searchbox').show(0);</script> | ||
</div> | ||
</div> | ||
<div class="clearer"></div> | ||
</div> | ||
<div class="related" role="navigation" aria-label="related navigation"> | ||
<h3>Navigation</h3> | ||
<ul> | ||
<li class="right" style="margin-right: 10px"> | ||
<a href="../genindex.html" title="General Index" | ||
>index</a></li> | ||
<li class="right" > | ||
<a href="../py-modindex.html" title="Python Module Index" | ||
>modules</a> |</li> | ||
<li class="nav-item nav-item-0"><a href="../index.html">kicost 1.1.5 documentation</a> »</li> | ||
<li class="nav-item nav-item-1"><a href="index.html" >Module code</a> »</li> | ||
<li class="nav-item nav-item-this"><a href="">kicost</a></li> | ||
</ul> | ||
</div> | ||
<div class="footer" role="contentinfo"> | ||
© Copyright 2015, XESS Corporation. | ||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3. | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.