# Instructions
## Length
*Converting the measurement units of Length*
**1. km2m()** <br>
Kilometer (km) to meter (m) <br>
```
from measureunit.units import Length
value = Length.km2m(2)
```
**2. m2km()** <br>
Meter (m) to kilometer (km) <br>
```
from measureunit.units import Length
value = Length.m2km(2)
```
**3. km2hm()** <br>
Kilometer (km) to hectometer (hm) <br>
```
from measureunit.units import Length
value = Length.km2hm(2)
```
**4. hm2km()** <br>
Hectometer (hm) to kilometer (km) <br>
```
from measureunit.units import Length
value = Length.hm2km(2)
```
**5. km2dam()** <br>
Kilometer (km) to decameter (dam) <br>
```
from measureunit.units import Length
value = Length.km2dam()
```
**6. dam2km()** <br>
Decameter (dam) to kilometer (km) <br>
```
from measureunit.units import Length
value = Length.dam2km()
```
**7. hm2m()** <br>
Hectometer (hm) to meter (m) <br>
```
from measureunit.units import Length
value = Length.hm2m(2)
```
**8. m2hm()** <br>
Meter (m) to hectometer (hm) <br>
```
from measureunit.units import Length
value = Length.m2hm(2)
```
**9. dam2m()** <br>
Dacameter (dam) to meter (m) <br>
```
from measureunit.units import Length
value = Length.dam2m(2)
```
**10. m2dam()** <br>
Meter (m) to decameter (dam) <br>
```
from measureunit.units import Length
value = Length.m2dam(2)
```
**11. m2dm()** <br>
Meter (m) to decimeter (dm) <br>
```
from measureunit.units import Length
value = Length.m2dm(2)
```
**12. dm2m()** <br>
Decimeter (dm) to meter (m) <br>
```
from measureunit.units import Length
value = Length.dm2m(2)
```
**13. m2cm()** <br>
Meter (m) to centimeter (cm) <br>
```
from measureunit.units import Length
value = Length.m2cm(2)
```
**14. cm2m()** <br>
Centimeter (cm) to meter (m) <br>
```
from measureunit.units import Length
value = Length.cm2m(2)
```
**15. m2mm()** <br>
Meter (m) to milimeter (mm) <br>
```
from measureunit.units import Length
value = Length.m2mm(2)
```
**16. mm2m()** <br>
Milimeter (mm) to meter (m) <br>
```
from measureunit.units import Length
value = Length.mm2m(2)
```
**17. in2cm()** <br>
Inch (in) to centimeter (cm) <br>
```
from measureunit.units import Length
value = Length.in2cm(2)
```
**18. cm2in()** <br>
Centimeter (cm) to inch (in) <br>
```
from measureunit.units import Length
value = Length.cm2in(2)
```
## Weight and Mass
*Converting the measurement units of Weight and Mass*
**1. t2kg()** <br>
Ton (t) to kilogram (kg) <br>
```
from measureunit.units import WeightMass
value = WeightMass.t2kg(2)
```
**2. kg2t()** <br>
Kilogram (kg) to ton (t) <br>
```
from measureunit.units import WeightMass
value = WeightMass.kg2t(2)
```
**3. kg2g()** <br>
Kilogram (kg) to gram (g) <br>
```
from measureunit.units import WeightMass
value = WeightMass.kg2g(2)
```
**4. g2kg()** <br>
Gram (g) to kilogram (kg) <br>
```
from measureunit.units import WeightMass
value = WeightMass.g2kg(2)
```
**5. kg2hg()** <br>
Kilogram (kg) to hectogram (hg) <br>
```
from measureunit.units import WeightMass
value = WeightMass.kg2hg(2)
```
**6. hg2kg()** <br>
Hectogram (hg) to kilogram (kg) <br>
```
from measureunit.units import WeightMass
value = WeightMass.hg2kg(2)
```
**7. kg2dag()** <br>
Kilogram (kg) to dekagram (dag) <br>
```
from measureunit.units import WeightMass
value = WeightMass.kg2dag(2)
```
**8. dag2kg()** <br>
Dekagram (dag) to kilogram (kg) <br>
```
from measureunit.units import WeightMass
value = WeightMass.dag2kg()
```
**9. hg2g()** <br>
Hectogram (hg) to gram (g) <br>
```
from measureunit.units import WeightMass
value = WeightMass.hg2g(2)
```
**10. g2hg()** <br>
Gram (g) to hectogram (hg) <br>
```
from measureunit.units import WeightMass
value = WeightMass.g2hg(2)
```
**11. dag2g()** <br>
Dekagram (dag) to gram (g) <br>
```
from measureunit.units import WeightMass
value = WeightMass.dag2g(2)
```
**12. g2dag()** <br>
Gram (g) to dekagram (dag) <br>
```
from measureunit.units import WeightMass
value = WeightMass.g2dag(2)
```
**13. lb2oz()** <br>
Pound (lb) to ounce (oz)
```
from measureunit.units import WeightMass
value = WeightMass.lb2oz(2)
```
**14. oz2lb()** <br>
Ounce (oz) to pound (lb)
```
from measureunit.units import WeightMass
value = WeightMass.oz2lb(2)
```
**15. u2kg()** <br>
Atomic mass unit (u) to kilogram (kg) <br>
```
from measureunit.units import WeightMass
value = WeightMass.u2kg(2)
```
**16. kg2u()** <br>
Kilogram (kg) to atomic mass unit (u) <br>
```
from measureunit.units import WeightMass
value = WeightMass.kg2u(2)
```
## Temperature
*Converting the measurement units of Temperature*
**1. C2F()** <br>
Celsius (°C) to Fahrenheit (°F) <br>
```
from measureunit.units import Temperature
degree = Temperature.C2F(20)
```
**2. F2C()** <br>
Fahrenheit (°F) to Celsius (°C) <br>
```
from measureunit.units import Temperature
degree = Temperature.F2C(80)
```
**3. C2K()** <br>
Celsius (°C) to Kelvin (K) <br>
```
from measureunit.units import Temperature
degree = Temperature.C2K(20)
```
**4. K2C()** <br>
Kelvin (K) to Celsius (°C) <br>
```
from measureunit.units import Temperature
degree = Temperature.K2C(20)
```
**5. F2K()** <br>
Fahrenheit (°F) to Kelvin (K) <br>
```
from measureunit.units import Temperature
degree = Temperature.F2K(20)
```
**6. K2F()** <br>
Kelvin (K) to Fahrenheit (°F) <br>
```
from measureunit.units import Temperature
degree = Temperature.K2F(20)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/v-danh/measureunit",
"name": "measureunit",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "measureunit,conversion",
"author": "v.d.anh",
"author_email": "vdanhvt2000@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a4/66/1e27d8d6ddfb12258fad240e948ade153b27aaa2400b49704f06564831c6/measureunit-0.0.2.post0.tar.gz",
"platform": null,
"description": "# Instructions\r\n\r\n## Length\r\n\r\n*Converting the measurement units of Length*\r\n\r\n**1. km2m()** <br>\r\nKilometer (km) to meter (m) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.km2m(2)\r\n```\r\n\r\n**2. m2km()** <br>\r\nMeter (m) to kilometer (km) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.m2km(2)\r\n```\r\n\r\n**3. km2hm()** <br>\r\nKilometer (km) to hectometer (hm) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.km2hm(2)\r\n```\r\n\r\n**4. hm2km()** <br>\r\nHectometer (hm) to kilometer (km) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.hm2km(2)\r\n```\r\n\r\n**5. km2dam()** <br>\r\nKilometer (km) to decameter (dam) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.km2dam()\r\n```\r\n\r\n**6. dam2km()** <br>\r\nDecameter (dam) to kilometer (km) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.dam2km()\r\n```\r\n\r\n**7. hm2m()** <br>\r\nHectometer (hm) to meter (m) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.hm2m(2)\r\n```\r\n\r\n**8. m2hm()** <br>\r\nMeter (m) to hectometer (hm) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.m2hm(2)\r\n```\r\n\r\n**9. dam2m()** <br>\r\nDacameter (dam) to meter (m) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.dam2m(2)\r\n```\r\n\r\n**10. m2dam()** <br>\r\nMeter (m) to decameter (dam) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.m2dam(2)\r\n```\r\n\r\n**11. m2dm()** <br>\r\nMeter (m) to decimeter (dm) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.m2dm(2)\r\n```\r\n\r\n**12. dm2m()** <br>\r\nDecimeter (dm) to meter (m) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.dm2m(2)\r\n``` \r\n\r\n**13. m2cm()** <br>\r\nMeter (m) to centimeter (cm) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.m2cm(2)\r\n```\r\n\r\n**14. cm2m()** <br>\r\nCentimeter (cm) to meter (m) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.cm2m(2)\r\n```\r\n\r\n**15. m2mm()** <br>\r\nMeter (m) to milimeter (mm) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.m2mm(2)\r\n```\r\n\r\n**16. mm2m()** <br>\r\nMilimeter (mm) to meter (m) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.mm2m(2)\r\n```\r\n\r\n**17. in2cm()** <br>\r\nInch (in) to centimeter (cm) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.in2cm(2)\r\n```\r\n\r\n**18. cm2in()** <br>\r\nCentimeter (cm) to inch (in) <br>\r\n```\r\nfrom measureunit.units import Length\r\nvalue = Length.cm2in(2)\r\n```\r\n\r\n## Weight and Mass\r\n\r\n*Converting the measurement units of Weight and Mass*\r\n\r\n**1. t2kg()** <br>\r\nTon (t) to kilogram (kg) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.t2kg(2)\r\n```\r\n**2. kg2t()** <br>\r\nKilogram (kg) to ton (t) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.kg2t(2)\r\n```\r\n\r\n**3. kg2g()** <br>\r\nKilogram (kg) to gram (g) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.kg2g(2)\r\n```\r\n\r\n**4. g2kg()** <br>\r\nGram (g) to kilogram (kg) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.g2kg(2)\r\n```\r\n\r\n**5. kg2hg()** <br>\r\nKilogram (kg) to hectogram (hg) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.kg2hg(2)\r\n```\r\n\r\n**6. hg2kg()** <br>\r\nHectogram (hg) to kilogram (kg) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.hg2kg(2)\r\n```\r\n\r\n**7. kg2dag()** <br>\r\nKilogram (kg) to dekagram (dag) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.kg2dag(2)\r\n```\r\n\r\n**8. dag2kg()** <br>\r\nDekagram (dag) to kilogram (kg) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.dag2kg()\r\n```\r\n\r\n**9. hg2g()** <br>\r\nHectogram (hg) to gram (g) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.hg2g(2)\r\n```\r\n\r\n**10. g2hg()** <br>\r\nGram (g) to hectogram (hg) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.g2hg(2)\r\n```\r\n\r\n**11. dag2g()** <br>\r\nDekagram (dag) to gram (g) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.dag2g(2)\r\n```\r\n\r\n**12. g2dag()** <br>\r\nGram (g) to dekagram (dag) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.g2dag(2)\r\n```\r\n\r\n**13. lb2oz()** <br>\r\nPound (lb) to ounce (oz)\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.lb2oz(2)\r\n```\r\n**14. oz2lb()** <br>\r\nOunce (oz) to pound (lb)\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.oz2lb(2)\r\n```\r\n\r\n**15. u2kg()** <br>\r\nAtomic mass unit (u) to kilogram (kg) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.u2kg(2)\r\n```\r\n\r\n**16. kg2u()** <br>\r\nKilogram (kg) to atomic mass unit (u) <br>\r\n```\r\nfrom measureunit.units import WeightMass\r\nvalue = WeightMass.kg2u(2)\r\n```\r\n\r\n## Temperature\r\n\r\n*Converting the measurement units of Temperature*\r\n\r\n**1. C2F()** <br>\r\nCelsius (\u00b0C) to Fahrenheit (\u00b0F) <br>\r\n```\r\nfrom measureunit.units import Temperature\r\ndegree = Temperature.C2F(20)\r\n```\r\n\r\n**2. F2C()** <br>\r\nFahrenheit (\u00b0F) to Celsius (\u00b0C) <br>\r\n```\r\nfrom measureunit.units import Temperature\r\ndegree = Temperature.F2C(80)\r\n```\r\n\r\n**3. C2K()** <br>\r\nCelsius (\u00b0C) to Kelvin (K) <br>\r\n```\r\nfrom measureunit.units import Temperature\r\ndegree = Temperature.C2K(20)\r\n```\r\n\r\n**4. K2C()** <br>\r\nKelvin (K) to Celsius (\u00b0C) <br>\r\n```\r\nfrom measureunit.units import Temperature\r\ndegree = Temperature.K2C(20)\r\n```\r\n\r\n**5. F2K()** <br>\r\nFahrenheit (\u00b0F) to Kelvin (K) <br>\r\n```\r\nfrom measureunit.units import Temperature\r\ndegree = Temperature.F2K(20)\r\n```\r\n\r\n**6. K2F()** <br>\r\nKelvin (K) to Fahrenheit (\u00b0F) <br>\r\n```\r\nfrom measureunit.units import Temperature\r\ndegree = Temperature.K2F(20)\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python library of the measurement conversion",
"version": "0.0.2.post0",
"project_urls": {
"Homepage": "https://github.com/v-danh/measureunit"
},
"split_keywords": [
"measureunit",
"conversion"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0de0781891a75ea7cde047b3b4448d3e46ff445976204ebf9e1238a5aa985ce4",
"md5": "78232e33c45b0cfb493248ed87102c41",
"sha256": "38fb396f99dd7fd2ac4749e4a4706c21078ff4206bb89fb76d2cf095142b978e"
},
"downloads": -1,
"filename": "measureunit-0.0.2.post0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "78232e33c45b0cfb493248ed87102c41",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 17741,
"upload_time": "2023-12-08T16:48:16",
"upload_time_iso_8601": "2023-12-08T16:48:16.944143Z",
"url": "https://files.pythonhosted.org/packages/0d/e0/781891a75ea7cde047b3b4448d3e46ff445976204ebf9e1238a5aa985ce4/measureunit-0.0.2.post0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a4661e27d8d6ddfb12258fad240e948ade153b27aaa2400b49704f06564831c6",
"md5": "4d82646f8c0facfdacd47870d25a4e28",
"sha256": "df2ae3dbf2ce4147095d1bc1f5d045e54e3d693500e60a125b6e6c641abdf891"
},
"downloads": -1,
"filename": "measureunit-0.0.2.post0.tar.gz",
"has_sig": false,
"md5_digest": "4d82646f8c0facfdacd47870d25a4e28",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 132659,
"upload_time": "2023-12-08T16:48:19",
"upload_time_iso_8601": "2023-12-08T16:48:19.525690Z",
"url": "https://files.pythonhosted.org/packages/a4/66/1e27d8d6ddfb12258fad240e948ade153b27aaa2400b49704f06564831c6/measureunit-0.0.2.post0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-08 16:48:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "v-danh",
"github_project": "measureunit",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "measureunit"
}