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.4.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cunitpy-0.0.4-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

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

Hashes for cunitpy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 830885581602d4c42836509acaa2c7b46ab39ebafdd1998f244559753286cc58
MD5 ecc80b8c6b6343c5bdc42075b8d89e0e
BLAKE2b-256 e8889924456853455ca785dca1651e68f640b0ad46fef58bddf2e3152d082456

See more details on using hashes here.

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

Hashes for cunitpy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 329be82b91a1df1cb51ac0d3b493e8dc52d1421c922fe6eed85118b2f84522fa
MD5 71c107c9529e4fc1091bbdd631d3306d
BLAKE2b-256 3ff3e9c4bd12c45d987006f296c5d9a28a2112b6a454f16d08e5f17db208ad88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page