Dimensional analysis and unit conversion library
pip install --upgrade dimans
If you want to use the calculator, you will need to install the "cli" extra to install some additional dependencies:
pip install --upgrade dimans[cli]
If you are using a Linux distribution like Arch that disallows installing
packages using pip, you will need to use a tool such as pipx
:
pipx install --upgrade dimans[cli]
>>> from dimans.units import gram, kilogram, metre
>>> (32_000 * gram).to(kilogram)
<Quantity 32.0 kg>
dimans