kittycad.models.unit_length_format.UnitLengthFormat
- class kittycad.models.unit_length_format.UnitLengthFormat(value)[source][source]
-
The valid types of length unit formats.
Attributes
//en.wikipedia.org/wiki/Millimetre>
//en.wikipedia.org/wiki/Centimetre>
//en.wikipedia.org/wiki/Kilometre>
//en.wikipedia.org/wiki/Foot_(unit)>
//en.wikipedia.org/wiki/Thousandth_of_an_inch>
//en.wikipedia.org/wiki/Inch>
//en.wikipedia.org/wiki/Mile>
//en.wikipedia.org/wiki/Nautical_mile>
//en.wikipedia.org/wiki/Astronomical_unit>
//en.wikipedia.org/wiki/Light-year>
//en.wikipedia.org/wiki/Parsec>
//en.wikipedia.org/wiki/Angstrom>
//en.wikipedia.org/wiki/Cubit>
//en.wikipedia.org/wiki/Fathom>
//en.wikipedia.org/wiki/Chain_(unit)>
//en.wikipedia.org/wiki/Furlong>
//en.wikipedia.org/wiki/Hand_(unit)>
//en.wikipedia.org/wiki/League_(unit)>
//en.wikipedia.org/wiki/List_of_nautical_units_of_measurement>
//en.wikipedia.org/wiki/Yard>
- LEAGUE = 'league'[source]
//en.wikipedia.org/wiki/List_of_nautical_units_of_measurement>
- Type
# <https
- __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]
- _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]
- _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]