Skip to content

A python package that helps you with converting temperature one scale to another scale.

License

Notifications You must be signed in to change notification settings

Sharkfin07/tempmorph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

TempMorph

20221127_112246 TempMorph is a Python package that helps you convert a temperature from one scale to another. This version currently works on Celcius, Fahrenheit, Kelvin, Reaumur, and Rankine.

Install

pip install tempmorph==0.0.1

Usage

Things to Note:
1 = Celcius
2 = Fahrenheit
3 = Kelvin
4 = Reaumur
5 = Rankine

Output = 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'

PyPI

Click here to open the PyPI site

About

A python package that helps you with converting temperature one scale to another scale.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages