kittycad.models.unit_volume_format.UnitVolumeFormat
- class kittycad.models.unit_volume_format.UnitVolumeFormat(value)[source][source]
-
The valid types of volume unit formats.
Attributes
//en.wikipedia.org/wiki/Centimetre>
//en.wikipedia.org/wiki/Cubic_metre>
//en.wikipedia.org/wiki/Cubic_metre>
//en.wikipedia.org/wiki/Litre>
//en.wikipedia.org/wiki/Cubic_inch>
//en.wikipedia.org/wiki/Cubic_foot>
//en.wikipedia.org/wiki/Cubic_foot>
//en.wikipedia.org/wiki/Cubic_foot>
//en.wikipedia.org/wiki/Gallon>
//en.wikipedia.org/wiki/Quart>
//en.wikipedia.org/wiki/Pint>
//en.wikipedia.org/wiki/Cup_(unit)>
//en.wikipedia.org/wiki/Fluid_ounce>
//en.wikipedia.org/wiki/Barrel_(unit)>
//en.wikipedia.org/wiki/Bushel>
//en.wikipedia.org/wiki/Cord_(unit)>
//en.wikipedia.org/wiki/Cubic_fathom>
//en.wikipedia.org/wiki/Tablespoon>
//en.wikipedia.org/wiki/Teaspoon>
//en.wikipedia.org/wiki/Pinch_(unit)>
//en.wikipedia.org/wiki/Cooking_weights_and_measures>
//en.wikipedia.org/wiki/Cooking_weights_and_measures>
//en.wikipedia.org/wiki/Fifth_(unit)>
//en.wikipedia.org/wiki/Dram_(unit)>
//en.wikipedia.org/wiki/Gill_(unit)>
//en.wikipedia.org/wiki/Imperial_units>
//en.wikipedia.org/wiki/Stack_(unit)>
//en.wikipedia.org/wiki/Shot_glass>
//en.wikipedia.org/wiki/Strike_(unit)>
- CUBIC_CENTIMETER = 'cubic_centimeter'[source]
//en.wikipedia.org/wiki/Cubic_metre>
- Type
# Millimeter <https
- CUBIC_KILOMETER = 'cubic_kilometer'[source]
//en.wikipedia.org/wiki/Litre>
- Type
# Unit Liter <https
- CUBIC_MILLIMETER = 'cubic_millimeter'[source]
//en.wikipedia.org/wiki/Cubic_metre>
- Type
# Kilometer <https
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_volume_format', '__doc__': 'The valid types of volume unit formats.', '__str__': <function UnitVolumeFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitVolumeFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitVolumeFormat' objects>, '_member_names_': ['CUBIC_METER', 'CUBIC_CENTIMETER', 'CUBIC_MILLIMETER', 'CUBIC_KILOMETER', 'LITER', 'CUBIC_INCH', 'CUBIC_FOOT', 'CUBIC_YARD', 'CUBIC_MILE', 'GALLON', 'QUART', 'PINT', 'CUP', 'FLUID_OUNCE', 'BARREL', 'BUSHEL', 'CORD', 'CUBIC_FATHOM', 'TABLESPOON', 'TEASPOON', 'PINCH', 'DASH', 'DROP', 'FIFTH', 'DRAM', 'GILL', 'PECK', 'SACK', 'SHOT', 'STRIKE'], '_member_map_': {'CUBIC_METER': <UnitVolumeFormat.CUBIC_METER: 'cubic_meter'>, 'CUBIC_CENTIMETER': <UnitVolumeFormat.CUBIC_CENTIMETER: 'cubic_centimeter'>, 'CUBIC_MILLIMETER': <UnitVolumeFormat.CUBIC_MILLIMETER: 'cubic_millimeter'>, 'CUBIC_KILOMETER': <UnitVolumeFormat.CUBIC_KILOMETER: 'cubic_kilometer'>, 'LITER': <UnitVolumeFormat.LITER: 'liter'>, 'CUBIC_INCH': <UnitVolumeFormat.CUBIC_INCH: 'cubic_inch'>, 'CUBIC_FOOT': <UnitVolumeFormat.CUBIC_FOOT: 'cubic_foot'>, 'CUBIC_YARD': <UnitVolumeFormat.CUBIC_YARD: 'cubic_yard'>, 'CUBIC_MILE': <UnitVolumeFormat.CUBIC_MILE: 'cubic_mile'>, 'GALLON': <UnitVolumeFormat.GALLON: 'gallon'>, 'QUART': <UnitVolumeFormat.QUART: 'quart'>, 'PINT': <UnitVolumeFormat.PINT: 'pint'>, 'CUP': <UnitVolumeFormat.CUP: 'cup'>, 'FLUID_OUNCE': <UnitVolumeFormat.FLUID_OUNCE: 'fluid_ounce'>, 'BARREL': <UnitVolumeFormat.BARREL: 'barrel'>, 'BUSHEL': <UnitVolumeFormat.BUSHEL: 'bushel'>, 'CORD': <UnitVolumeFormat.CORD: 'cord'>, 'CUBIC_FATHOM': <UnitVolumeFormat.CUBIC_FATHOM: 'cubic_fathom'>, 'TABLESPOON': <UnitVolumeFormat.TABLESPOON: 'tablespoon'>, 'TEASPOON': <UnitVolumeFormat.TEASPOON: 'teaspoon'>, 'PINCH': <UnitVolumeFormat.PINCH: 'pinch'>, 'DASH': <UnitVolumeFormat.DASH: 'dash'>, 'DROP': <UnitVolumeFormat.DROP: 'drop'>, 'FIFTH': <UnitVolumeFormat.FIFTH: 'fifth'>, 'DRAM': <UnitVolumeFormat.DRAM: 'dram'>, 'GILL': <UnitVolumeFormat.GILL: 'gill'>, 'PECK': <UnitVolumeFormat.PECK: 'peck'>, 'SACK': <UnitVolumeFormat.SACK: 'sack'>, 'SHOT': <UnitVolumeFormat.SHOT: 'shot'>, 'STRIKE': <UnitVolumeFormat.STRIKE: 'strike'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'cubic_meter': <UnitVolumeFormat.CUBIC_METER: 'cubic_meter'>, 'cubic_centimeter': <UnitVolumeFormat.CUBIC_CENTIMETER: 'cubic_centimeter'>, 'cubic_millimeter': <UnitVolumeFormat.CUBIC_MILLIMETER: 'cubic_millimeter'>, 'cubic_kilometer': <UnitVolumeFormat.CUBIC_KILOMETER: 'cubic_kilometer'>, 'liter': <UnitVolumeFormat.LITER: 'liter'>, 'cubic_inch': <UnitVolumeFormat.CUBIC_INCH: 'cubic_inch'>, 'cubic_foot': <UnitVolumeFormat.CUBIC_FOOT: 'cubic_foot'>, 'cubic_yard': <UnitVolumeFormat.CUBIC_YARD: 'cubic_yard'>, 'cubic_mile': <UnitVolumeFormat.CUBIC_MILE: 'cubic_mile'>, 'gallon': <UnitVolumeFormat.GALLON: 'gallon'>, 'quart': <UnitVolumeFormat.QUART: 'quart'>, 'pint': <UnitVolumeFormat.PINT: 'pint'>, 'cup': <UnitVolumeFormat.CUP: 'cup'>, 'fluid_ounce': <UnitVolumeFormat.FLUID_OUNCE: 'fluid_ounce'>, 'barrel': <UnitVolumeFormat.BARREL: 'barrel'>, 'bushel': <UnitVolumeFormat.BUSHEL: 'bushel'>, 'cord': <UnitVolumeFormat.CORD: 'cord'>, 'cubic_fathom': <UnitVolumeFormat.CUBIC_FATHOM: 'cubic_fathom'>, 'tablespoon': <UnitVolumeFormat.TABLESPOON: 'tablespoon'>, 'teaspoon': <UnitVolumeFormat.TEASPOON: 'teaspoon'>, 'pinch': <UnitVolumeFormat.PINCH: 'pinch'>, 'dash': <UnitVolumeFormat.DASH: 'dash'>, 'drop': <UnitVolumeFormat.DROP: 'drop'>, 'fifth': <UnitVolumeFormat.FIFTH: 'fifth'>, 'dram': <UnitVolumeFormat.DRAM: 'dram'>, 'gill': <UnitVolumeFormat.GILL: 'gill'>, 'peck': <UnitVolumeFormat.PECK: 'peck'>, 'sack': <UnitVolumeFormat.SACK: 'sack'>, 'shot': <UnitVolumeFormat.SHOT: 'shot'>, 'strike': <UnitVolumeFormat.STRIKE: 'strike'>}, 'CUBIC_METER': <UnitVolumeFormat.CUBIC_METER: 'cubic_meter'>, 'CUBIC_CENTIMETER': <UnitVolumeFormat.CUBIC_CENTIMETER: 'cubic_centimeter'>, 'CUBIC_MILLIMETER': <UnitVolumeFormat.CUBIC_MILLIMETER: 'cubic_millimeter'>, 'CUBIC_KILOMETER': <UnitVolumeFormat.CUBIC_KILOMETER: 'cubic_kilometer'>, 'LITER': <UnitVolumeFormat.LITER: 'liter'>, 'CUBIC_INCH': <UnitVolumeFormat.CUBIC_INCH: 'cubic_inch'>, 'CUBIC_FOOT': <UnitVolumeFormat.CUBIC_FOOT: 'cubic_foot'>, 'CUBIC_YARD': <UnitVolumeFormat.CUBIC_YARD: 'cubic_yard'>, 'CUBIC_MILE': <UnitVolumeFormat.CUBIC_MILE: 'cubic_mile'>, 'GALLON': <UnitVolumeFormat.GALLON: 'gallon'>, 'QUART': <UnitVolumeFormat.QUART: 'quart'>, 'PINT': <UnitVolumeFormat.PINT: 'pint'>, 'CUP': <UnitVolumeFormat.CUP: 'cup'>, 'FLUID_OUNCE': <UnitVolumeFormat.FLUID_OUNCE: 'fluid_ounce'>, 'BARREL': <UnitVolumeFormat.BARREL: 'barrel'>, 'BUSHEL': <UnitVolumeFormat.BUSHEL: 'bushel'>, 'CORD': <UnitVolumeFormat.CORD: 'cord'>, 'CUBIC_FATHOM': <UnitVolumeFormat.CUBIC_FATHOM: 'cubic_fathom'>, 'TABLESPOON': <UnitVolumeFormat.TABLESPOON: 'tablespoon'>, 'TEASPOON': <UnitVolumeFormat.TEASPOON: 'teaspoon'>, 'PINCH': <UnitVolumeFormat.PINCH: 'pinch'>, 'DASH': <UnitVolumeFormat.DASH: 'dash'>, 'DROP': <UnitVolumeFormat.DROP: 'drop'>, 'FIFTH': <UnitVolumeFormat.FIFTH: 'fifth'>, 'DRAM': <UnitVolumeFormat.DRAM: 'dram'>, 'GILL': <UnitVolumeFormat.GILL: 'gill'>, 'PECK': <UnitVolumeFormat.PECK: 'peck'>, 'SACK': <UnitVolumeFormat.SACK: 'sack'>, 'SHOT': <UnitVolumeFormat.SHOT: 'shot'>, 'STRIKE': <UnitVolumeFormat.STRIKE: 'strike'>, '__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_ = {'BARREL': UnitVolumeFormat.BARREL, 'BUSHEL': UnitVolumeFormat.BUSHEL, 'CORD': UnitVolumeFormat.CORD, 'CUBIC_CENTIMETER': UnitVolumeFormat.CUBIC_CENTIMETER, 'CUBIC_FATHOM': UnitVolumeFormat.CUBIC_FATHOM, 'CUBIC_FOOT': UnitVolumeFormat.CUBIC_FOOT, 'CUBIC_INCH': UnitVolumeFormat.CUBIC_INCH, 'CUBIC_KILOMETER': UnitVolumeFormat.CUBIC_KILOMETER, 'CUBIC_METER': UnitVolumeFormat.CUBIC_METER, 'CUBIC_MILE': UnitVolumeFormat.CUBIC_MILE, 'CUBIC_MILLIMETER': UnitVolumeFormat.CUBIC_MILLIMETER, 'CUBIC_YARD': UnitVolumeFormat.CUBIC_YARD, 'CUP': UnitVolumeFormat.CUP, 'DASH': UnitVolumeFormat.DASH, 'DRAM': UnitVolumeFormat.DRAM, 'DROP': UnitVolumeFormat.DROP, 'FIFTH': UnitVolumeFormat.FIFTH, 'FLUID_OUNCE': UnitVolumeFormat.FLUID_OUNCE, 'GALLON': UnitVolumeFormat.GALLON, 'GILL': UnitVolumeFormat.GILL, 'LITER': UnitVolumeFormat.LITER, 'PECK': UnitVolumeFormat.PECK, 'PINCH': UnitVolumeFormat.PINCH, 'PINT': UnitVolumeFormat.PINT, 'QUART': UnitVolumeFormat.QUART, 'SACK': UnitVolumeFormat.SACK, 'SHOT': UnitVolumeFormat.SHOT, 'STRIKE': UnitVolumeFormat.STRIKE, 'TABLESPOON': UnitVolumeFormat.TABLESPOON, 'TEASPOON': UnitVolumeFormat.TEASPOON}[source]
- _member_names_ = ['CUBIC_METER', 'CUBIC_CENTIMETER', 'CUBIC_MILLIMETER', 'CUBIC_KILOMETER', 'LITER', 'CUBIC_INCH', 'CUBIC_FOOT', 'CUBIC_YARD', 'CUBIC_MILE', 'GALLON', 'QUART', 'PINT', 'CUP', 'FLUID_OUNCE', 'BARREL', 'BUSHEL', 'CORD', 'CUBIC_FATHOM', 'TABLESPOON', 'TEASPOON', 'PINCH', 'DASH', 'DROP', 'FIFTH', 'DRAM', 'GILL', 'PECK', 'SACK', 'SHOT', 'STRIKE'][source]
- _value2member_map_ = {'barrel': UnitVolumeFormat.BARREL, 'bushel': UnitVolumeFormat.BUSHEL, 'cord': UnitVolumeFormat.CORD, 'cubic_centimeter': UnitVolumeFormat.CUBIC_CENTIMETER, 'cubic_fathom': UnitVolumeFormat.CUBIC_FATHOM, 'cubic_foot': UnitVolumeFormat.CUBIC_FOOT, 'cubic_inch': UnitVolumeFormat.CUBIC_INCH, 'cubic_kilometer': UnitVolumeFormat.CUBIC_KILOMETER, 'cubic_meter': UnitVolumeFormat.CUBIC_METER, 'cubic_mile': UnitVolumeFormat.CUBIC_MILE, 'cubic_millimeter': UnitVolumeFormat.CUBIC_MILLIMETER, 'cubic_yard': UnitVolumeFormat.CUBIC_YARD, 'cup': UnitVolumeFormat.CUP, 'dash': UnitVolumeFormat.DASH, 'dram': UnitVolumeFormat.DRAM, 'drop': UnitVolumeFormat.DROP, 'fifth': UnitVolumeFormat.FIFTH, 'fluid_ounce': UnitVolumeFormat.FLUID_OUNCE, 'gallon': UnitVolumeFormat.GALLON, 'gill': UnitVolumeFormat.GILL, 'liter': UnitVolumeFormat.LITER, 'peck': UnitVolumeFormat.PECK, 'pinch': UnitVolumeFormat.PINCH, 'pint': UnitVolumeFormat.PINT, 'quart': UnitVolumeFormat.QUART, 'sack': UnitVolumeFormat.SACK, 'shot': UnitVolumeFormat.SHOT, 'strike': UnitVolumeFormat.STRIKE, 'tablespoon': UnitVolumeFormat.TABLESPOON, 'teaspoon': UnitVolumeFormat.TEASPOON}[source]