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.

Download files

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

Files for ounce, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size ounce-1.1.0-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ounce-1.1.0.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page