kittycad.models.unit_metric_power.UnitMetricPower

class kittycad.models.unit_metric_power.UnitMetricPower(value)[source][source]

Bases: str, enum.Enum

The valid types of metric unit formats.

__init__()[source]

Attributes

ATTO

//en.wikipedia.org/wiki/Femto->

FEMTO

//en.wikipedia.org/wiki/Pico->

PICO

//en.wikipedia.org/wiki/Nano->

NANO

//en.wikipedia.org/wiki/Micro->

MICRO

//en.wikipedia.org/wiki/Milli->

MILLI

//en.wikipedia.org/wiki/Centi->

CENTI

//en.wikipedia.org/wiki/Deci->

DECI

# One metric unit.

UNIT

//en.wikipedia.org/wiki/Deca->

DECA

//en.wikipedia.org/wiki/Hecto->

HECTO

//en.wikipedia.org/wiki/Kilo->

KILO

//en.wikipedia.org/wiki/Mega->

MEGA

//en.wikipedia.org/wiki/Giga->

GIGA

//en.wikipedia.org/wiki/Tera->

TERA

//en.wikipedia.org/wiki/Peta->

PETA

//en.wikipedia.org/wiki/Exa->

EXA

ATTO = 'atto'[source]

//en.wikipedia.org/wiki/Femto->

Type

# Femto (symbol f) is a unit prefix in the metric system denoting a factor of 10^-15. <https

CENTI = 'centi'[source]

//en.wikipedia.org/wiki/Deci->

Type

# Deci (symbol d) is a decimal unit prefix in the metric system denoting a factor of one tenth. <https

DECA = 'deca'[source]

//en.wikipedia.org/wiki/Hecto->

Type

# Hecto (symbol

Type
  1. is a decimal unit prefix in the metric system denoting a factor of one hundred. <https

DECI = 'deci'[source]

# One metric unit.

EXA = 'exa'[source]
FEMTO = 'femto'[source]

//en.wikipedia.org/wiki/Pico->

Type

# 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. <https

GIGA = 'giga'[source]

//en.wikipedia.org/wiki/Tera->

Type

# 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). <https

HECTO = 'hecto'[source]

//en.wikipedia.org/wiki/Kilo->

Type

# Kilo is a decimal unit prefix in the metric system denoting multiplication by one thousand (10^3). <https

KILO = 'kilo'[source]

//en.wikipedia.org/wiki/Mega->

Type

# Mega is a unit prefix in metric systems of units denoting a factor of one million (10^6 or 1000000). <https

MEGA = 'mega'[source]

//en.wikipedia.org/wiki/Giga->

Type

# 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). <https

MICRO = 'micro'[source]

//en.wikipedia.org/wiki/Milli->

Type

# Milli (symbol m) is a unit prefix in the metric system denoting a factor of one thousandth (10^−3). <https

MILLI = 'milli'[source]

//en.wikipedia.org/wiki/Centi->

Type

# Centi (symbol c) is a unit prefix in the metric system denoting a factor of one hundredth. <https

NANO = 'nano'[source]

//en.wikipedia.org/wiki/Micro->

Type

# 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). <https

PETA = 'peta'[source]

//en.wikipedia.org/wiki/Exa->

Type

# Exa is a decimal unit prefix in the metric system denoting 10^18 or 1000000000000000000. <https

PICO = 'pico'[source]

//en.wikipedia.org/wiki/Nano->

Type

# Nano (symbol n) is a unit prefix meaning “one billionth”. Used primarily with the metric system, this prefix denotes a factor of 10^−9 or 0.000000001. <https

TERA = 'tera'[source]

//en.wikipedia.org/wiki/Peta->

Type

# Peta is a decimal unit prefix in the metric system denoting multiplication by one quadrillion, or 10^15 (1000000000000000). <https

UNIT = 'unit'[source]

//en.wikipedia.org/wiki/Deca->

Type

# Deca is a decimal unit prefix in the metric system denoting a factor of ten. <https

__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_metric_power', '__doc__': 'The valid types of metric unit formats.', '__str__': <function UnitMetricPower.__str__>, '__dict__': <attribute '__dict__' of 'UnitMetricPower' objects>, '__weakref__': <attribute '__weakref__' of 'UnitMetricPower' objects>, '_member_names_': ['ATTO', 'FEMTO', 'PICO', 'NANO', 'MICRO', 'MILLI', 'CENTI', 'DECI', 'UNIT', 'DECA', 'HECTO', 'KILO', 'MEGA', 'GIGA', 'TERA', 'PETA', 'EXA'], '_member_map_': {'ATTO': <UnitMetricPower.ATTO: 'atto'>, 'FEMTO': <UnitMetricPower.FEMTO: 'femto'>, 'PICO': <UnitMetricPower.PICO: 'pico'>, 'NANO': <UnitMetricPower.NANO: 'nano'>, 'MICRO': <UnitMetricPower.MICRO: 'micro'>, 'MILLI': <UnitMetricPower.MILLI: 'milli'>, 'CENTI': <UnitMetricPower.CENTI: 'centi'>, 'DECI': <UnitMetricPower.DECI: 'deci'>, 'UNIT': <UnitMetricPower.UNIT: 'unit'>, 'DECA': <UnitMetricPower.DECA: 'deca'>, 'HECTO': <UnitMetricPower.HECTO: 'hecto'>, 'KILO': <UnitMetricPower.KILO: 'kilo'>, 'MEGA': <UnitMetricPower.MEGA: 'mega'>, 'GIGA': <UnitMetricPower.GIGA: 'giga'>, 'TERA': <UnitMetricPower.TERA: 'tera'>, 'PETA': <UnitMetricPower.PETA: 'peta'>, 'EXA': <UnitMetricPower.EXA: 'exa'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'atto': <UnitMetricPower.ATTO: 'atto'>, 'femto': <UnitMetricPower.FEMTO: 'femto'>, 'pico': <UnitMetricPower.PICO: 'pico'>, 'nano': <UnitMetricPower.NANO: 'nano'>, 'micro': <UnitMetricPower.MICRO: 'micro'>, 'milli': <UnitMetricPower.MILLI: 'milli'>, 'centi': <UnitMetricPower.CENTI: 'centi'>, 'deci': <UnitMetricPower.DECI: 'deci'>, 'unit': <UnitMetricPower.UNIT: 'unit'>, 'deca': <UnitMetricPower.DECA: 'deca'>, 'hecto': <UnitMetricPower.HECTO: 'hecto'>, 'kilo': <UnitMetricPower.KILO: 'kilo'>, 'mega': <UnitMetricPower.MEGA: 'mega'>, 'giga': <UnitMetricPower.GIGA: 'giga'>, 'tera': <UnitMetricPower.TERA: 'tera'>, 'peta': <UnitMetricPower.PETA: 'peta'>, 'exa': <UnitMetricPower.EXA: 'exa'>}, 'ATTO': <UnitMetricPower.ATTO: 'atto'>, 'FEMTO': <UnitMetricPower.FEMTO: 'femto'>, 'PICO': <UnitMetricPower.PICO: 'pico'>, 'NANO': <UnitMetricPower.NANO: 'nano'>, 'MICRO': <UnitMetricPower.MICRO: 'micro'>, 'MILLI': <UnitMetricPower.MILLI: 'milli'>, 'CENTI': <UnitMetricPower.CENTI: 'centi'>, 'DECI': <UnitMetricPower.DECI: 'deci'>, 'UNIT': <UnitMetricPower.UNIT: 'unit'>, 'DECA': <UnitMetricPower.DECA: 'deca'>, 'HECTO': <UnitMetricPower.HECTO: 'hecto'>, 'KILO': <UnitMetricPower.KILO: 'kilo'>, 'MEGA': <UnitMetricPower.MEGA: 'mega'>, 'GIGA': <UnitMetricPower.GIGA: 'giga'>, 'TERA': <UnitMetricPower.TERA: 'tera'>, 'PETA': <UnitMetricPower.PETA: 'peta'>, 'EXA': <UnitMetricPower.EXA: 'exa'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_metric_power'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'ATTO': UnitMetricPower.ATTO, 'CENTI': UnitMetricPower.CENTI, 'DECA': UnitMetricPower.DECA, 'DECI': UnitMetricPower.DECI, 'EXA': UnitMetricPower.EXA, 'FEMTO': UnitMetricPower.FEMTO, 'GIGA': UnitMetricPower.GIGA, 'HECTO': UnitMetricPower.HECTO, 'KILO': UnitMetricPower.KILO, 'MEGA': UnitMetricPower.MEGA, 'MICRO': UnitMetricPower.MICRO, 'MILLI': UnitMetricPower.MILLI, 'NANO': UnitMetricPower.NANO, 'PETA': UnitMetricPower.PETA, 'PICO': UnitMetricPower.PICO, 'TERA': UnitMetricPower.TERA, 'UNIT': UnitMetricPower.UNIT}[source]
_member_names_ = ['ATTO', 'FEMTO', 'PICO', 'NANO', 'MICRO', 'MILLI', 'CENTI', 'DECI', 'UNIT', 'DECA', 'HECTO', 'KILO', 'MEGA', 'GIGA', 'TERA', 'PETA', 'EXA'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'atto': UnitMetricPower.ATTO, 'centi': UnitMetricPower.CENTI, 'deca': UnitMetricPower.DECA, 'deci': UnitMetricPower.DECI, 'exa': UnitMetricPower.EXA, 'femto': UnitMetricPower.FEMTO, 'giga': UnitMetricPower.GIGA, 'hecto': UnitMetricPower.HECTO, 'kilo': UnitMetricPower.KILO, 'mega': UnitMetricPower.MEGA, 'micro': UnitMetricPower.MICRO, 'milli': UnitMetricPower.MILLI, 'nano': UnitMetricPower.NANO, 'peta': UnitMetricPower.PETA, 'pico': UnitMetricPower.PICO, 'tera': UnitMetricPower.TERA, 'unit': UnitMetricPower.UNIT}[source]