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
Metadata
Release files for unit-converter-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unit_converter_python-0.0.2.tar.gz | 9.5 kB | Without provenance | Details for unit_converter_python-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unit_converter_python-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for unit_converter_python-0.0.2-py3-none-any.whl |
Total release size: 29.0 kB
Release files / unit_converter_python-0.0.2.tar.gz
| Download URL | unit_converter_python-0.0.2.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66b97aa5e0ae014c1b00f4dd1aefb89c093741fde75f5d43ef1e771932fba183
|
|
BLAKE2b-256 checksum How to use checksums |
44c2a48832340ccf26ad7b3c009a99de22e755b54574f986df42c5ec3bba03da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Release files / unit_converter_python-0.0.2-py3-none-any.whl
| Download URL | unit_converter_python-0.0.2-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7296ccf671b424a42c82d00b4662ab9e37b57e2ac88da0d7cfd89136e34859a1
|
|
BLAKE2b-256 checksum How to use checksums |
d1f554f4e0871c1e11eefbf8bd683f66ae04f996339171b9c744dade0cc400dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Security for unit-converter-python 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.