Skip to main content

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. u2kg()
Atomic mass unit (u) to kilogram (kg)

from measureunit.units import WeightMass
value = WeightMass.u2kg(2)

14. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

measureunit-0.0.1.post1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

measureunit-0.0.1.post1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file measureunit-0.0.1.post1.tar.gz.

File metadata

  • Download URL: measureunit-0.0.1.post1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for measureunit-0.0.1.post1.tar.gz
Algorithm Hash digest
SHA256 d6f39fcb93f8be497f925908f4a2cd2658e991857e96a3d2088590b0d784a4d9
MD5 51ae13dd9f61a5396234e236531510e4
BLAKE2b-256 88c6d4931aa3389fb56277d9fa6d71a331cb0b3bb98f840a8508dd1027bbf4c4

See more details on using hashes here.

File details

Details for the file measureunit-0.0.1.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for measureunit-0.0.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e663de3dd01e8bcac1efa9e6a2d91d39c080187be290fc8c1730c6b4a089b6d
MD5 7ab9280087e471131b6d2a4334e22b84
BLAKE2b-256 6691a3f64d812c4585a9222a2b8fe840bc4c954f7a53abdf73ed094647854479

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page