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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cunitpy-0.0.4-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file cunitpy-0.0.4.tar.gz.
File metadata
- Download URL: cunitpy-0.0.4.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
830885581602d4c42836509acaa2c7b46ab39ebafdd1998f244559753286cc58
|
|
| MD5 |
ecc80b8c6b6343c5bdc42075b8d89e0e
|
|
| BLAKE2b-256 |
e8889924456853455ca785dca1651e68f640b0ad46fef58bddf2e3152d082456
|
File details
Details for the file cunitpy-0.0.4-py3-none-any.whl.
File metadata
- Download URL: cunitpy-0.0.4-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
329be82b91a1df1cb51ac0d3b493e8dc52d1421c922fe6eed85118b2f84522fa
|
|
| MD5 |
71c107c9529e4fc1091bbdd631d3306d
|
|
| BLAKE2b-256 |
3ff3e9c4bd12c45d987006f296c5d9a28a2112b6a454f16d08e5f17db208ad88
|