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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file generic_temperature_converter-0.1.1.tar.gz.
File metadata
- Download URL: generic_temperature_converter-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c55b66d237719d86e2f15a42d81877a09b8a3d4b2c506bb347b5aa83c6460ee
|
|
| MD5 |
3fd9cdb78033769500302aa491616587
|
|
| BLAKE2b-256 |
485a0281e0701be9cdf536ae7de4e09e6e0e7b9e4969a8a8da2eafd275c5df13
|
File details
Details for the file generic_temperature_converter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: generic_temperature_converter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c6f2ae0dff67a5eec953216156ec955c6006eab372fe115f8d0a3d9c837deb5
|
|
| MD5 |
f808e59e84dbed2d69e3cdb77847a3ad
|
|
| BLAKE2b-256 |
551adfea4ad8a5836674237c4bd7fd029862230436b10d32fd45682a48187cca
|