posts:salt-stack: Add Salt post
[blog.git] / posts / depgraph.mdwn
index 098a88cb01b4b5d12ae750bdd7ec9b5b8d9c1f2a..a62dd10a831fb2283d43ac13526a0c8a67423286 100644 (file)
@@ -1,15 +1,19 @@
+[[!template id=gitrepo repo=depgraph]]
+
 This set of scripts scans a Python file for module dependencies, and
-generates code for [Graphviz dot][graphviz].
+generates code for [Graphviz dot][graphviz].  See [[call_graph]] for a
+script that generates dependency graphs *within* a module.
 
-Originally by Toby Dickenson.  Good for giving you the "long view" on
-how your project is organized.  I've [altered][] the [originals][] a
-bit.
+Originally by Toby Dickenson, the scripts are good for giving you the
+"long view" on how your project is organized.  I've altered the
+[originals][] a bit.
 
-My `py2depgraph` also prints out path information for each module, so
-that you can show or hide module nodes based on those paths.  For
-example, ignoring system modules to focus on your additions.
+My [py2depgraph.py][] also prints out path information for each
+module, so that you can show or hide module nodes based on those
+paths.  For example, ignoring system modules to focus on your
+additions.
 
-My `depgraph2dot` has an added method
+My [depgraph2dot.py][] has an added method
 `depgraph2dot.invalidpath(module_name, path)` that you can override to
 determine the paths you like.
 
@@ -24,7 +28,9 @@ I've also added the `depgraph2dot` methods
 to detect and configure the shared C libraries extending Python, so
 you know where to look for the code your Python depends on.
 
-As example, here is the depgraph of my protein unfolding program [unfold.py][]
+[[!template id=gitrepo repo=unfold_protein]]
+
+As example, here is the depgraph of my protein unfolding program `unfold.py`
 
     $ python py2depgraph.py unfold.py | python depgraph2dot.py | dot -T png -o depgraph.png
 
@@ -39,9 +45,12 @@ in their paths.
   title="unfold.py dependency graph"]]
 
 [graphviz]: http://www.graphviz.org
-[altered]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=depgraph.git
 [originals]: http://tarind.com/depgraph.html
-[unfold.py]: http://www.physics.drexel.edu/~wking/code/git/git.php?p=unfold_protein.git
+[py2depgraph.py]:
+  http://git.tremily.us/?p=depgraph.git;a=blob_plain;f=py2depgraph.py;hb=HEAD
+[depgraph2dot.py]:
+  http://git.tremily.us/?p=depgraph.git;a=blob_plain;f=depgraph2dot.py;hb=HEAD
 
-[[!tag tags/tools]]
 [[!tag tags/programming]]
+[[!tag tags/python]]
+[[!tag tags/tools]]