Pyreversed class diagrams¶
Extracting class diagrams from code is easy; there exist many tools. For python,
pyreversed is the most used one.
The readability of the diagram is strongly dependents on the tool, the selected options, and mostly: the quality of the design/code. Do not expect nice diagrams, when somebody created the code without a proper design!
The class-diagrams below are automatically generated; using pyreverse. Two analyses are made:
Showing all details (right)
Showing only the “public” parts
Which of the two diagrams are the most useful?
How bad (if at all) is it to have “too many” details”?
Which details should not be included? (When you do the analyse manually)
The Python3.4.1 code is used to geneate the diagrams above.