A package that helps you with converting temperature scales. Currently works with Celcius, Fahrenheit, Kelvin, Reaumur, and Rankine.
Project description
TempMorph
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for tempmorph-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4857c81fb88d94683a398a6208e84328cb1b5c52268b2dd8a90eec574284fd45 |
|
MD5 | 51f59525a11cc32539b9c07f784dec7f |
|
BLAKE2b-256 | f4de71372995455ef36d07c9014c75f2a502f7fc104689081dd4f17bc5c4b243 |