Skip to main content

Unit Conversion System

Project description

UnitConv

Unit Conversion System

Author

Shinsuke Sakai Yokohama National University

Installation

You can install the package via pip:

pip install UnitConv

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 UnitConv.UnitConv import Conv
conv=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.

conv.SetUnit('Length')
conv.Eval('m','in',1)

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

conv.ShowDict()

Finally, you need to destroy the created instance using the following command.

conv.DelUnit()

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.0.1.tar.gz (5.3 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.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unitcvrt-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f68523b784ff67cf2d18b58cfdd964b337cccd366ea6abc10db531c2e06f19d6
MD5 c3336adbc9f533f7a270794e91d25e44
BLAKE2b-256 f8ad902c8e3e0d5f8b8686241dffbf0df4cbf8054ea4704cb022f336cecd5cb7

See more details on using hashes here.

File details

Details for the file unitcvrt-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: unitcvrt-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for unitcvrt-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71efb7b179a6a13295da756aaffb03e09315c1b8ef19bc0fbc675c0d6e0b2585
MD5 878e94853281f84940bdad0aeae7c919
BLAKE2b-256 60ebf59f6fd8494edd4bc82916f43ac6c5a8ea8d0aa1c86f5482c7d0bd5e820a

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