kittycad.models.unit_length_format.UnitLengthFormat

class kittycad.models.unit_length_format.UnitLengthFormat(value)[source][source]

Bases: str, enum.Enum

The valid types of length unit formats.

__init__()[source]

Attributes

METER

//en.wikipedia.org/wiki/Millimetre>

MILLIMETER

//en.wikipedia.org/wiki/Centimetre>

CENTIMETER

//en.wikipedia.org/wiki/Kilometre>

KILOMETER

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

FOOT

//en.wikipedia.org/wiki/Thousandth_of_an_inch>

MIL

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

INCH

//en.wikipedia.org/wiki/Mile>

MILE

//en.wikipedia.org/wiki/Nautical_mile>

NAUTICAL_MILE

//en.wikipedia.org/wiki/Astronomical_unit>

ASTRONOMICAL_UNIT

//en.wikipedia.org/wiki/Light-year>

LIGHTYEAR

//en.wikipedia.org/wiki/Parsec>

PARSEC

//en.wikipedia.org/wiki/Angstrom>

ANGSTROM

//en.wikipedia.org/wiki/Cubit>

CUBIT

//en.wikipedia.org/wiki/Fathom>

FATHOM

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

CHAIN

//en.wikipedia.org/wiki/Furlong>

FURLONG

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

HAND

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

LEAGUE

//en.wikipedia.org/wiki/List_of_nautical_units_of_measurement>

NAUTICAL_LEAGUE

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

YARD

ANGSTROM = 'angstrom'[source]

//en.wikipedia.org/wiki/Cubit>

Type

# <https

ASTRONOMICAL_UNIT = 'astronomical_unit'[source]

//en.wikipedia.org/wiki/Light-year>

Type

# <https

CENTIMETER = 'centimeter'[source]

//en.wikipedia.org/wiki/Kilometre>

Type

# <https

CHAIN = 'chain'[source]

//en.wikipedia.org/wiki/Furlong>

Type

# <https

CUBIT = 'cubit'[source]

//en.wikipedia.org/wiki/Fathom>

Type

# <https

FATHOM = 'fathom'[source]

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

Type

# <https

FOOT = 'foot'[source]

//en.wikipedia.org/wiki/Thousandth_of_an_inch>

Type

# <https

FURLONG = 'furlong'[source]

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

Type

# <https

HAND = 'hand'[source]

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

Type

# <https

INCH = 'inch'[source]

//en.wikipedia.org/wiki/Mile>

Type

# <https

KILOMETER = 'kilometer'[source]

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

Type

# <https

LEAGUE = 'league'[source]

//en.wikipedia.org/wiki/List_of_nautical_units_of_measurement>

Type

# <https

LIGHTYEAR = 'lightyear'[source]

//en.wikipedia.org/wiki/Parsec>

Type

# <https

METER = 'meter'[source]

//en.wikipedia.org/wiki/Millimetre>

Type

# <https

MIL = 'mil'[source]

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

Type

# <https

MILE = 'mile'[source]

//en.wikipedia.org/wiki/Nautical_mile>

Type

# <https

MILLIMETER = 'millimeter'[source]

//en.wikipedia.org/wiki/Centimetre>

Type

# <https

NAUTICAL_LEAGUE = 'nautical_league'[source]

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

Type

# <https

NAUTICAL_MILE = 'nautical_mile'[source]

//en.wikipedia.org/wiki/Astronomical_unit>

Type

# <https

PARSEC = 'parsec'[source]

//en.wikipedia.org/wiki/Angstrom>

Type

# <https

YARD = 'yard'[source]
__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_length_format', '__doc__': 'The valid types of length unit formats.', '__str__': <function UnitLengthFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitLengthFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitLengthFormat' objects>, '_member_names_': ['METER', 'MILLIMETER', 'CENTIMETER', 'KILOMETER', 'FOOT', 'MIL', 'INCH', 'MILE', 'NAUTICAL_MILE', 'ASTRONOMICAL_UNIT', 'LIGHTYEAR', 'PARSEC', 'ANGSTROM', 'CUBIT', 'FATHOM', 'CHAIN', 'FURLONG', 'HAND', 'LEAGUE', 'NAUTICAL_LEAGUE', 'YARD'], '_member_map_': {'METER': <UnitLengthFormat.METER: 'meter'>, 'MILLIMETER': <UnitLengthFormat.MILLIMETER: 'millimeter'>, 'CENTIMETER': <UnitLengthFormat.CENTIMETER: 'centimeter'>, 'KILOMETER': <UnitLengthFormat.KILOMETER: 'kilometer'>, 'FOOT': <UnitLengthFormat.FOOT: 'foot'>, 'MIL': <UnitLengthFormat.MIL: 'mil'>, 'INCH': <UnitLengthFormat.INCH: 'inch'>, 'MILE': <UnitLengthFormat.MILE: 'mile'>, 'NAUTICAL_MILE': <UnitLengthFormat.NAUTICAL_MILE: 'nautical_mile'>, 'ASTRONOMICAL_UNIT': <UnitLengthFormat.ASTRONOMICAL_UNIT: 'astronomical_unit'>, 'LIGHTYEAR': <UnitLengthFormat.LIGHTYEAR: 'lightyear'>, 'PARSEC': <UnitLengthFormat.PARSEC: 'parsec'>, 'ANGSTROM': <UnitLengthFormat.ANGSTROM: 'angstrom'>, 'CUBIT': <UnitLengthFormat.CUBIT: 'cubit'>, 'FATHOM': <UnitLengthFormat.FATHOM: 'fathom'>, 'CHAIN': <UnitLengthFormat.CHAIN: 'chain'>, 'FURLONG': <UnitLengthFormat.FURLONG: 'furlong'>, 'HAND': <UnitLengthFormat.HAND: 'hand'>, 'LEAGUE': <UnitLengthFormat.LEAGUE: 'league'>, 'NAUTICAL_LEAGUE': <UnitLengthFormat.NAUTICAL_LEAGUE: 'nautical_league'>, 'YARD': <UnitLengthFormat.YARD: 'yard'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'meter': <UnitLengthFormat.METER: 'meter'>, 'millimeter': <UnitLengthFormat.MILLIMETER: 'millimeter'>, 'centimeter': <UnitLengthFormat.CENTIMETER: 'centimeter'>, 'kilometer': <UnitLengthFormat.KILOMETER: 'kilometer'>, 'foot': <UnitLengthFormat.FOOT: 'foot'>, 'mil': <UnitLengthFormat.MIL: 'mil'>, 'inch': <UnitLengthFormat.INCH: 'inch'>, 'mile': <UnitLengthFormat.MILE: 'mile'>, 'nautical_mile': <UnitLengthFormat.NAUTICAL_MILE: 'nautical_mile'>, 'astronomical_unit': <UnitLengthFormat.ASTRONOMICAL_UNIT: 'astronomical_unit'>, 'lightyear': <UnitLengthFormat.LIGHTYEAR: 'lightyear'>, 'parsec': <UnitLengthFormat.PARSEC: 'parsec'>, 'angstrom': <UnitLengthFormat.ANGSTROM: 'angstrom'>, 'cubit': <UnitLengthFormat.CUBIT: 'cubit'>, 'fathom': <UnitLengthFormat.FATHOM: 'fathom'>, 'chain': <UnitLengthFormat.CHAIN: 'chain'>, 'furlong': <UnitLengthFormat.FURLONG: 'furlong'>, 'hand': <UnitLengthFormat.HAND: 'hand'>, 'league': <UnitLengthFormat.LEAGUE: 'league'>, 'nautical_league': <UnitLengthFormat.NAUTICAL_LEAGUE: 'nautical_league'>, 'yard': <UnitLengthFormat.YARD: 'yard'>}, 'METER': <UnitLengthFormat.METER: 'meter'>, 'MILLIMETER': <UnitLengthFormat.MILLIMETER: 'millimeter'>, 'CENTIMETER': <UnitLengthFormat.CENTIMETER: 'centimeter'>, 'KILOMETER': <UnitLengthFormat.KILOMETER: 'kilometer'>, 'FOOT': <UnitLengthFormat.FOOT: 'foot'>, 'MIL': <UnitLengthFormat.MIL: 'mil'>, 'INCH': <UnitLengthFormat.INCH: 'inch'>, 'MILE': <UnitLengthFormat.MILE: 'mile'>, 'NAUTICAL_MILE': <UnitLengthFormat.NAUTICAL_MILE: 'nautical_mile'>, 'ASTRONOMICAL_UNIT': <UnitLengthFormat.ASTRONOMICAL_UNIT: 'astronomical_unit'>, 'LIGHTYEAR': <UnitLengthFormat.LIGHTYEAR: 'lightyear'>, 'PARSEC': <UnitLengthFormat.PARSEC: 'parsec'>, 'ANGSTROM': <UnitLengthFormat.ANGSTROM: 'angstrom'>, 'CUBIT': <UnitLengthFormat.CUBIT: 'cubit'>, 'FATHOM': <UnitLengthFormat.FATHOM: 'fathom'>, 'CHAIN': <UnitLengthFormat.CHAIN: 'chain'>, 'FURLONG': <UnitLengthFormat.FURLONG: 'furlong'>, 'HAND': <UnitLengthFormat.HAND: 'hand'>, 'LEAGUE': <UnitLengthFormat.LEAGUE: 'league'>, 'NAUTICAL_LEAGUE': <UnitLengthFormat.NAUTICAL_LEAGUE: 'nautical_league'>, 'YARD': <UnitLengthFormat.YARD: 'yard'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_length_format'[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_ = {'ANGSTROM': UnitLengthFormat.ANGSTROM, 'ASTRONOMICAL_UNIT': UnitLengthFormat.ASTRONOMICAL_UNIT, 'CENTIMETER': UnitLengthFormat.CENTIMETER, 'CHAIN': UnitLengthFormat.CHAIN, 'CUBIT': UnitLengthFormat.CUBIT, 'FATHOM': UnitLengthFormat.FATHOM, 'FOOT': UnitLengthFormat.FOOT, 'FURLONG': UnitLengthFormat.FURLONG, 'HAND': UnitLengthFormat.HAND, 'INCH': UnitLengthFormat.INCH, 'KILOMETER': UnitLengthFormat.KILOMETER, 'LEAGUE': UnitLengthFormat.LEAGUE, 'LIGHTYEAR': UnitLengthFormat.LIGHTYEAR, 'METER': UnitLengthFormat.METER, 'MIL': UnitLengthFormat.MIL, 'MILE': UnitLengthFormat.MILE, 'MILLIMETER': UnitLengthFormat.MILLIMETER, 'NAUTICAL_LEAGUE': UnitLengthFormat.NAUTICAL_LEAGUE, 'NAUTICAL_MILE': UnitLengthFormat.NAUTICAL_MILE, 'PARSEC': UnitLengthFormat.PARSEC, 'YARD': UnitLengthFormat.YARD}[source]
_member_names_ = ['METER', 'MILLIMETER', 'CENTIMETER', 'KILOMETER', 'FOOT', 'MIL', 'INCH', 'MILE', 'NAUTICAL_MILE', 'ASTRONOMICAL_UNIT', 'LIGHTYEAR', 'PARSEC', 'ANGSTROM', 'CUBIT', 'FATHOM', 'CHAIN', 'FURLONG', 'HAND', 'LEAGUE', 'NAUTICAL_LEAGUE', 'YARD'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'angstrom': UnitLengthFormat.ANGSTROM, 'astronomical_unit': UnitLengthFormat.ASTRONOMICAL_UNIT, 'centimeter': UnitLengthFormat.CENTIMETER, 'chain': UnitLengthFormat.CHAIN, 'cubit': UnitLengthFormat.CUBIT, 'fathom': UnitLengthFormat.FATHOM, 'foot': UnitLengthFormat.FOOT, 'furlong': UnitLengthFormat.FURLONG, 'hand': UnitLengthFormat.HAND, 'inch': UnitLengthFormat.INCH, 'kilometer': UnitLengthFormat.KILOMETER, 'league': UnitLengthFormat.LEAGUE, 'lightyear': UnitLengthFormat.LIGHTYEAR, 'meter': UnitLengthFormat.METER, 'mil': UnitLengthFormat.MIL, 'mile': UnitLengthFormat.MILE, 'millimeter': UnitLengthFormat.MILLIMETER, 'nautical_league': UnitLengthFormat.NAUTICAL_LEAGUE, 'nautical_mile': UnitLengthFormat.NAUTICAL_MILE, 'parsec': UnitLengthFormat.PARSEC, 'yard': UnitLengthFormat.YARD}[source]