2022-07-25 22:46:48 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class UnitEnergyFormat(str, Enum):
|
|
|
|
JOULE = 'joule'
|
|
|
|
CALORIE = 'calorie'
|
2023-01-27 14:50:50 -08:00
|
|
|
KILOWATT_HOUR = 'kilowatt_hour'
|
|
|
|
WATT_HOUR = 'watt_hour'
|
2022-07-25 22:46:48 +00:00
|
|
|
BRITISH_THERMAL_UNIT = 'british_thermal_unit'
|
|
|
|
BRITISH_THERMAL_UNIT_ISO = 'british_thermal_unit_iso'
|
|
|
|
BRITISH_THERMAL_UNIT59 = 'british_thermal_unit59'
|
2023-01-27 14:50:50 -08:00
|
|
|
THERM = 'therm'
|
2022-07-25 22:46:48 +00:00
|
|
|
FOOT_POUND = 'foot_pound'
|
|
|
|
|
|
|
|
def __str__(self) -> str:
|
|
|
|
return str(self.value)
|