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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tempmorph-0.0.1.tar.gz.
File metadata
- Download URL: tempmorph-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e2be61318c907ec39630d7b38856dda32227b15bc02a4d161b671ca5efb2883
|
|
| MD5 |
211f81c2b906e7df5c2bb63c438e8bf8
|
|
| BLAKE2b-256 |
ecfd06d0cb7a03a8318343b320daaa61f54677013393fa68968e09ffa716a198
|
File details
Details for the file tempmorph-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tempmorph-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4857c81fb88d94683a398a6208e84328cb1b5c52268b2dd8a90eec574284fd45
|
|
| MD5 |
51f59525a11cc32539b9c07f784dec7f
|
|
| BLAKE2b-256 |
f4de71372995455ef36d07c9014c75f2a502f7fc104689081dd4f17bc5c4b243
|