Fast, simple, non-fancy, and non-magical package for manipulating units of measure.
It's a faster and less fancy counterpart to Pint.
pip install ounce
import ounce
value, units = ounce.convert(value, "in", "cm")
This library adheres to Semantic Versioning.
First, install Poetry.
After cloning the repo, run ./bootstrap.zsh
to initialize a virtual
environment with the project's dependencies.
Subsequently, run ./dev.py install
to update the dependencies.
This was extracted from blmath by Paul Melnikow. blmath itself was extracted from the Body Labs codebase and open-sourced by Alex Weiss.
The project is licensed under the two-clause BSD license.