How to install Gluttony
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install gluttony
Lastest release
("========rnGluttonyrn========rnrnGluttony is a tool for finding dependency relationships among Python rnprjects in PyPi, it is based on pip.rnrn.. image:: http://static.ez2learn.com/gluttony/gluttony.jpgrnrnInstallationrn============rnrnTo install Gluttonyrnrn::rnrn easy_install Gluttonyrn rnUsagern=====rnFor understanding optons of Gluttony, you can type:rn::rnrn gluttony --helprn rnAlso, once your're familiar with pip install, most of the options are same.rnrnDrawing Graphrn=============rnrnTo know dependency relationshipsrnrn::rnrn gluttony <project name> --display-graphrnrnFor example: you want to know the dependency relationships of a rnPython project Sprox, then you can type::rnrn gluttony sprox --display-graphrnrnThe result might looks like this:rnrn.. image:: http://static.ez2learn.com/gluttony/sprox.pngrnrnAlso, it also supports most of command of pip install, for example: rnyou want to know the relations among TurboGears2 packages, here we typernrn::rnrn gluttony -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools --display-graphrnrnThe result:rnrn.. image:: http://static.ez2learn.com/gluttony/tg2.pngrnrnOops, the graph is a mess. I didn't handle layout of graph. I have not time rnto finish it right now. Fortunately, you can output the graph as dot or rnpickle format file for further handling.rnrnOutput Graphviz Filern====================rnIn order to draw the diagram with Graphviz, you can output that format.rnFor example:rnrn::rnrn gluttony sprox --pydot sprox.dotrntrnThen you can use Graphviz for drawing beautiful rngraph. Like this one:rnrn.. image:: http://static.ez2learn.com/gluttony/sprox_dot.pngrnrnAnother huge example:rnrn`Dependency relationship digram of TurboGears2 <http://static.ez2learn.com/gluttony/tg2_dot.png>`_rnrnOutput Pickle Filern==================rnIf you want to get the relationships data in Python form, this tool also rnprovide a pickle output. For example:rnrn::rnrn gluttony sprox --pickle sprox.picklerntrnThen you can use pickle.load for further processing.rnrnGalleryrn=======rnrn`Gallery <http://code.google.com/p/python-gluttony/wiki/Gallery>`_rnrnAuthorrn======rnrn * Victor Lin (bornstub at gmail.com)rn * Twitter: victorlinrn * Blog: Victor's Blog",)