kittycad.models.unit_data_format.UnitDataFormat
- class kittycad.models.unit_data_format.UnitDataFormat(value)[source][source]
-
The valid types of data unit formats.
Attributes
//en.wikipedia.org/wiki/Byte#Multiple-byte_units>
//en.wikipedia.org/wiki/Bit>
//en.wikipedia.org/wiki/Exabit>
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_data_format', '__doc__': 'The valid types of data unit formats.', '__str__': <function UnitDataFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitDataFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitDataFormat' objects>, '_member_names_': ['BYTE', 'EXABYTE', 'BIT', 'EXABIT'], '_member_map_': {'BYTE': <UnitDataFormat.BYTE: 'byte'>, 'EXABYTE': <UnitDataFormat.EXABYTE: 'exabyte'>, 'BIT': <UnitDataFormat.BIT: 'bit'>, 'EXABIT': <UnitDataFormat.EXABIT: 'exabit'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'byte': <UnitDataFormat.BYTE: 'byte'>, 'exabyte': <UnitDataFormat.EXABYTE: 'exabyte'>, 'bit': <UnitDataFormat.BIT: 'bit'>, 'exabit': <UnitDataFormat.EXABIT: 'exabit'>}, 'BYTE': <UnitDataFormat.BYTE: 'byte'>, 'EXABYTE': <UnitDataFormat.EXABYTE: 'exabyte'>, 'BIT': <UnitDataFormat.BIT: 'bit'>, 'EXABIT': <UnitDataFormat.EXABIT: 'exabit'>, '__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