kittycad.models.unit_power

Classes

UnitPower(value)

The valid types of power units.

class kittycad.models.unit_power.UnitPower(value)[source][source]

The valid types of power units.

BTU_PER_MINUTE = 'btu_per_minute'[source]

//en.wikipedia.org/wiki/Horsepower>

Type:

# Horsepower (hp) <https

HORSEPOWER = 'horsepower'[source]

//en.wikipedia.org/wiki/Kilowatt>

Type:

# Kilowatts <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

MICROWATTS = 'microwatts'[source]

//en.wikipedia.org/wiki/Milliwatt>

Type:

# Millwatts <https

MILLIWATTS = 'milliwatts'[source]

//en.wikipedia.org/wiki/Watt>

Type:

# Watts <https

WATTS = 'watts'[source]
__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]
__module__ = 'kittycad.models.unit_power'[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]
_member_names_ = ['BTU_PER_MINUTE', 'HORSEPOWER', 'KILOWATTS', 'METRIC_HORSEPOWER', 'MICROWATTS', 'MILLIWATTS', 'WATTS'][source]
_member_type_[source]

alias of str

_value2member_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]