/python-measurement

Use and manipulate unit-aware measurement objects in Python

Primary LanguagePythonMIT LicenseMIT

Python measurement

High precision unit-aware measurement objects in Python.

>>> from measurement import measures
>>> measures.Distance("12 megaparsec")["British yard"]
Decimal('404948208659679393828910.8771')

This package provides a large reference collection of various measure and their corresponding SI (Metric), US or Imperial units. Its high precision supports use cases all the way from quantum mechanics to astrophysics.

  • Documentation for python-measurement is available an ReadTheDocs.
  • Please post issues on Github.