Unum

Units in Python
by Chris MacLeod, Pierre Denis
"Write that down," the King said to the jury, and the jury eagerly wrote down all three dates on their slates, and then added them up, and reduced the answer to shillings and pence."

Alice In Wonderland - Lewis Carroll

Unum stands for 'unit-numbers'. It is a pure Python module that allows defining and manipulating true quantities, i.e. numbers with units like volts, hours, meter-per-second. Consistency between units is checked at each expression evaluation; unit conversion and unit output formatting are performed automatically when needed. It is stable, lightweight and easy-to-use.

The project is currently migrating to BitBucket. Please submit all bug reports, feature requests, and patches there. Unum is licenced under the LGPL.

Downloads

Documentation