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.post0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: measureunit-0.0.1.post0.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.post0.tar.gz
Algorithm Hash digest
SHA256 244743e29c55d133fd6aaab93d24fe7350f1fc13e2efc53b5c99a05c5a390a3a
MD5 e40bdcf301c0577f83546d2e494df5c0
BLAKE2b-256 9e31fad3334532cea454f186d390de62fed5255a5e8ef371493f128cca959e29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for measureunit-0.0.1.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2134a7917d75868b2f20b36c84072b2bacd8f734117cd204ccb9e22328bbf31
MD5 eab7c622dae95ea93ec26d0e11065fd3
BLAKE2b-256 325a442438a291a3c04ae8b2fca8a0f25bc116e52fc13bd73b51b3b437f429c1

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