kittycad.models.unit_energy_format.UnitEnergyFormat

class kittycad.models.unit_energy_format.UnitEnergyFormat(value)[source][source]

Bases: str, enum.Enum

The valid types of energy unit formats.

__init__()[source]

Attributes

JOULE

//en.wikipedia.org/wiki/Calorie>

CALORIE

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

KILOWATT_HOUR

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

WATT_HOUR

//en.wikipedia.org/wiki/British_thermal_unit>

BRITISH_THERMAL_UNIT

//en.wikipedia.org/wiki/Therm#Definitions>

BRITISH_THERMAL_UNIT_ISO

//en.wikipedia.org/wiki/Therm#Definitions>

BRITISH_THERMAL_UNIT59

//en.wikipedia.org/wiki/Therm>

THERM

//en.wikipedia.org/wiki/Foot-pound_(energy)>

FOOT_POUND

BRITISH_THERMAL_UNIT = 'british_thermal_unit'[source]

//en.wikipedia.org/wiki/Therm#Definitions>

Type

# <https

BRITISH_THERMAL_UNIT59 = 'british_thermal_unit59'[source]

//en.wikipedia.org/wiki/Therm>

Type

# <https

BRITISH_THERMAL_UNIT_ISO = 'british_thermal_unit_iso'[source]

//en.wikipedia.org/wiki/Therm#Definitions>

Type

# <https

CALORIE = 'calorie'[source]

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

Type

# <https

FOOT_POUND = 'foot_pound'[source]
JOULE = 'joule'[source]

//en.wikipedia.org/wiki/Calorie>

Type

# <https

KILOWATT_HOUR = 'kilowatt_hour'[source]

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

Type

# <https

THERM = 'therm'[source]

//en.wikipedia.org/wiki/Foot-pound_(energy)>

Type

# <https

WATT_HOUR = 'watt_hour'[source]

//en.wikipedia.org/wiki/British_thermal_unit>

Type

# <https

__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_energy_format', '__doc__': 'The valid types of energy unit formats.', '__str__': <function UnitEnergyFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitEnergyFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitEnergyFormat' objects>, '_member_names_': ['JOULE', 'CALORIE', 'KILOWATT_HOUR', 'WATT_HOUR', 'BRITISH_THERMAL_UNIT', 'BRITISH_THERMAL_UNIT_ISO', 'BRITISH_THERMAL_UNIT59', 'THERM', 'FOOT_POUND'], '_member_map_': {'JOULE': <UnitEnergyFormat.JOULE: 'joule'>, 'CALORIE': <UnitEnergyFormat.CALORIE: 'calorie'>, 'KILOWATT_HOUR': <UnitEnergyFormat.KILOWATT_HOUR: 'kilowatt_hour'>, 'WATT_HOUR': <UnitEnergyFormat.WATT_HOUR: 'watt_hour'>, 'BRITISH_THERMAL_UNIT': <UnitEnergyFormat.BRITISH_THERMAL_UNIT: 'british_thermal_unit'>, 'BRITISH_THERMAL_UNIT_ISO': <UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO: 'british_thermal_unit_iso'>, 'BRITISH_THERMAL_UNIT59': <UnitEnergyFormat.BRITISH_THERMAL_UNIT59: 'british_thermal_unit59'>, 'THERM': <UnitEnergyFormat.THERM: 'therm'>, 'FOOT_POUND': <UnitEnergyFormat.FOOT_POUND: 'foot_pound'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'joule': <UnitEnergyFormat.JOULE: 'joule'>, 'calorie': <UnitEnergyFormat.CALORIE: 'calorie'>, 'kilowatt_hour': <UnitEnergyFormat.KILOWATT_HOUR: 'kilowatt_hour'>, 'watt_hour': <UnitEnergyFormat.WATT_HOUR: 'watt_hour'>, 'british_thermal_unit': <UnitEnergyFormat.BRITISH_THERMAL_UNIT: 'british_thermal_unit'>, 'british_thermal_unit_iso': <UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO: 'british_thermal_unit_iso'>, 'british_thermal_unit59': <UnitEnergyFormat.BRITISH_THERMAL_UNIT59: 'british_thermal_unit59'>, 'therm': <UnitEnergyFormat.THERM: 'therm'>, 'foot_pound': <UnitEnergyFormat.FOOT_POUND: 'foot_pound'>}, 'JOULE': <UnitEnergyFormat.JOULE: 'joule'>, 'CALORIE': <UnitEnergyFormat.CALORIE: 'calorie'>, 'KILOWATT_HOUR': <UnitEnergyFormat.KILOWATT_HOUR: 'kilowatt_hour'>, 'WATT_HOUR': <UnitEnergyFormat.WATT_HOUR: 'watt_hour'>, 'BRITISH_THERMAL_UNIT': <UnitEnergyFormat.BRITISH_THERMAL_UNIT: 'british_thermal_unit'>, 'BRITISH_THERMAL_UNIT_ISO': <UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO: 'british_thermal_unit_iso'>, 'BRITISH_THERMAL_UNIT59': <UnitEnergyFormat.BRITISH_THERMAL_UNIT59: 'british_thermal_unit59'>, 'THERM': <UnitEnergyFormat.THERM: 'therm'>, 'FOOT_POUND': <UnitEnergyFormat.FOOT_POUND: 'foot_pound'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.unit_energy_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_ = {'BRITISH_THERMAL_UNIT': UnitEnergyFormat.BRITISH_THERMAL_UNIT, 'BRITISH_THERMAL_UNIT59': UnitEnergyFormat.BRITISH_THERMAL_UNIT59, 'BRITISH_THERMAL_UNIT_ISO': UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO, 'CALORIE': UnitEnergyFormat.CALORIE, 'FOOT_POUND': UnitEnergyFormat.FOOT_POUND, 'JOULE': UnitEnergyFormat.JOULE, 'KILOWATT_HOUR': UnitEnergyFormat.KILOWATT_HOUR, 'THERM': UnitEnergyFormat.THERM, 'WATT_HOUR': UnitEnergyFormat.WATT_HOUR}[source]
_member_names_ = ['JOULE', 'CALORIE', 'KILOWATT_HOUR', 'WATT_HOUR', 'BRITISH_THERMAL_UNIT', 'BRITISH_THERMAL_UNIT_ISO', 'BRITISH_THERMAL_UNIT59', 'THERM', 'FOOT_POUND'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'british_thermal_unit': UnitEnergyFormat.BRITISH_THERMAL_UNIT, 'british_thermal_unit59': UnitEnergyFormat.BRITISH_THERMAL_UNIT59, 'british_thermal_unit_iso': UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO, 'calorie': UnitEnergyFormat.CALORIE, 'foot_pound': UnitEnergyFormat.FOOT_POUND, 'joule': UnitEnergyFormat.JOULE, 'kilowatt_hour': UnitEnergyFormat.KILOWATT_HOUR, 'therm': UnitEnergyFormat.THERM, 'watt_hour': UnitEnergyFormat.WATT_HOUR}[source]