Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temp2temp

temp2temp is a temperature conversion package between Celcius, Delisle, Fahrenheit, Kelvin, Rankine, Reaumur, Newton and Romer

Version on PyPI License

Introduction

A complete temperature conversion package for python3. Simply convert from Celcius to example Reaumor or Newton to Kelvin.

Background

I could only find packages that had Celsius to Fahrenheit or Kelvin, which I found a bit lacking as I would not define it as a 'complete' package that others may need in the future.

Usage example

Import all temperature conversions

import temp2temp

temp2temp.Celsius.to_kelvin(321)
>>> 594.15

temp2temp.Rankine.to_newton(321)
>>> -31.2895
from temp2temp import *

Celsius.to_kelvin(321)
>>> 594.15

Rankine.to_newton(321)
>>> -31.2895

Import just specific classes

from temp2temp import Celsius, Rankine

temp2temp.Celsius.to_kelvin(321)
>>> 594.15

temp2temp.Rankine.to_newton(321)
>>> -31.2895

Licence

temp2temp is licensed under the MIT license. See LICENSE.txt for details.

Releases

Packages

Used by

Contributors

Languages