kittycad.models.unit_power.UnitPower
- class kittycad.models.unit_power.UnitPower(value)[source][source]
-
The valid types of power units.
Attributes
//en.wikipedia.org/wiki/Horsepower>
//en.wikipedia.org/wiki/Kilowatt>
//en.wikipedia.org/wiki/Horsepower#Metric_horsepower>
//en.wikipedia.org/wiki/Microwatt>
//en.wikipedia.org/wiki/Milliwatt>
//en.wikipedia.org/wiki/Watt>
- BTU_PER_MINUTE = 'btu_per_minute'[source]
//en.wikipedia.org/wiki/Horsepower>
- Type:
# Horsepower (hp) <https
- KILOWATTS = 'kilowatts'[source]
//en.wikipedia.org/wiki/Horsepower#Metric_horsepower>
- Type:
# Metric horsepower (PS) <https
- METRIC_HORSEPOWER = 'metric_horsepower'[source]
//en.wikipedia.org/wiki/Microwatt>
- Type:
# Microwatts <https
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_power', '__doc__': 'The valid types of power units.', '__str__': <function UnitPower.__str__>, '__dict__': <attribute '__dict__' of 'UnitPower' objects>, '__weakref__': <attribute '__weakref__' of 'UnitPower' objects>, '_member_names_': ['BTU_PER_MINUTE', 'HORSEPOWER', 'KILOWATTS', 'METRIC_HORSEPOWER', 'MICROWATTS', 'MILLIWATTS', 'WATTS'], '_member_map_': {'BTU_PER_MINUTE': <UnitPower.BTU_PER_MINUTE: 'btu_per_minute'>, 'HORSEPOWER': <UnitPower.HORSEPOWER: 'horsepower'>, 'KILOWATTS': <UnitPower.KILOWATTS: 'kilowatts'>, 'METRIC_HORSEPOWER': <UnitPower.METRIC_HORSEPOWER: 'metric_horsepower'>, 'MICROWATTS': <UnitPower.MICROWATTS: 'microwatts'>, 'MILLIWATTS': <UnitPower.MILLIWATTS: 'milliwatts'>, 'WATTS': <UnitPower.WATTS: 'watts'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'btu_per_minute': <UnitPower.BTU_PER_MINUTE: 'btu_per_minute'>, 'horsepower': <UnitPower.HORSEPOWER: 'horsepower'>, 'kilowatts': <UnitPower.KILOWATTS: 'kilowatts'>, 'metric_horsepower': <UnitPower.METRIC_HORSEPOWER: 'metric_horsepower'>, 'microwatts': <UnitPower.MICROWATTS: 'microwatts'>, 'milliwatts': <UnitPower.MILLIWATTS: 'milliwatts'>, 'watts': <UnitPower.WATTS: 'watts'>}, 'BTU_PER_MINUTE': <UnitPower.BTU_PER_MINUTE: 'btu_per_minute'>, 'HORSEPOWER': <UnitPower.HORSEPOWER: 'horsepower'>, 'KILOWATTS': <UnitPower.KILOWATTS: 'kilowatts'>, 'METRIC_HORSEPOWER': <UnitPower.METRIC_HORSEPOWER: 'metric_horsepower'>, 'MICROWATTS': <UnitPower.MICROWATTS: 'microwatts'>, 'MILLIWATTS': <UnitPower.MILLIWATTS: 'milliwatts'>, 'WATTS': <UnitPower.WATTS: 'watts'>, '__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_ = {'BTU_PER_MINUTE': UnitPower.BTU_PER_MINUTE, 'HORSEPOWER': UnitPower.HORSEPOWER, 'KILOWATTS': UnitPower.KILOWATTS, 'METRIC_HORSEPOWER': UnitPower.METRIC_HORSEPOWER, 'MICROWATTS': UnitPower.MICROWATTS, 'MILLIWATTS': UnitPower.MILLIWATTS, 'WATTS': UnitPower.WATTS}[source]