kittycad.models.unit_density_format.UnitDensityFormat

class kittycad.models.unit_density_format.UnitDensityFormat(value)[source][source]

Bases: str, enum.Enum

The valid types of density unit formats.

__init__()[source]

Attributes

KILOGRAMS_PER_CUBIC_METER

//en.wikipedia.org/wiki/Specific_density>

GRAMS_PER_MILLILITER

//en.wikipedia.org/wiki/Kilogram_per_cubic_metre>

KILOGRAMS_PER_LITER

//en.wikipedia.org/wiki/Density#Unit>

OUNCES_PER_CUBIC_FOOT

//en.wikipedia.org/wiki/Density#Unit>

OUNCES_PER_CUBIC_INCH

//en.wikipedia.org/wiki/Density#Unit>

OUNCES_PER_GALLON

//en.wikipedia.org/wiki/Density#Unit>

POUNDS_PER_CUBIC_FOOT

//en.wikipedia.org/wiki/Density#Unit>

POUNDS_PER_CUBIC_INCH

//en.wikipedia.org/wiki/Density#Unit>

POUNDS_PER_GALLON

//en.wikipedia.org/wiki/Density#Unit>

SLUGS_PER_CUBIC_FOOT

GRAMS_PER_MILLILITER = 'grams_per_milliliter'[source]

//en.wikipedia.org/wiki/Kilogram_per_cubic_metre>

Type

# <https

KILOGRAMS_PER_CUBIC_METER = 'kilograms_per_cubic_meter'[source]

//en.wikipedia.org/wiki/Specific_density>

Type

# <https

KILOGRAMS_PER_LITER = 'kilograms_per_liter'[source]

//en.wikipedia.org/wiki/Density#Unit>

Type

# <https

OUNCES_PER_CUBIC_FOOT = 'ounces_per_cubic_foot'[source]

//en.wikipedia.org/wiki/Density#Unit>

Type

# <https

OUNCES_PER_CUBIC_INCH = 'ounces_per_cubic_inch'[source]

//en.wikipedia.org/wiki/Density#Unit>

Type

# <https

OUNCES_PER_GALLON = 'ounces_per_gallon'[source]

//en.wikipedia.org/wiki/Density#Unit>

Type

# <https

POUNDS_PER_CUBIC_FOOT = 'pounds_per_cubic_foot'[source]

//en.wikipedia.org/wiki/Density#Unit>

Type

# <https

POUNDS_PER_CUBIC_INCH = 'pounds_per_cubic_inch'[source]

//en.wikipedia.org/wiki/Density#Unit>

Type

# <https

POUNDS_PER_GALLON = 'pounds_per_gallon'[source]

//en.wikipedia.org/wiki/Density#Unit>

Type

# <https

Type

//en.wikipedia.org/wiki/Slug_(unit)> and <https

SLUGS_PER_CUBIC_FOOT = 'slugs_per_cubic_foot'[source]
__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_density_format', '__doc__': 'The valid types of density unit formats.', '__str__': <function UnitDensityFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitDensityFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitDensityFormat' objects>, '_member_names_': ['KILOGRAMS_PER_CUBIC_METER', 'GRAMS_PER_MILLILITER', 'KILOGRAMS_PER_LITER', 'OUNCES_PER_CUBIC_FOOT', 'OUNCES_PER_CUBIC_INCH', 'OUNCES_PER_GALLON', 'POUNDS_PER_CUBIC_FOOT', 'POUNDS_PER_CUBIC_INCH', 'POUNDS_PER_GALLON', 'SLUGS_PER_CUBIC_FOOT'], '_member_map_': {'KILOGRAMS_PER_CUBIC_METER': <UnitDensityFormat.KILOGRAMS_PER_CUBIC_METER: 'kilograms_per_cubic_meter'>, 'GRAMS_PER_MILLILITER': <UnitDensityFormat.GRAMS_PER_MILLILITER: 'grams_per_milliliter'>, 'KILOGRAMS_PER_LITER': <UnitDensityFormat.KILOGRAMS_PER_LITER: 'kilograms_per_liter'>, 'OUNCES_PER_CUBIC_FOOT': <UnitDensityFormat.OUNCES_PER_CUBIC_FOOT: 'ounces_per_cubic_foot'>, 'OUNCES_PER_CUBIC_INCH': <UnitDensityFormat.OUNCES_PER_CUBIC_INCH: 'ounces_per_cubic_inch'>, 'OUNCES_PER_GALLON': <UnitDensityFormat.OUNCES_PER_GALLON: 'ounces_per_gallon'>, 'POUNDS_PER_CUBIC_FOOT': <UnitDensityFormat.POUNDS_PER_CUBIC_FOOT: 'pounds_per_cubic_foot'>, 'POUNDS_PER_CUBIC_INCH': <UnitDensityFormat.POUNDS_PER_CUBIC_INCH: 'pounds_per_cubic_inch'>, 'POUNDS_PER_GALLON': <UnitDensityFormat.POUNDS_PER_GALLON: 'pounds_per_gallon'>, 'SLUGS_PER_CUBIC_FOOT': <UnitDensityFormat.SLUGS_PER_CUBIC_FOOT: 'slugs_per_cubic_foot'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'kilograms_per_cubic_meter': <UnitDensityFormat.KILOGRAMS_PER_CUBIC_METER: 'kilograms_per_cubic_meter'>, 'grams_per_milliliter': <UnitDensityFormat.GRAMS_PER_MILLILITER: 'grams_per_milliliter'>, 'kilograms_per_liter': <UnitDensityFormat.KILOGRAMS_PER_LITER: 'kilograms_per_liter'>, 'ounces_per_cubic_foot': <UnitDensityFormat.OUNCES_PER_CUBIC_FOOT: 'ounces_per_cubic_foot'>, 'ounces_per_cubic_inch': <UnitDensityFormat.OUNCES_PER_CUBIC_INCH: 'ounces_per_cubic_inch'>, 'ounces_per_gallon': <UnitDensityFormat.OUNCES_PER_GALLON: 'ounces_per_gallon'>, 'pounds_per_cubic_foot': <UnitDensityFormat.POUNDS_PER_CUBIC_FOOT: 'pounds_per_cubic_foot'>, 'pounds_per_cubic_inch': <UnitDensityFormat.POUNDS_PER_CUBIC_INCH: 'pounds_per_cubic_inch'>, 'pounds_per_gallon': <UnitDensityFormat.POUNDS_PER_GALLON: 'pounds_per_gallon'>, 'slugs_per_cubic_foot': <UnitDensityFormat.SLUGS_PER_CUBIC_FOOT: 'slugs_per_cubic_foot'>}, 'KILOGRAMS_PER_CUBIC_METER': <UnitDensityFormat.KILOGRAMS_PER_CUBIC_METER: 'kilograms_per_cubic_meter'>, 'GRAMS_PER_MILLILITER': <UnitDensityFormat.GRAMS_PER_MILLILITER: 'grams_per_milliliter'>, 'KILOGRAMS_PER_LITER': <UnitDensityFormat.KILOGRAMS_PER_LITER: 'kilograms_per_liter'>, 'OUNCES_PER_CUBIC_FOOT': <UnitDensityFormat.OUNCES_PER_CUBIC_FOOT: 'ounces_per_cubic_foot'>, 'OUNCES_PER_CUBIC_INCH': <UnitDensityFormat.OUNCES_PER_CUBIC_INCH: 'ounces_per_cubic_inch'>, 'OUNCES_PER_GALLON': <UnitDensityFormat.OUNCES_PER_GALLON: 'ounces_per_gallon'>, 'POUNDS_PER_CUBIC_FOOT': <UnitDensityFormat.POUNDS_PER_CUBIC_FOOT: 'pounds_per_cubic_foot'>, 'POUNDS_PER_CUBIC_INCH': <UnitDensityFormat.POUNDS_PER_CUBIC_INCH: 'pounds_per_cubic_inch'>, 'POUNDS_PER_GALLON': <UnitDensityFormat.POUNDS_PER_GALLON: 'pounds_per_gallon'>, 'SLUGS_PER_CUBIC_FOOT': <UnitDensityFormat.SLUGS_PER_CUBIC_FOOT: 'slugs_per_cubic_foot'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_density_format'[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_ = {'GRAMS_PER_MILLILITER': UnitDensityFormat.GRAMS_PER_MILLILITER, 'KILOGRAMS_PER_CUBIC_METER': UnitDensityFormat.KILOGRAMS_PER_CUBIC_METER, 'KILOGRAMS_PER_LITER': UnitDensityFormat.KILOGRAMS_PER_LITER, 'OUNCES_PER_CUBIC_FOOT': UnitDensityFormat.OUNCES_PER_CUBIC_FOOT, 'OUNCES_PER_CUBIC_INCH': UnitDensityFormat.OUNCES_PER_CUBIC_INCH, 'OUNCES_PER_GALLON': UnitDensityFormat.OUNCES_PER_GALLON, 'POUNDS_PER_CUBIC_FOOT': UnitDensityFormat.POUNDS_PER_CUBIC_FOOT, 'POUNDS_PER_CUBIC_INCH': UnitDensityFormat.POUNDS_PER_CUBIC_INCH, 'POUNDS_PER_GALLON': UnitDensityFormat.POUNDS_PER_GALLON, 'SLUGS_PER_CUBIC_FOOT': UnitDensityFormat.SLUGS_PER_CUBIC_FOOT}[source]
_member_names_ = ['KILOGRAMS_PER_CUBIC_METER', 'GRAMS_PER_MILLILITER', 'KILOGRAMS_PER_LITER', 'OUNCES_PER_CUBIC_FOOT', 'OUNCES_PER_CUBIC_INCH', 'OUNCES_PER_GALLON', 'POUNDS_PER_CUBIC_FOOT', 'POUNDS_PER_CUBIC_INCH', 'POUNDS_PER_GALLON', 'SLUGS_PER_CUBIC_FOOT'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'grams_per_milliliter': UnitDensityFormat.GRAMS_PER_MILLILITER, 'kilograms_per_cubic_meter': UnitDensityFormat.KILOGRAMS_PER_CUBIC_METER, 'kilograms_per_liter': UnitDensityFormat.KILOGRAMS_PER_LITER, 'ounces_per_cubic_foot': UnitDensityFormat.OUNCES_PER_CUBIC_FOOT, 'ounces_per_cubic_inch': UnitDensityFormat.OUNCES_PER_CUBIC_INCH, 'ounces_per_gallon': UnitDensityFormat.OUNCES_PER_GALLON, 'pounds_per_cubic_foot': UnitDensityFormat.POUNDS_PER_CUBIC_FOOT, 'pounds_per_cubic_inch': UnitDensityFormat.POUNDS_PER_CUBIC_INCH, 'pounds_per_gallon': UnitDensityFormat.POUNDS_PER_GALLON, 'slugs_per_cubic_foot': UnitDensityFormat.SLUGS_PER_CUBIC_FOOT}[source]