#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    1
    Rep Power
    0

    Dependency Graph


    Anyone know of a tool for graphing project dependencies? I tried out PyGraphViz, but it is more of a class diagram. I am more interested in what libraries and their versions are being used (including internal libraries/projects). I also tried snakefood and it does pretty much what I want; however, because of the way it was implemented, any library that isn't on the PYTHONPATH fails with a warning and is omitted from the diagram.

    Right now, I am thinking my best bet is to use snakefood and wrap it with a script that will parse the warnings and add those imports to the graph along with the libraries listed in my requirements.txt. I haven't found a tool that will deal with all of these instances.

    Thanks in advance,
    Ci-Ci
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2009
    Posts
    530
    Rep Power
    34
    On LInux you can add to the PYTHONPATH in bash.rc
    export PYTHONPATH=$PYTHONPATH:/other/directory/name

    Sorry, don't know much about graphing projects.

IMN logo majestic logo threadwatch logo seochat tools logo