Files
kittycad.py/kittycad/models/unit_density_format.py
Jess Frazelle fcd317aae4 bump (#80)
* bump

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* some fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* YOYO NEW API SPEC!

* reformat

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* for now force true

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* run the tests on generations

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix some types

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* float to top

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix mypy

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* more noqa

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* ruff pass

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add docs

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* even less mypy errors

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add test

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixups

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* cleanup

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* new path

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes for mypy

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* skip tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 00:58:06 -07:00

30 lines
1.5 KiB
Python

from enum import Enum
class UnitDensityFormat(str, Enum):
"""The valid types of density unit formats.""" # noqa: E501
"""# <https://en.wikipedia.org/wiki/Kilogram_per_cubic_metre> """ # noqa: E501
KILOGRAMS_PER_CUBIC_METER = "kilograms_per_cubic_meter"
"""# <https://en.wikipedia.org/wiki/Specific_density> """ # noqa: E501
GRAMS_PER_MILLILITER = "grams_per_milliliter"
"""# <https://en.wikipedia.org/wiki/Kilogram_per_cubic_metre> """ # noqa: E501
KILOGRAMS_PER_LITER = "kilograms_per_liter"
"""# <https://en.wikipedia.org/wiki/Density#Unit> """ # noqa: E501
OUNCES_PER_CUBIC_FOOT = "ounces_per_cubic_foot"
"""# <https://en.wikipedia.org/wiki/Density#Unit> """ # noqa: E501
OUNCES_PER_CUBIC_INCH = "ounces_per_cubic_inch"
"""# <https://en.wikipedia.org/wiki/Density#Unit> """ # noqa: E501
OUNCES_PER_GALLON = "ounces_per_gallon"
"""# <https://en.wikipedia.org/wiki/Density#Unit> """ # noqa: E501
POUNDS_PER_CUBIC_FOOT = "pounds_per_cubic_foot"
"""# <https://en.wikipedia.org/wiki/Density#Unit> """ # noqa: E501
POUNDS_PER_CUBIC_INCH = "pounds_per_cubic_inch"
"""# <https://en.wikipedia.org/wiki/Density#Unit> """ # noqa: E501
POUNDS_PER_GALLON = "pounds_per_gallon"
"""# <https://en.wikipedia.org/wiki/Slug_(unit)> and <https://en.wikipedia.org/wiki/Density#Unit> """ # noqa: E501
SLUGS_PER_CUBIC_FOOT = "slugs_per_cubic_foot"
def __str__(self) -> str:
return str(self.value)