Skip to main content

Scale of temperature

Project description

A module that helps to convert temperature units.

Install

pip install pytemperature

Examples of usage

>>> import pytemperature
>>> pytemperature.c2f(37.78) # Celsius to Fahrenheit
100.0
>>> pytemperature.f2c(104) # Fahrenheit to Celsius
40.0
>>> pytemperature.c2k(40) # Celsius to Kelvin
313.15
>>> pytemperature.k2c(273.15) # Kelvin to Celsius
0.0
>>> pytemperature.k2f(273.15) # Kelvin to Fahrenheit
31.98
>>> pytemperature.f2k(100) # Fahrenheit to Kelvin
310.93
>>> pytemperature.r2c(80) # Romoe to Celsius
100.0
>>> pytemperature.c2r(100) # Romoe to Celsius
80.0
>>> pytemperature.r2k(80) #Romoe to Celsius
373.15

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

pytemperature-1.0.zip (2.2 kB view details)

Uploaded Source

File details

Details for the file pytemperature-1.0.zip.

File metadata

  • Download URL: pytemperature-1.0.zip
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytemperature-1.0.zip
Algorithm Hash digest
SHA256 8b8245bc78354cf050ed9e1640fd2a8a2d2f22438959cc018f651c0c5d16fb4f
MD5 291db716b08ed0e7a444bbe04bd32ad4
BLAKE2b-256 b37a6d1aa5434b2272122aa4e72354c03fdfa0202ea74f1c1fa4cbbfe0f6ba3d

See more details on using hashes here.

Supported by

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