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.tar.gz
.
File metadata
- Download URL: measureunit-0.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c72705dd2a0b9095e2a06eaab4539cc866d9e38ad172c0a9627bd1602546e305 |
|
MD5 | 323114bbc197f2824dcd715ee9ee5fc8 |
|
BLAKE2b-256 | 8149c25a6a0c4f6e3715fe1ff2e970d21592cab1b6cc79f45f6d49411f86e6b6 |
File details
Details for the file measureunit-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: measureunit-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.2 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 | 144fd4e23ae92b0b60be85d4545c2a2690ab9274527f26a556fb03ce7484e7ec |
|
MD5 | 8ca8b6b87ad7255996a172230349747d |
|
BLAKE2b-256 | f5e523c109308d96a3f8bc21f71619565d30479eb538c6c0ef68ac9d62f5d784 |