Commit Graph

29 Commits

Author SHA1 Message Date
David Fraser
09a81c67cc Python 3 compatibility 2016-12-07 14:04:56 +02:00
David Fraser
c67c831a3c Replace prints with calls to streams 2016-12-07 14:02:27 +02:00
David Fraser
dda1210223 Added GNU GPL v2 license, as specified in the original publication at https://ejrh.wordpress.com/2011/12/23/call-graphs-in-python/#comment-824
and at the original publication page https://code.google.com/archive/p/ejrh/
Also fixed Juha Jeronen's name
2016-08-08 12:46:10 +02:00
David Fraser
c554b967c2 Added shebang and made this executable 2016-01-21 09:45:10 +02:00
David Fraser
6d58750f77 Moved README to markdown format, and rearranged to be a summary of the current state rather than a description of the modifications 2016-01-21 09:44:32 +02:00
David Fraser
b2a011abaf Adjusted note on repositories to explain full history and this repository 2016-01-21 09:29:54 +02:00
Juha Jeronen
459eda8efc pyan.py: compatibility of -e option with newer graphviz 2016-01-20 19:33:37 +02:00
Juha Jeronen
0794fadc19 Repository cleanup: moved Pyan to its own subfolder 2016-01-20 19:33:33 +02:00
Juha Jeronen
e81acfc7dd pyan.py: removed unneeded TODOs 2016-01-20 19:28:05 +02:00
Juha Jeronen
793cb71353 pyan.py: fixed incorrect comment 2016-01-20 19:28:05 +02:00
Juha Jeronen
df9060d220 pyan.py: removed commented-out parts of added code 2016-01-20 19:28:05 +02:00
Juha Jeronen
4b7a4a9aa6 pyan.py: fixed erroneous comment 2016-01-20 19:28:05 +02:00
Juha Jeronen
ab347d3736 pyan.py: consistent translucency 70% also in non-colored mode 2016-01-20 19:28:05 +02:00
Juha Jeronen
9eb5727181 pyan.py: fixed misleading error message in htmlize_rgb() 2016-01-20 19:28:05 +02:00
Juha Jeronen
a02322e3b5 pyan.py: added option to disable adding of 'uses' relationships 2016-01-20 19:28:05 +02:00
Juha Jeronen
a1aa14a6c5 pyan.py: changed nodes to 70% opaque (from 80%) 2016-01-20 19:28:05 +02:00
Juha Jeronen
881a3fa1e1 pyan.py: use translucencies and grays also without -c 2016-01-20 19:28:05 +02:00
Juha Jeronen
4173d977d1 pyan.py: warn in verbose mode when colors wrap 2016-01-20 19:28:05 +02:00
Juha Jeronen
0c0f256e04 pyan.py: in -c mode, color nodes according to their top-level namespace 2016-01-20 19:28:05 +02:00
Juha Jeronen
0b368b6d30 pyan.py: added -e (--nested-groups) 2016-01-20 19:28:05 +02:00
Juha Jeronen
524e204f57 Add author names in addition to original source links to the txt files 2016-01-20 19:28:05 +02:00
David Fraser
f1e4b2937a Refactoring helpers for Python (modified version of pyan.py, originally by Edmund Horner)
Conflicts:
	pyan.py
2016-01-20 19:27:49 +02:00
Juha Jeronen
0071b5517d Refactoring helpers for Python (modified version of pyan.py, originally by Edmund Horner) 2016-01-20 19:25:16 +02:00
ejrh00
7e46ad2ee0 A few small improvements. The biggest of which is running the analysis twice: this means forward references have a chance of being picked up (e.g. if a method uses the method defined immediately after it, it will be able to find it from the previous parse). 2012-02-20 03:40:07 +00:00
ejrh00
0e73a114e4 Massive changes to take more guesses about which exact node is being used where, rather than lumping them all together.
Made some improvements to the pyan.py script -- it now creates distinct nodes for each object encountered, e.g. Message.send and Socket.send are no longer considered the same thing. It tries to infer which is being used in each particular instance; if it can't do that, it will add use-edges to every possible match. E.g.: x = Message(); x.send() is clearly a reference to Message.send. This is all very heuristical; so can't be relied upon as proper static analysis. But it cleans up the call graphs quite a bit.

Some outstanding mis-guesses exist.
2012-01-11 04:18:49 +00:00
edmund
56de729064 Add command line parsing with options for dot and tgf output. 2012-01-09 05:38:54 +00:00
edmund
09c591609e Support From nodes which apparently are distinct from Import nodes. 2011-12-24 02:49:09 +00:00
edmund
669da13fc3 Write a program for generating call graphs from Python sources. 2011-12-22 07:10:39 +00:00
edmund
137eecff65 Import image viewer and xmlgrep. 2011-09-08 08:52:54 +00:00