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.Convert()
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
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
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
File details
Details for the file unitcvrt-0.0.8.tar.gz.
File metadata
- Download URL: unitcvrt-0.0.8.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03322822cdff3c44627724925b78b5aa5cc01c25ddb0ebdd60086839e94c98df
|
|
| MD5 |
0904f8178d5a17c046b908ff336227c6
|
|
| BLAKE2b-256 |
0474f573e46d207288e17e4763db4ee69d93b5e33dcd24f36c6906ce86c38a44
|
File details
Details for the file unitcvrt-0.0.8-py3-none-any.whl.
File metadata
- Download URL: unitcvrt-0.0.8-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2654193a8ce69667c3e1ba8c2d7a7dfc89c8df11bca920d0a357b3500f03665e
|
|
| MD5 |
96ee82aaedfaa936e01784e55358be1c
|
|
| BLAKE2b-256 |
0fd0dfaf28d72bc43eac1d832a577a05d6751b837cef164c40ac085c3ce5c972
|