Skip to main content

No project description provided

Project description

🌡 Generic Temperature Converter

A lightweight Python package to convert temperatures between Celsius, Fahrenheit, and Kelvin.
It works both as a command-line tool and as an importable Python module.

📦 Installation

pip install generic-temperature-converter

💻 Command-Line Usage

Once installed, you can run:

tempconv <from_unit> <to_unit>

Example:

tempconv 100 C F

Output:

100.00°C = 212.00°F

📋 Supported Units

Symbol Unit Name
C Celsius
F Fahrenheit
K Kelvin

🐍 Python Module Usage

from generic_temperature_converter.converter import ( celsius_to_fahrenheit, fahrenheit_to_celsius, celsius_to_kelvin, kelvin_to_celsius )

print(celsius_to_fahrenheit(25)) # 77.0 print(fahrenheit_to_celsius(212)) # 100.0 print(celsius_to_kelvin(0)) # 273.15 print(kelvin_to_celsius(300)) # 26.85

✨ Features

  • Supports Celsius ↔ Fahrenheit, Celsius ↔ Kelvin, and Fahrenheit ↔ Kelvin conversions.
  • Works from both CLI and Python scripts.
  • Handles floating-point rounding for clean output.

📄 License

This project is licensed under the MIT License.

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

generic_temperature_converter-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generic_temperature_converter-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file generic_temperature_converter-0.1.1.tar.gz.

File metadata

File hashes

Hashes for generic_temperature_converter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c55b66d237719d86e2f15a42d81877a09b8a3d4b2c506bb347b5aa83c6460ee
MD5 3fd9cdb78033769500302aa491616587
BLAKE2b-256 485a0281e0701be9cdf536ae7de4e09e6e0e7b9e4969a8a8da2eafd275c5df13

See more details on using hashes here.

File details

Details for the file generic_temperature_converter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for generic_temperature_converter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c6f2ae0dff67a5eec953216156ec955c6006eab372fe115f8d0a3d9c837deb5
MD5 f808e59e84dbed2d69e3cdb77847a3ad
BLAKE2b-256 551adfea4ad8a5836674237c4bd7fd029862230436b10d32fd45682a48187cca

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