Skip to content

Dimensional analysis and unit conversion library for Python

License

Notifications You must be signed in to change notification settings

emreozcan/dimAns

Repository files navigation

dimAns

Dimensional analysis and unit conversion library

PyPI - Version GitHub Tag PyPI - Downloads GitHub License

GitHub Actions Workflow Status Codacy Code Quality Badge Codacy Coverage Badge

Installation

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]

Usage

>>> from dimans.units import gram, kilogram, metre
>>> (32_000 * gram).to(kilogram)
<Quantity 32.0 kg>

Calculator

dimans

dimAns Calculator Screenshot: Main ScreendimAns Calculator Screenshot: Command Search