Skip to main content

A simple Python package to manipulate units

Project description

ounce

version python version license build docs build code style

A simple Python package to manipulate units. Fast. Not fancy. No magic. 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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ounce-1.1.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

ounce-1.1.0-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page