kittycad.models.unit_mass_format.UnitMassFormat
- class kittycad.models.unit_mass_format.UnitMassFormat(value)[source][source]
-
The valid types of mass unit formats.
Attributes
//en.wikipedia.org/wiki/Kilogram>
//en.wikipedia.org/wiki/Tonne>
//en.wikipedia.org/wiki/Pound_(mass)>
//en.wikipedia.org/wiki/Long_ton>
//en.wikipedia.org/wiki/Short_ton>
//en.wikipedia.org/wiki/Stone_(unit)>
//en.wikipedia.org/wiki/Ounce>
//en.wikipedia.org/wiki/Carat_(mass)>
//en.wikipedia.org/wiki/Slug_(unit)>
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_mass_format', '__doc__': 'The valid types of mass unit formats.', '__str__': <function UnitMassFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitMassFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitMassFormat' objects>, '_member_names_': ['GRAM', 'KILOGRAM', 'METRIC_TON', 'POUND', 'LONG_TON', 'SHORT_TON', 'STONE', 'OUNCE', 'CARAT', 'SLUG'], '_member_map_': {'GRAM': <UnitMassFormat.GRAM: 'gram'>, 'KILOGRAM': <UnitMassFormat.KILOGRAM: 'kilogram'>, 'METRIC_TON': <UnitMassFormat.METRIC_TON: 'metric_ton'>, 'POUND': <UnitMassFormat.POUND: 'pound'>, 'LONG_TON': <UnitMassFormat.LONG_TON: 'long_ton'>, 'SHORT_TON': <UnitMassFormat.SHORT_TON: 'short_ton'>, 'STONE': <UnitMassFormat.STONE: 'stone'>, 'OUNCE': <UnitMassFormat.OUNCE: 'ounce'>, 'CARAT': <UnitMassFormat.CARAT: 'carat'>, 'SLUG': <UnitMassFormat.SLUG: 'slug'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'gram': <UnitMassFormat.GRAM: 'gram'>, 'kilogram': <UnitMassFormat.KILOGRAM: 'kilogram'>, 'metric_ton': <UnitMassFormat.METRIC_TON: 'metric_ton'>, 'pound': <UnitMassFormat.POUND: 'pound'>, 'long_ton': <UnitMassFormat.LONG_TON: 'long_ton'>, 'short_ton': <UnitMassFormat.SHORT_TON: 'short_ton'>, 'stone': <UnitMassFormat.STONE: 'stone'>, 'ounce': <UnitMassFormat.OUNCE: 'ounce'>, 'carat': <UnitMassFormat.CARAT: 'carat'>, 'slug': <UnitMassFormat.SLUG: 'slug'>}, 'GRAM': <UnitMassFormat.GRAM: 'gram'>, 'KILOGRAM': <UnitMassFormat.KILOGRAM: 'kilogram'>, 'METRIC_TON': <UnitMassFormat.METRIC_TON: 'metric_ton'>, 'POUND': <UnitMassFormat.POUND: 'pound'>, 'LONG_TON': <UnitMassFormat.LONG_TON: 'long_ton'>, 'SHORT_TON': <UnitMassFormat.SHORT_TON: 'short_ton'>, 'STONE': <UnitMassFormat.STONE: 'stone'>, 'OUNCE': <UnitMassFormat.OUNCE: 'ounce'>, 'CARAT': <UnitMassFormat.CARAT: 'carat'>, 'SLUG': <UnitMassFormat.SLUG: 'slug'>, '__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_ = {'CARAT': UnitMassFormat.CARAT, 'GRAM': UnitMassFormat.GRAM, 'KILOGRAM': UnitMassFormat.KILOGRAM, 'LONG_TON': UnitMassFormat.LONG_TON, 'METRIC_TON': UnitMassFormat.METRIC_TON, 'OUNCE': UnitMassFormat.OUNCE, 'POUND': UnitMassFormat.POUND, 'SHORT_TON': UnitMassFormat.SHORT_TON, 'SLUG': UnitMassFormat.SLUG, 'STONE': UnitMassFormat.STONE}[source]
- _member_names_ = ['GRAM', 'KILOGRAM', 'METRIC_TON', 'POUND', 'LONG_TON', 'SHORT_TON', 'STONE', 'OUNCE', 'CARAT', 'SLUG'][source]
- _value2member_map_ = {'carat': UnitMassFormat.CARAT, 'gram': UnitMassFormat.GRAM, 'kilogram': UnitMassFormat.KILOGRAM, 'long_ton': UnitMassFormat.LONG_TON, 'metric_ton': UnitMassFormat.METRIC_TON, 'ounce': UnitMassFormat.OUNCE, 'pound': UnitMassFormat.POUND, 'short_ton': UnitMassFormat.SHORT_TON, 'slug': UnitMassFormat.SLUG, 'stone': UnitMassFormat.STONE}[source]