Skip to content

LazimR/CunitPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A universal conversor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages