This project is a simple unit converter.
Project description
Unit Converter
This project is a simple unit converter. In version 0.0.2 it will be possible to convert units related to distance, pressure, temperature, weight and the new torque and power units.
The package unit-converter-python is used to:
- Distance conversion:
- centimeter
- fathom
- feet
- inch
- kilometer
- meters
- mile
- yard
- Power conversion:
- horse power
- kilowatt
- metric horse power
- watt
- Pressure Conversion:
- atm
- bar
- kgf/m²
- pascal
- psi
- Temperature Conversion:
- Celsius
- Fahrenheit
- Kelvin
- Torque conversion:
- kgf.m
- lbf.ft
- lbf.in
- nm
- Weight Conversion:
- Gram
- Kilogram
- Ounce
- Pound
Installation
Use the package manager pip to install unit-converter-python
pip install unit_converter_python
Usage
This package can be used in applications where it is necessary to convert units of measurement.
Here we have an example of use converting a temperature measurement from Fahrenheit to Celsius.
Step 1
Import the desired package.
from unit_converter_python.temperature import fahrenheit_conversion_to
Step 2
Use the function to convert the value from Fahrenheit to Celsius.
Example:
fahrenheit_value = 62
converted_value = fahrenheit_conversion_to.f_to_c(fahrenheit_value)
print(f"The temperature of {fahrenheit_value}ºF was converted to {converted_value:.2F}ºC.")
Author
Daniel Torres de Andrade
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
File details
Details for the file unit_converter_python-0.0.2.tar.gz
.
File metadata
- Download URL: unit_converter_python-0.0.2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b97aa5e0ae014c1b00f4dd1aefb89c093741fde75f5d43ef1e771932fba183 |
|
MD5 | c92ca31b0695d96f5907e9cf3c47cf9e |
|
BLAKE2b-256 | 44c2a48832340ccf26ad7b3c009a99de22e755b54574f986df42c5ec3bba03da |
File details
Details for the file unit_converter_python-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: unit_converter_python-0.0.2-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7296ccf671b424a42c82d00b4662ab9e37b57e2ac88da0d7cfd89136e34859a1 |
|
MD5 | d8c4096323c24a22164fdacd622e0611 |
|
BLAKE2b-256 | d1f554f4e0871c1e11eefbf8bd683f66ae04f996339171b9c744dade0cc400dd |