Temperature conversion between C/D/F/K/Ra/Re/N/Rø
Project description
temp2temp is a temperature conversion package between Celcius, Delisle, Fahrenheit, Kelvin, Rankine, Reaumur, Newton and Romer
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.
It’s is currently in beta stage as I am now in the process now to properly test and verify the results and if there’s any conversions errors that could happen.
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 licence. See LICENCE.txt for details.
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
Hashes for temp2temp-1.0.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec4ea6bdef3904256251a520dad29cd265d162f2f996f87c6426e7b58b3aeaa4 |
|
MD5 | ca56272efb0de7a3e516ce369422fc3b |
|
BLAKE2b-256 | 902ee65af2830823e1dc1d246d76d0d20679b5784d8d71cdf672760cfe61b917 |