Units in Python
"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.
- Main Documentation - includes installation guide, examples, how to define your own units, parameterization, etc.
- Changelog - differences between previous versions of Unum
- DASIA paper (pdf) - paper by Pierre Denis based on Unum 1.0, presented at DASIA 2001 (DAta Systems In Aerospace)
- Poster 1 / Poster 2 - (JPG posters displayed at the Python 9th conference (includes the Ulbert Unstein comic strip). Zipped PowerPoint version