A universal converter package
Project description
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)
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
cunitpy-0.0.4.tar.gz
(19.2 kB
view hashes)
Built Distribution
cunitpy-0.0.4-py3-none-any.whl
(18.6 kB
view hashes)