tempmorph
1.0.0
O TempMorph é um pacote Python que ajuda a converter uma temperatura de uma escala para outra. Atualmente, esta versão funciona em Celcius, Fahrenheit, Kelvin, Reumur e Rankine.
pip install tempmorph==0.0.1
Coisas a serem observadas:
1 = Celcius
2 = Fahrenheit
3 = Kelvin
4 = Reaumur
5 = Rankine
Saída = 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 ()Saída = string + símbolo:
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'Clique aqui para abrir o site Pypi