kittycad.models.unit_area_format.UnitAreaFormat
- class kittycad.models.unit_area_format.UnitAreaFormat(value)[source][source]
-
The valid types of area unit formats.
Attributes
//en.wikipedia.org/wiki/Square_foot>
//en.wikipedia.org/wiki/Square_inch>
//en.wikipedia.org/wiki/Square_mile>
//en.wikipedia.org/wiki/Square_kilometre>
//en.wikipedia.org/wiki/Hectare>
//en.wikipedia.org/wiki/Acre>
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_area_format', '__doc__': 'The valid types of area unit formats.', '__str__': <function UnitAreaFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitAreaFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitAreaFormat' objects>, '_member_names_': ['SQUARE_METER', 'SQUARE_FOOT', 'SQUARE_INCH', 'SQUARE_MILE', 'SQUARE_KILOMETER', 'HECTARE', 'ACRE'], '_member_map_': {'SQUARE_METER': <UnitAreaFormat.SQUARE_METER: 'square_meter'>, 'SQUARE_FOOT': <UnitAreaFormat.SQUARE_FOOT: 'square_foot'>, 'SQUARE_INCH': <UnitAreaFormat.SQUARE_INCH: 'square_inch'>, 'SQUARE_MILE': <UnitAreaFormat.SQUARE_MILE: 'square_mile'>, 'SQUARE_KILOMETER': <UnitAreaFormat.SQUARE_KILOMETER: 'square_kilometer'>, 'HECTARE': <UnitAreaFormat.HECTARE: 'hectare'>, 'ACRE': <UnitAreaFormat.ACRE: 'acre'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'square_meter': <UnitAreaFormat.SQUARE_METER: 'square_meter'>, 'square_foot': <UnitAreaFormat.SQUARE_FOOT: 'square_foot'>, 'square_inch': <UnitAreaFormat.SQUARE_INCH: 'square_inch'>, 'square_mile': <UnitAreaFormat.SQUARE_MILE: 'square_mile'>, 'square_kilometer': <UnitAreaFormat.SQUARE_KILOMETER: 'square_kilometer'>, 'hectare': <UnitAreaFormat.HECTARE: 'hectare'>, 'acre': <UnitAreaFormat.ACRE: 'acre'>}, 'SQUARE_METER': <UnitAreaFormat.SQUARE_METER: 'square_meter'>, 'SQUARE_FOOT': <UnitAreaFormat.SQUARE_FOOT: 'square_foot'>, 'SQUARE_INCH': <UnitAreaFormat.SQUARE_INCH: 'square_inch'>, 'SQUARE_MILE': <UnitAreaFormat.SQUARE_MILE: 'square_mile'>, 'SQUARE_KILOMETER': <UnitAreaFormat.SQUARE_KILOMETER: 'square_kilometer'>, 'HECTARE': <UnitAreaFormat.HECTARE: 'hectare'>, 'ACRE': <UnitAreaFormat.ACRE: 'acre'>, '__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_ = {'ACRE': UnitAreaFormat.ACRE, 'HECTARE': UnitAreaFormat.HECTARE, 'SQUARE_FOOT': UnitAreaFormat.SQUARE_FOOT, 'SQUARE_INCH': UnitAreaFormat.SQUARE_INCH, 'SQUARE_KILOMETER': UnitAreaFormat.SQUARE_KILOMETER, 'SQUARE_METER': UnitAreaFormat.SQUARE_METER, 'SQUARE_MILE': UnitAreaFormat.SQUARE_MILE}[source]
- _member_names_ = ['SQUARE_METER', 'SQUARE_FOOT', 'SQUARE_INCH', 'SQUARE_MILE', 'SQUARE_KILOMETER', 'HECTARE', 'ACRE'][source]
- _value2member_map_ = {'acre': UnitAreaFormat.ACRE, 'hectare': UnitAreaFormat.HECTARE, 'square_foot': UnitAreaFormat.SQUARE_FOOT, 'square_inch': UnitAreaFormat.SQUARE_INCH, 'square_kilometer': UnitAreaFormat.SQUARE_KILOMETER, 'square_meter': UnitAreaFormat.SQUARE_METER, 'square_mile': UnitAreaFormat.SQUARE_MILE}[source]