Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 588 Bytes

README.md

File metadata and controls

30 lines (27 loc) · 588 Bytes

CunitPy

This is a universal conversor. It has methods to convert measurment units and world's most popular currency.

Installation

pip install cunitpy

How to use

from cunitpy import *

Now, use the pattern bellow to asign a variable the converted value:

Quantity.your_measurement_unit2new_measurement_unit(value)

Examples:

# 38° Celsius to Kelvin
tempKel = Temperature.celsius2kelvin(38)
# 250 pounds to kilograms
kg = Mass.pound2kilogram(250)
# 2000 Japanese Ienes to Dollars
dol = Currency.JPY2USD(2000)