This project is a simple unit converter.
Project description
Unit Converter
This project is a simple unit converter. In this first version it will be possible to convert units related to distance, pressure, temperature and weight.
The package unit_converter_python is used to: - Distance conversion: - centimeter - fathom - feet - inch - kilometer - meters - mile - yard
- Pressure Conversion:
- atm
- bar
- kgf/m²
- pascal
- psi
- Temperature Conversion:
- Celsius
- Fahrenheit
- Kelvin
- Weight Conversion:
- Gram
- Kilogram
- Ounce
- Pound
Installation
Use the package manager pip to install unit_converter_python
pip install unit_converter_python
Usage
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.1.tar.gz
.
File metadata
- Download URL: unit_converter_python-0.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b112d02669757a247c05380a40728ed21e9f5c0ae692ededd611ea6279bf9630 |
|
MD5 | d82380a47471b900c6ba2b1a0bfc77f6 |
|
BLAKE2b-256 | c4d716f7655f4c5b3693f14630ab95f8e897770308dfafd98f20d52647ee03b4 |
File details
Details for the file unit_converter_python-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: unit_converter_python-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.4 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 | 939fb1d070bbe802aec1fa664626955cac234f77f93f2a0e247f97de1936e90b |
|
MD5 | f7b0015500711810e7b018c1a21e48f3 |
|
BLAKE2b-256 | 2ad3c34616129704b69a30ca07b8f6694dd65c752bcae2f022ef93f234df9c2a |