![GitHub top language](https://img.shields.io/github/languages/top/Danieltandrade/Unit-Converter)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/unit_converter_python)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/unit-converter-python)
![GitHub License](https://img.shields.io/github/license/Danieltandrade/Unit-Converter)
![PyPI - Version](https://img.shields.io/pypi/v/unit_converter_python)
# 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](https://pip.pypa.io/en/stable/) to install unit-converter-python
```bash
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.
```python
from unit_converter_python.temperature import fahrenheit_conversion_to
```
### Step 2
Use the function to convert the value from Fahrenheit to Celsius.
Example:
```python
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
[MIT](https://choosealicense.com/licenses/mit/)
Raw data
{
"_id": null,
"home_page": "https://github.com/Danieltandrade/Unit-Converter",
"name": "unit-converter-python",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "unit converter, unit-converter, unit_converter",
"author": "Daniel Torres de Andrade",
"author_email": "danieltorresandrade@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/44/c2/a48832340ccf26ad7b3c009a99de22e755b54574f986df42c5ec3bba03da/unit_converter_python-0.0.2.tar.gz",
"platform": null,
"description": "![GitHub top language](https://img.shields.io/github/languages/top/Danieltandrade/Unit-Converter)\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/unit_converter_python)\r\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/unit-converter-python)\r\n![GitHub License](https://img.shields.io/github/license/Danieltandrade/Unit-Converter)\r\n![PyPI - Version](https://img.shields.io/pypi/v/unit_converter_python)\r\n\r\n# Unit Converter\r\n\r\nThis project is a simple unit converter.\r\nIn version 0.0.2 it will be possible to convert units related to distance, pressure, temperature, weight and the new torque and power units.\r\n\r\nThe package unit-converter-python is used to:\r\n\t\r\n \t- Distance conversion:\r\n\t\t- centimeter\r\n\t\t- fathom\r\n\t\t- feet\r\n\t\t- inch\r\n\t\t- kilometer\r\n\t\t- meters\r\n\t\t- mile\r\n\t\t- yard\r\n\r\n\t- Power conversion:\r\n\t\t- horse power\r\n\t\t- kilowatt\r\n\t\t- metric horse power\r\n\t\t- watt\r\n\r\n\t- Pressure Conversion:\r\n\t\t- atm\r\n\t\t- bar\r\n\t\t- kgf/m\u00b2\r\n\t\t- pascal\r\n\t\t- psi\r\n\r\n\t- Temperature Conversion:\r\n\t\t- Celsius\r\n\t\t- Fahrenheit\r\n\t\t- Kelvin\r\n\r\n\t- Torque conversion:\r\n\t\t- kgf.m\r\n\t\t- lbf.ft\r\n\t\t- lbf.in\r\n\t\t- nm\r\n\r\n\t- Weight Conversion:\r\n\t\t- Gram\r\n\t\t- Kilogram\r\n\t\t- Ounce\r\n\t\t- Pound\r\n\r\n## Installation\r\n\r\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install unit-converter-python\r\n\r\n```bash\r\npip install unit_converter_python\r\n```\r\n\r\n## Usage\r\n\r\nThis package can be used in applications where it is necessary to convert units of measurement.\r\n\r\nHere we have an example of use converting a temperature measurement from Fahrenheit to Celsius.\r\n\r\n### Step 1\r\nImport the desired package.\r\n\r\n```python\r\nfrom unit_converter_python.temperature import fahrenheit_conversion_to\r\n```\r\n\r\n### Step 2\r\nUse the function to convert the value from Fahrenheit to Celsius.\r\n\r\nExample:\r\n```python\r\nfahrenheit_value = 62\r\nconverted_value = fahrenheit_conversion_to.f_to_c(fahrenheit_value)\r\nprint(f\"The temperature of {fahrenheit_value}\u00baF was converted to {converted_value:.2F}\u00baC.\")\r\n```\r\n\r\n## Author\r\nDaniel Torres de Andrade\r\n\r\n## License\r\n[MIT](https://choosealicense.com/licenses/mit/)\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "This project is a simple unit converter.",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/Danieltandrade/Unit-Converter"
},
"split_keywords": [
"unit converter",
" unit-converter",
" unit_converter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d1f554f4e0871c1e11eefbf8bd683f66ae04f996339171b9c744dade0cc400dd",
"md5": "d8c4096323c24a22164fdacd622e0611",
"sha256": "7296ccf671b424a42c82d00b4662ab9e37b57e2ac88da0d7cfd89136e34859a1"
},
"downloads": -1,
"filename": "unit_converter_python-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d8c4096323c24a22164fdacd622e0611",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 19479,
"upload_time": "2024-07-27T20:14:15",
"upload_time_iso_8601": "2024-07-27T20:14:15.928669Z",
"url": "https://files.pythonhosted.org/packages/d1/f5/54f4e0871c1e11eefbf8bd683f66ae04f996339171b9c744dade0cc400dd/unit_converter_python-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "44c2a48832340ccf26ad7b3c009a99de22e755b54574f986df42c5ec3bba03da",
"md5": "c92ca31b0695d96f5907e9cf3c47cf9e",
"sha256": "66b97aa5e0ae014c1b00f4dd1aefb89c093741fde75f5d43ef1e771932fba183"
},
"downloads": -1,
"filename": "unit_converter_python-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "c92ca31b0695d96f5907e9cf3c47cf9e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 9476,
"upload_time": "2024-07-27T20:14:51",
"upload_time_iso_8601": "2024-07-27T20:14:51.376401Z",
"url": "https://files.pythonhosted.org/packages/44/c2/a48832340ccf26ad7b3c009a99de22e755b54574f986df42c5ec3bba03da/unit_converter_python-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-27 20:14:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Danieltandrade",
"github_project": "Unit-Converter",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "unit-converter-python"
}