kittycad.models.unit_length.UnitLength

class kittycad.models.unit_length.UnitLength(value)[source][source]

Bases: str, Enum

The valid types of length units.

__init__()[source]

Attributes

CM

//en.wikipedia.org/wiki/Foot_(unit)>

FT

//en.wikipedia.org/wiki/Inch>

IN

//en.wikipedia.org/wiki/Meter>

M

//en.wikipedia.org/wiki/Millimeter>

MM

//en.wikipedia.org/wiki/Yard>

YD

CM = 'cm'[source]

//en.wikipedia.org/wiki/Foot_(unit)>

Type:

# Feet <https

FT = 'ft'[source]

//en.wikipedia.org/wiki/Inch>

Type:

# Inches <https

IN = 'in'[source]

//en.wikipedia.org/wiki/Meter>

Type:

# Meters <https

M = 'm'[source]

//en.wikipedia.org/wiki/Millimeter>

Type:

# Millimeters <https

MM = 'mm'[source]

//en.wikipedia.org/wiki/Yard>

Type:

# Yards <https

YD = 'yd'[source]
__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_length', '__doc__': 'The valid types of length units.', '__str__': <function UnitLength.__str__>, '__dict__': <attribute '__dict__' of 'UnitLength' objects>, '__weakref__': <attribute '__weakref__' of 'UnitLength' objects>, '_member_names_': ['CM', 'FT', 'IN', 'M', 'MM', 'YD'], '_member_map_': {'CM': <UnitLength.CM: 'cm'>, 'FT': <UnitLength.FT: 'ft'>, 'IN': <UnitLength.IN: 'in'>, 'M': <UnitLength.M: 'm'>, 'MM': <UnitLength.MM: 'mm'>, 'YD': <UnitLength.YD: 'yd'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'cm': <UnitLength.CM: 'cm'>, 'ft': <UnitLength.FT: 'ft'>, 'in': <UnitLength.IN: 'in'>, 'm': <UnitLength.M: 'm'>, 'mm': <UnitLength.MM: 'mm'>, 'yd': <UnitLength.YD: 'yd'>}, 'CM': <UnitLength.CM: 'cm'>, 'FT': <UnitLength.FT: 'ft'>, 'IN': <UnitLength.IN: 'in'>, 'M': <UnitLength.M: 'm'>, 'MM': <UnitLength.MM: 'mm'>, 'YD': <UnitLength.YD: 'yd'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_length'[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_ = {'CM': UnitLength.CM, 'FT': UnitLength.FT, 'IN': UnitLength.IN, 'M': UnitLength.M, 'MM': UnitLength.MM, 'YD': UnitLength.YD}[source]
_member_names_ = ['CM', 'FT', 'IN', 'M', 'MM', 'YD'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'cm': UnitLength.CM, 'ft': UnitLength.FT, 'in': UnitLength.IN, 'm': UnitLength.M, 'mm': UnitLength.MM, 'yd': UnitLength.YD}[source]