Skip to main content

A package that helps you with converting temperature scales. Currently works with Celcius, Fahrenheit, Kelvin, Reaumur, and Rankine.

Project description

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.

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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tempmorph-0.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

tempmorph-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page