kiv / Unum

Unum stands for 'unit-numbers'. It is a Python module that allows you to define and manipulate quantities with units attached such as 60 seconds, 500 watts, 42 miles-per-hour, 100 kg per square meter, 14400 bits per second, 30 dollars, and so on. Features include exceptions for incorrect use of units, automatic and manual conversion between compatible units, easy extension to arbitrary units, and integration with other arithmetic types including Numpy arrays and standard library types like complex and fractions.Fraction.

Clone this repository (size: 66.4 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/kiv/unum/

Shortlog (showing r16:5d8c48e5d6af (tip) → r0:db9efc4fb895)

Age Author Message A M D «
3 months ckm...@mta.ca Add restructured text marker to see if Bitbucket will render it. 0 1 0
3 months ckm...@mta.ca More work on docs. 0 1 0
3 months ckm...@mta.ca Fix bug where attosecond "as" was a reserved word. More work on README and docs. 0 3 0
3 months ckm...@mta.ca Update README file for new version. 0 1 0
3 months ckm...@mta.ca Fix Issue #1 - prefix names for 10e1 and 10e-1 were incorrect. 5 5 1
3 months ckm...@mta.ca Fix up setup script to reflect new package structure. Sketch out test suite. 0 4 0
3 months ckm...@mta.ca Start documentation. Expand exception classes to handle specific situations… 4 3 0
3 months ckm...@mta.ca Break backwards compatibility by renaming Unum.unit to Unum.defineUnit. 0 3 0
3 months ckm...@mta.ca Add .hgignore file. 1 0 0
3 months ckm...@mta.ca Expose the value and unit parts of a Unum as read-only properties. 0 1 0
3 months ckm...@mta.ca Avoid coercing values into floats; this allows support for the stdlib… 0 2 0
3 months ckm...@mta.ca Cleaned up formatting to be closer to PEP8 (leaving camelCase methods for API… 1 3 8
3 months ckm...@mta.ca Start refactoring directory structure to support "setup.py test" using Nose. 3 1 1
3 months ckm...@mta.ca Tweak code for 2.x and 3.x compatibility. 0 1 0
3 months ckm...@mta.ca Start of support for both 2.x and 3.x. 0 5 0
3 months ckm...@mta.ca Rename "as" method to "as_unit", while leaving the old name available to older… 0 1 0
3 months ckm...@mta.ca Start repository. 14 0 0