tempmorph
1.0.0
Tempmorph es un paquete Python que lo ayuda a convertir una temperatura de una escala a otra. Esta versión actualmente funciona en Celcius, Fahrenheit, Kelvin, Reaumur y Rankine.
pip install tempmorph==0.0.1
Cosas a tener en cuenta:
1 = Celcius
2 = Fahrenheit
3 = Kelvin
4 = Reaumur
5 = Rankine
Salida = float:
from tempmorph . conv import TempConv
# 30 is the value, 1 is Celcius (scale)
temp = TempConv ( 30 , 1 )
# Returns 87.6 (30 Celcius in Fahrenheit)
temp . fahrenheit ()Output = String + Symbol:
from tempmorph . conv import TempConv
temp_str = TempConv ( 373 , 3 )
temp_str . celcius ( 1 )
# ^
# By adding one as an argument, output will be '99.85 °C'Haga clic aquí para abrir el sitio Pypi