Skip to main content

Temperature Converter

Project description

ToTemp

package version license

ToTemp is a temperature conversion package between Celcius, Delisle, Fahrenheit, Kelvin, Rankine, Reaumur, Newton and Romer

Usage

First of all, install the package:

pip install totemp

or, to have an example in poetry environments:

poetry add --group dev totemp

Then, just use it:

In these two examples, we want to know the equivalent in Fahrenheit of 35º Celsius and 18.746º Celsius to Newton.

from totemp import Celsius

temperature = Celsius.to_fahrenheit(35)  # Return: 95.0
from totemp import Celsius

temperature = Celsius.to_newton(18.746)  # Return: 6.186179999999999

Note that all returns are float values, and that applies to all methods.

Versions

  • 0.1.0:
    • Yanked, not functional
  • 0.2.0:
    • Functional;
    • Can convert Celsius to Delisle, Fahrenheit, Kelvin, Newton, Rankine, Réaumur and Rømer.

License

For more information, check LICENSE file.

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

totemp-0.2.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

totemp-0.2.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

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