Skip to main content

Unit Conversion System

Project description

UnitCvrt

Unit Conversion System

Author

Shinsuke Sakai Yokohama National University

Installation

You can install the package via pip:

pip install UnitCvrt

License

This project is licensed under the MIT License - see the LICENSE file for details.

Usage

First, create an instance and check the registered unit names.

from UnitCvrt import UnitConv as uc
conv=uc.Conv()
conv.Registered()

Select a unit name from the list of registered units, then convert it using the following steps. The example below demonstrates how to convert 1 meter to inch for the case of length.

length=conv.SetUnit('Length')
length.Conv('m','in',1)

You can output the unit conversion table using the following command. You can check the unit names from this output.

length.ShowDict()

Similarly, the unit conversion of density can be carried out according to the following steps.

density=tt.SetUnit('Density')
density.Conv('N/m^3','kgf/mm^3',1)

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

unitcvrt-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

UnitCvrt-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file unitcvrt-0.1.1.tar.gz.

File metadata

  • Download URL: unitcvrt-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for unitcvrt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 24eb2cca5d4cd45ba9087eaeb37cdcf1e2a2dab8906b688a4469449492da12ec
MD5 50cad9a1607cbf3d1f36a6c60d240b65
BLAKE2b-256 f1b435032d034b59bcd66142b997364c67a10ea49b864027bdcc7283e3278ac7

See more details on using hashes here.

File details

Details for the file UnitCvrt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: UnitCvrt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for UnitCvrt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf754b633bbc0221aff4b4706d2bde7afd84da5cd8624929cc0733bb8aa7afe3
MD5 14a49ed77e6a9fcf40ced5454be9466a
BLAKE2b-256 86244a7973a7afbac3cb58defaca44d73c37f0e929a344d7769daf88ced988e4

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