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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size temp2temp-1.0.0-py3-none-any.whl (5.2 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size temp2temp-1.0.0.tar.gz (3.2 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for temp2temp-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ca6dceb241b163f86483e3060744b7f5aec372bd36fe426cc6124f0166d6023 |
|
MD5 | 97b8c07f523cb54aa28a046215a6d598 |
|
BLAKE2-256 | 800a385ee49773f33b0822a0d64e5707952c1552288f654dc2cc4d47287c12c7 |