Skip to main content

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


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.3.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

cunitpy-0.0.3-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

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