"boolean.py" is a single python module implementing a boolean algebra. It defines two base elements, TRUE and FALSE, and a class Symbol which can take on one of these two values. Calculations are done in terms of AND, OR and NOT - other compositions like XOR and NAND are not implemented.
$ git clone git://github.com/bastikr/boolean.py.git
http://readthedocs.org/docs/booleanpy/en/latest/
Simplified BSD License