BOUML is a free UML 2 tool box allowing you to specify and generate code in C++, Java, Idl, Php and Python. BOUML is very fast and doesn't require much memory to manage several thousands of classes. This requires the qt3 package from extra/kde3-compat/