Analyzing python application

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Analyzing python application

abergel
Hi!

Just to share what we have recently done. 
We have designed a very simple python analyzer, available as a Roassal plugin (available from the world menu).

As an example, the following code produces:
-=-=-=-=-=-=-=-=-=-=-=-=
root := '/Users/alexandrebergel/Desktop/astropy' asFileReference.

p := PyProcessor new.
p processRootFolder: root.
p resolveDependencies.

b := RTMondrian new.
b shape circle.
b shape box 
height: #numberOfLinesOfCode;
width: [ :c | c numberOfMethods * 10 ].
b nodes: p classes.
b edges connectFrom: #superclass.
b layout tree;
ifNotConnectedThen: RTFlowLayout new.
b normalizer
distinctColorUsing: #file.
^ b
-=-=-=-=-=-=-=-=-=-=-=-=

Cheers,
Alexandre

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev