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
Filename, size ounce-1.1.0.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page