This package attempts to implement finite abstract algebra in python. It is written by Naftali Harris and licensed under the GNU General Public License, Version 3.
$ sudo python setup.py install
$ python
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from absalg import *
>>> print Zn(2) * Zn(2)
e: (0, 0)
a: (0, 1)
b: (1, 0)
c: (1, 1)
| e | a | b | c |
---+---+---+---+---+
e | e | a | b | c |
---+---+---+---+---+
a | a | e | c | b |
---+---+---+---+---+
b | b | c | e | a |
---+---+---+---+---+
c | c | b | a | e |
---+---+---+---+---+
>>>
See "COPYING"