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.0.tar.gz (3.2 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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for generic_temperature_converter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce93064c5a4a6ec5729a264306b1b2c27f583029dd42f810d98f995cd3cb22ed
MD5 baf5464337ba05cf51d14d8086a3c6dd
BLAKE2b-256 1e2547cdb10e43db21f13c2105dd3cbdb247ef8d73b1360eecce846a924ea7b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for generic_temperature_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d30ef94b6081ea7fc65ee485826e5d480138f718622b7aa9312ac75452ca2409
MD5 da2d55ee2474518205d195323226e690
BLAKE2b-256 b40f598c42ee062531c64b8217eac2a5fce6a47bea46087c8425d7bf812a65be

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