earthobservations / python-measurement

Use and manipulate unit-aware measurement objects in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Use and manipulate unit-aware measurement objects in Python

License:MIT License


Languages

Language:Python 100.0%