Files
kittycad.py/docs/html/_modules/kittycad/models/unit_metric_power.html
Jess Frazelle fcd317aae4 bump (#80)
* bump

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* some fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* YOYO NEW API SPEC!

* reformat

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* for now force true

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* run the tests on generations

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix some types

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* float to top

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix mypy

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* more noqa

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* ruff pass

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add docs

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* even less mypy errors

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add test

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* cleanup

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* new path

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes for mypy

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* skip tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 00:58:06 -07:00

153 lines
12 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>kittycad.models.unit_metric_power &mdash; kittycad v0.3.8 documentation</title>
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/graphviz.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/copybutton.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/autoclasstoc.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../../../_static/js/html5shiv.min.js"></script>
<![endif]-->
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
<script src="../../../_static/jquery.js"></script>
<script src="../../../_static/underscore.js"></script>
<script src="../../../_static/doctools.js"></script>
<script src="../../../_static/clipboard.min.js"></script>
<script src="../../../_static/copybutton.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../../../index.html" class="icon icon-home">
kittycad
</a>
<div class="version">
v0.3.8
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../_autosummary/kittycad.api.html">kittycad.api</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../_autosummary/kittycad.client.html">kittycad.client</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../_autosummary/kittycad.models.html">kittycad.models</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../_autosummary/kittycad.types.html">kittycad.types</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../index.html">kittycad</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">kittycad.models.unit_metric_power</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<h1>Source code for kittycad.models.unit_metric_power</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">enum</span> <span class="kn">import</span> <span class="n">Enum</span>
<div class="viewcode-block" id="UnitMetricPower"><a class="viewcode-back" href="../../../_autosummary/kittycad.models.unit_metric_power.UnitMetricPower.html#kittycad.models.unit_metric_power.UnitMetricPower">[docs]</a><span class="k">class</span> <span class="nc">UnitMetricPower</span><span class="p">(</span><span class="nb">str</span><span class="p">,</span> <span class="n">Enum</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;The valid types of metric unit formats.&quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Atto (symbol a) is a unit prefix in the metric system denoting a factor of 10^18 or 0.000000000000000001. &lt;https://en.wikipedia.org/wiki/Atto-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">ATTO</span> <span class="o">=</span> <span class="s2">&quot;atto&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Femto (symbol f) is a unit prefix in the metric system denoting a factor of 10^-15. &lt;https://en.wikipedia.org/wiki/Femto-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">FEMTO</span> <span class="o">=</span> <span class="s2">&quot;femto&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Pico (unit symbol p) is a unit prefix in the metric system denoting a factor of one trillionth in the short scale and one billionth in the long scale (0.000000000001); that is, 10^12. &lt;https://en.wikipedia.org/wiki/Pico-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">PICO</span> <span class="o">=</span> <span class="s2">&quot;pico&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Nano (symbol n) is a unit prefix meaning &quot;one billionth&quot;. Used primarily with the metric system, this prefix denotes a factor of 10^9 or 0.000000001. &lt;https://en.wikipedia.org/wiki/Nano-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">NANO</span> <span class="o">=</span> <span class="s2">&quot;nano&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Micro (Greek letter μ (U+03BC) or the legacy symbol µ (U+00B5)) is a unit prefix in the metric system denoting a factor of 10^6 (one millionth). &lt;https://en.wikipedia.org/wiki/Micro-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">MICRO</span> <span class="o">=</span> <span class="s2">&quot;micro&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Milli (symbol m) is a unit prefix in the metric system denoting a factor of one thousandth (10^3). &lt;https://en.wikipedia.org/wiki/Milli-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">MILLI</span> <span class="o">=</span> <span class="s2">&quot;milli&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Centi (symbol c) is a unit prefix in the metric system denoting a factor of one hundredth. &lt;https://en.wikipedia.org/wiki/Centi-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">CENTI</span> <span class="o">=</span> <span class="s2">&quot;centi&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Deci (symbol d) is a decimal unit prefix in the metric system denoting a factor of one tenth. &lt;https://en.wikipedia.org/wiki/Deci-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">DECI</span> <span class="o">=</span> <span class="s2">&quot;deci&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# One metric unit. &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">UNIT</span> <span class="o">=</span> <span class="s2">&quot;unit&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Deca is a decimal unit prefix in the metric system denoting a factor of ten. &lt;https://en.wikipedia.org/wiki/Deca-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">DECA</span> <span class="o">=</span> <span class="s2">&quot;deca&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Hecto (symbol: h) is a decimal unit prefix in the metric system denoting a factor of one hundred. &lt;https://en.wikipedia.org/wiki/Hecto-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">HECTO</span> <span class="o">=</span> <span class="s2">&quot;hecto&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Kilo is a decimal unit prefix in the metric system denoting multiplication by one thousand (10^3). &lt;https://en.wikipedia.org/wiki/Kilo-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">KILO</span> <span class="o">=</span> <span class="s2">&quot;kilo&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Mega is a unit prefix in metric systems of units denoting a factor of one million (10^6 or 1000000). &lt;https://en.wikipedia.org/wiki/Mega-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">MEGA</span> <span class="o">=</span> <span class="s2">&quot;mega&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Giga is a unit prefix in the metric system denoting a factor of a short-scale billion or long-scale milliard (10^9 or 1000000000). &lt;https://en.wikipedia.org/wiki/Giga-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">GIGA</span> <span class="o">=</span> <span class="s2">&quot;giga&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Tera is a unit prefix in the metric system denoting multiplication by one trillion, or 10^12 or 1000000000000 (one trillion short scale; one billion long scale). &lt;https://en.wikipedia.org/wiki/Tera-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">TERA</span> <span class="o">=</span> <span class="s2">&quot;tera&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Peta is a decimal unit prefix in the metric system denoting multiplication by one quadrillion, or 10^15 (1000000000000000). &lt;https://en.wikipedia.org/wiki/Peta-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">PETA</span> <span class="o">=</span> <span class="s2">&quot;peta&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;# Exa is a decimal unit prefix in the metric system denoting 10^18 or 1000000000000000000. &lt;https://en.wikipedia.org/wiki/Exa-&gt; &quot;&quot;&quot;</span> <span class="c1"># noqa: E501</span>
<span class="n">EXA</span> <span class="o">=</span> <span class="s2">&quot;exa&quot;</span>
<span class="k">def</span> <span class="fm">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="k">return</span> <span class="nb">str</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">value</span><span class="p">)</span></div>
</pre></div>
</div>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>&#169; Copyright 2023, KittyCAD Team Members.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>