A Python library of the measurement conversion
Project description
Instructions
Length
Converting the measurement units of Length
1. km2m()
Kilometer (km) to meter (m)
from measureunit.units import Length
value = Length.km2m(2)
2. m2km()
Meter (m) to kilometer (km)
from measureunit.units import Length
value = Length.m2km(2)
3. km2hm()
Kilometer (km) to hectometer (hm)
from measureunit.units import Length
value = Length.km2hm(2)
4. hm2km()
Hectometer (hm) to kilometer (km)
from measureunit.units import Length
value = Length.hm2km(2)
5. km2dam()
Kilometer (km) to decameter (dam)
from measureunit.units import Length
value = Length.km2dam()
6. dam2km()
Decameter (dam) to kilometer (km)
from measureunit.units import Length
value = Length.dam2km()
7. hm2m()
Hectometer (hm) to meter (m)
from measureunit.units import Length
value = Length.hm2m(2)
8. m2hm()
Meter (m) to hectometer (hm)
from measureunit.units import Length
value = Length.m2hm(2)
9. dam2m()
Dacameter (dam) to meter (m)
from measureunit.units import Length
value = Length.dam2m(2)
10. m2dam()
Meter (m) to decameter (dam)
from measureunit.units import Length
value = Length.m2dam(2)
11. m2dm()
Meter (m) to decimeter (dm)
from measureunit.units import Length
value = Length.m2dm(2)
12. dm2m()
Decimeter (dm) to meter (m)
from measureunit.units import Length
value = Length.dm2m(2)
13. m2cm()
Meter (m) to centimeter (cm)
from measureunit.units import Length
value = Length.m2cm(2)
14. cm2m()
Centimeter (cm) to meter (m)
from measureunit.units import Length
value = Length.cm2m(2)
15. m2mm()
Meter (m) to milimeter (mm)
from measureunit.units import Length
value = Length.m2mm(2)
16. mm2m()
Milimeter (mm) to meter (m)
from measureunit.units import Length
value = Length.mm2m(2)
17. in2cm()
Inch (in) to centimeter (cm)
from measureunit.units import Length
value = Length.in2cm(2)
18. cm2in()
Centimeter (cm) to inch (in)
from measureunit.units import Length
value = Length.cm2in(2)
Weight and Mass
Converting the measurement units of Weight and Mass
1. t2kg()
Ton (t) to kilogram (kg)
from measureunit.units import WeightMass
value = WeightMass.t2kg(2)
2. kg2t()
Kilogram (kg) to ton (t)
from measureunit.units import WeightMass
value = WeightMass.kg2t(2)
3. kg2g()
Kilogram (kg) to gram (g)
from measureunit.units import WeightMass
value = WeightMass.kg2g(2)
4. g2kg()
Gram (g) to kilogram (kg)
from measureunit.units import WeightMass
value = WeightMass.g2kg(2)
5. kg2hg()
Kilogram (kg) to hectogram (hg)
from measureunit.units import WeightMass
value = WeightMass.kg2hg(2)
6. hg2kg()
Hectogram (hg) to kilogram (kg)
from measureunit.units import WeightMass
value = WeightMass.hg2kg(2)
7. kg2dag()
Kilogram (kg) to dekagram (dag)
from measureunit.units import WeightMass
value = WeightMass.kg2dag(2)
8. dag2kg()
Dekagram (dag) to kilogram (kg)
from measureunit.units import WeightMass
value = WeightMass.dag2kg()
9. hg2g()
Hectogram (hg) to gram (g)
from measureunit.units import WeightMass
value = WeightMass.hg2g(2)
10. g2hg()
Gram (g) to hectogram (hg)
from measureunit.units import WeightMass
value = WeightMass.g2hg(2)
11. dag2g()
Dekagram (dag) to gram (g)
from measureunit.units import WeightMass
value = WeightMass.dag2g(2)
12. g2dag()
Gram (g) to dekagram (dag)
from measureunit.units import WeightMass
value = WeightMass.g2dag(2)
13. lb2oz()
Pound (lb) to ounce (oz)
from measureunit.units import WeightMass
value = WeightMass.lb2oz(2)
14. oz2lb()
Ounce (oz) to pound (lb)
from measureunit.units import WeightMass
value = WeightMass.oz2lb(2)
15. u2kg()
Atomic mass unit (u) to kilogram (kg)
from measureunit.units import WeightMass
value = WeightMass.u2kg(2)
16. kg2u()
Kilogram (kg) to atomic mass unit (u)
from measureunit.units import WeightMass
value = WeightMass.kg2u(2)
Temperature
Converting the measurement units of Temperature
1. C2F()
Celsius (°C) to Fahrenheit (°F)
from measureunit.units import Temperature
degree = Temperature.C2F(20)
2. F2C()
Fahrenheit (°F) to Celsius (°C)
from measureunit.units import Temperature
degree = Temperature.F2C(80)
3. C2K()
Celsius (°C) to Kelvin (K)
from measureunit.units import Temperature
degree = Temperature.C2K(20)
4. K2C()
Kelvin (K) to Celsius (°C)
from measureunit.units import Temperature
degree = Temperature.K2C(20)
5. F2K()
Fahrenheit (°F) to Kelvin (K)
from measureunit.units import Temperature
degree = Temperature.F2K(20)
6. K2F()
Kelvin (K) to Fahrenheit (°F)
from measureunit.units import Temperature
degree = Temperature.K2F(20)
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 measureunit-0.0.2.post0.tar.gz
.
File metadata
- Download URL: measureunit-0.0.2.post0.tar.gz
- Upload date:
- Size: 132.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2ae3dbf2ce4147095d1bc1f5d045e54e3d693500e60a125b6e6c641abdf891 |
|
MD5 | 4d82646f8c0facfdacd47870d25a4e28 |
|
BLAKE2b-256 | a4661e27d8d6ddfb12258fad240e948ade153b27aaa2400b49704f06564831c6 |
File details
Details for the file measureunit-0.0.2.post0-py3-none-any.whl
.
File metadata
- Download URL: measureunit-0.0.2.post0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38fb396f99dd7fd2ac4749e4a4706c21078ff4206bb89fb76d2cf095142b978e |
|
MD5 | 78232e33c45b0cfb493248ed87102c41 |
|
BLAKE2b-256 | 0de0781891a75ea7cde047b3b4448d3e46ff445976204ebf9e1238a5aa985ce4 |