Skip to content
/ ounce Public

A simple Python package to manipulate units of measure

License

Notifications You must be signed in to change notification settings

lace/ounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

971b1e4 · Dec 14, 2022

History

34 Commits
Dec 2, 2022
Dec 14, 2022
Jul 17, 2021
Jul 17, 2021
May 20, 2022
Oct 28, 2019
Jul 17, 2021
Oct 28, 2019
Jul 17, 2021
Jul 17, 2021
Jul 17, 2021
Dec 2, 2022
Dec 9, 2022
Dec 2, 2022
Dec 2, 2022
Jul 17, 2021

Repository files navigation

ounce

version python version license build docs build code style

Fast, simple, non-fancy, and non-magical package for manipulating units of measure.

It's a faster and less fancy counterpart to Pint.

Installation

pip install ounce

Usage

import ounce

value, units = ounce.convert(value, "in", "cm")

Versioning

This library adheres to Semantic Versioning.

Development

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.

Acknowledgements

This was extracted from blmath by Paul Melnikow. blmath itself was extracted from the Body Labs codebase and open-sourced by Alex Weiss.

License

The project is licensed under the two-clause BSD license.