kittycad.models.unit_volume.UnitVolume

class kittycad.models.unit_volume.UnitVolume(value)[source][source]

Bases: str, Enum

The valid types of volume units.

__init__()[source]

Attributes

CM3

//en.wikipedia.org/wiki/Cubic_foot>

FT3

//en.wikipedia.org/wiki/Cubic_inch>

IN3

//en.wikipedia.org/wiki/Cubic_meter>

M3

//en.wikipedia.org/wiki/Cubic_yard>

YD3

//en.wikipedia.org/wiki/Fluid_ounce>

USFLOZ

//en.wikipedia.org/wiki/Gallon>

USGAL

//en.wikipedia.org/wiki/Litre>

L

//en.wikipedia.org/wiki/Litre>

ML

CM3 = 'cm3'[source]

//en.wikipedia.org/wiki/Cubic_foot>

Type:

# Cubic feet (ft³) <https

FT3 = 'ft3'[source]

//en.wikipedia.org/wiki/Cubic_inch>

Type:

# Cubic inches (cu in or in³) <https

IN3 = 'in3'[source]

//en.wikipedia.org/wiki/Cubic_meter>

Type:

# Cubic meters (m³) <https

L = 'l'[source]

//en.wikipedia.org/wiki/Litre>

Type:

# Milliliters (ml) <https

M3 = 'm3'[source]

//en.wikipedia.org/wiki/Cubic_yard>

Type:

# Cubic yards (yd³) <https

ML = 'ml'[source]
USFLOZ = 'usfloz'[source]

//en.wikipedia.org/wiki/Gallon>

Type:

# US Gallons (gal US) <https

USGAL = 'usgal'[source]

//en.wikipedia.org/wiki/Litre>

Type:

# Liters (l) <https

YD3 = 'yd3'[source]

//en.wikipedia.org/wiki/Fluid_ounce>

Type:

# US Fluid Ounces (fl oz) <https

__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_volume', '__doc__': 'The valid types of volume units.', '__str__': <function UnitVolume.__str__>, '__dict__': <attribute '__dict__' of 'UnitVolume' objects>, '__weakref__': <attribute '__weakref__' of 'UnitVolume' objects>, '_member_names_': ['CM3', 'FT3', 'IN3', 'M3', 'YD3', 'USFLOZ', 'USGAL', 'L', 'ML'], '_member_map_': {'CM3': <UnitVolume.CM3: 'cm3'>, 'FT3': <UnitVolume.FT3: 'ft3'>, 'IN3': <UnitVolume.IN3: 'in3'>, 'M3': <UnitVolume.M3: 'm3'>, 'YD3': <UnitVolume.YD3: 'yd3'>, 'USFLOZ': <UnitVolume.USFLOZ: 'usfloz'>, 'USGAL': <UnitVolume.USGAL: 'usgal'>, 'L': <UnitVolume.L: 'l'>, 'ML': <UnitVolume.ML: 'ml'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'cm3': <UnitVolume.CM3: 'cm3'>, 'ft3': <UnitVolume.FT3: 'ft3'>, 'in3': <UnitVolume.IN3: 'in3'>, 'm3': <UnitVolume.M3: 'm3'>, 'yd3': <UnitVolume.YD3: 'yd3'>, 'usfloz': <UnitVolume.USFLOZ: 'usfloz'>, 'usgal': <UnitVolume.USGAL: 'usgal'>, 'l': <UnitVolume.L: 'l'>, 'ml': <UnitVolume.ML: 'ml'>}, 'CM3': <UnitVolume.CM3: 'cm3'>, 'FT3': <UnitVolume.FT3: 'ft3'>, 'IN3': <UnitVolume.IN3: 'in3'>, 'M3': <UnitVolume.M3: 'm3'>, 'YD3': <UnitVolume.YD3: 'yd3'>, 'USFLOZ': <UnitVolume.USFLOZ: 'usfloz'>, 'USGAL': <UnitVolume.USGAL: 'usgal'>, 'L': <UnitVolume.L: 'l'>, 'ML': <UnitVolume.ML: 'ml'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_volume'[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_ = {'CM3': UnitVolume.CM3, 'FT3': UnitVolume.FT3, 'IN3': UnitVolume.IN3, 'L': UnitVolume.L, 'M3': UnitVolume.M3, 'ML': UnitVolume.ML, 'USFLOZ': UnitVolume.USFLOZ, 'USGAL': UnitVolume.USGAL, 'YD3': UnitVolume.YD3}[source]
_member_names_ = ['CM3', 'FT3', 'IN3', 'M3', 'YD3', 'USFLOZ', 'USGAL', 'L', 'ML'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'cm3': UnitVolume.CM3, 'ft3': UnitVolume.FT3, 'in3': UnitVolume.IN3, 'l': UnitVolume.L, 'm3': UnitVolume.M3, 'ml': UnitVolume.ML, 'usfloz': UnitVolume.USFLOZ, 'usgal': UnitVolume.USGAL, 'yd3': UnitVolume.YD3}[source]