semvec/pypi-packages huggingface dataset:
unitcvrt 0.1.7
Unit Conversion System
License: MIT
Requires Python: >=3.6

# UnitCvrt
Unit Conversion System

## Author
Shinsuke Sakai
Yokohama National University

## Installation
You can install the package via pip:

```bash
pip install UnitCvrt
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Simple usage
First, create an instance and check the registered unit names.
```python
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.
```python
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.
```python
conv.Table()
```
Similarly, the unit conversion of density can be carried out according to the following steps.
```python
conv.SetUnit('Density')
conv.Eval('N/m^3','kgf/mm^3',1)
```

## Alternative method
```python
from UnitCvrt import UnitConv as uc
length=uc.Length()
# Conversion Table
print(length.ShowDict())
print(length.Conv('m','in',1))
density=uc.Density()
# Conversion Table
print(density.ShowDict())
print(density.Conv('N/m^3','kgf/mm^3',1))
```
UnitCvrt 0.1.4
Unit Conversion System
License: MIT
Requires Python: >=3.6

# UnitCvrt
Unit Conversion System

## Author
Shinsuke Sakai
Yokohama National University

## Installation
You can install the package via pip:

```bash
pip install UnitCvrt
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Simple usage
First, create an instance and check the registered unit names.
```python
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.
```python
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.
```python
conv.Table()
```
Similarly, the unit conversion of density can be carried out according to the following steps.
```python
conv.SetUnit('Density')
conv.Eval('N/m^3','kgf/mm^3',1)
```

## Alternative method
```python
from UnitCvrt import UnitConv as uc
lengh=uc.Length()
# Conversion Table
print(length.ShowDict())
print(length.Conv('m','in',1))
density=uc.Density()
# Conversion Table
print(density.ShowDict())
print(density.Conv('N/m^3','kgf/mm^3',1))
```