Skip to main content

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

Version on PyPI Licence

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


Download files

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

Source Distribution

temp2temp-1.0.0b2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

temp2temp-1.0.0b2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file temp2temp-1.0.0b2.tar.gz.

File metadata

  • Download URL: temp2temp-1.0.0b2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for temp2temp-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 23b055fc7e9e67ecf82ae7b391f5334b84e99049bc4af3ea09a9e8800f94f484
MD5 205244a7f8b051a1b95271c918963b7d
BLAKE2b-256 9dfbfe69dcd35b747f7ecf27b22624090002630213dea7da0c6595ed663be112

See more details on using hashes here.

File details

Details for the file temp2temp-1.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for temp2temp-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbb45c583a76fbd33890c12efcb1860bac7407e7c9a292b6ce1eea03a31d1f8e
MD5 c69f72dbc8340f133625fbb5113d8232
BLAKE2b-256 b6b283a5f74d24eb449f4d328d6d4ab549cd0e746980d254b1a83298cc5dffcc

See more details on using hashes here.

Supported by

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