skip to navigation
skip to content

pytemperature 1.0

Scale of temperature

A module that helps to convert temperature units.

Install

pip install pytemperature

Examples of usage

>>> import pytemperature
>>> pytemperature.c2f(37.78) # Celsius to Fahrenheit
100.0
>>> pytemperature.f2c(104) # Fahrenheit to Celsius
40.0
>>> pytemperature.c2k(40) # Celsius to Kelvin
313.15
>>> pytemperature.k2c(273.15) # Kelvin to Celsius
0.0
>>> pytemperature.k2f(273.15) # Kelvin to Fahrenheit
31.98
>>> pytemperature.f2k(100) # Fahrenheit to Kelvin
310.93
>>> pytemperature.r2c(80) # Romoe to Celsius
100.0
>>> pytemperature.c2r(100) # Romoe to Celsius
80.0
>>> pytemperature.r2k(80) #Romoe to Celsius
373.15
 
File Type Py Version Uploaded on Size
pytemperature-1.0.zip (md5) Source 2015-04-09 2KB