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.

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.Table()

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.6.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.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unitcvrt-0.0.6.tar.gz
Algorithm Hash digest
SHA256 382bb4b6da9b39d1d0f7ecd3b43d2f28fbd950ccb35d8b8e12d2959d2cd1843a
MD5 47969a684060decad19108268c0d6d9e
BLAKE2b-256 c86730e51680fb8aaa4cedccf71e80e6c3c3bb740bd7b5cb9f52fb1340ae2e24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unitcvrt-0.0.6-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.10.9

File hashes

Hashes for unitcvrt-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 951b1855ee7d61216b501dd1e2ee995ef09cf2653ed21340e58b186ad9875976
MD5 1f333a8ba07d87d8eea566a944f3fb6a
BLAKE2b-256 6f17611b9b90d2f0e548fe0eb6931e5d95b6f8d249d10e24f8a69c1f30d1fe0a

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