Giter Club home page Giter Club logo

Comments (12)

ankostis avatar ankostis commented on May 18, 2024

Did you have something like this in mind?

I.e., try with project's dodo.py the following:

  doit list --graph
  doit list --graph epydoc package

doit_dependencies_graph

from doit.

schettino72 avatar schettino72 commented on May 18, 2024

Cool. I am glad to see some work being done on this :)

  • I think better leave the list command as it is now. And put graph as a separate command, it will probably grow to require its own parameters.
  • I wish there was some kind of plugin system to add commands to doit. Requiring everyone to install matplotlib and networkx is not nice.
  • what I really wish was some kind interactive visualization where you could hide/show nodes, select which type of nodes to show, cluster nodes, etc... but of course that's very ambitious.
  • To start with I was thinking about just generate a text dot file and let graphviz handle the rendering. I am not familiar with networkx but it seems it works too :)

So, making it clear. This is very welcome but due to extra dependencies it cant come into doit core (it might have an "official" status but wont come in the main distribution package).
Something that generate a text file (like dot) that doesnt need extra packages would be accepted on core.

I will create another issue to discuss about a plugin system.

from doit.

schettino72 avatar schettino72 commented on May 18, 2024

issue #32 deals with a plugin system

from doit.

ankostis avatar ankostis commented on May 18, 2024

I think better leave the list command as it is now. And put graph as a separate command, it will probably grow to require its own parameters.

Myself originally had implemented it as a new graph command (i still have the code available) but came to pack it as list option because it really meddles with the workflow:

$ doit list
... 
doit list -g <a_task_from_above_list> 

And if its output is just a list of nodes, as you suggest, then it does make even more sense. I'm having git log as a guiding principle. Something like this: http://stackoverflow.com/a/9074343/548792

I wish there was some kind of plugin system to add commands to doit. Requiring everyone to install matplotlib and networkx is not nice.
...
To start with I was thinking about just generate a text dot file and let graphviz handle the rendering. I am not familiar with networkx but it seems it works too :)
...
Something that generate a text file (like dot) that doesnt need extra packages would be accepted on core.

  • I fully agree for the plugn system.
  • Matplotlib requirement is indeed too heavy and has to be factored out in a plugin.
  • What i don't understand is the no-extra" package rule. The networkx is a pure-python 2 & 3 graph-library with very fast and lightweight data-structures, yet extremely powerful, perfectly fit to the tasks (reporting drawing, researching). I do not think any body will object in installing it.
    The only minor issue i see is that it is not tested on python-version prior to 2.7, but the documents still mention 2.6 and 3.2 as suitable versions. But is this such a showstopper for reinventing the graph-wheel?

from doit.

schettino72 avatar schettino72 commented on May 18, 2024

It is not just about adding another dependency. For a graph command I guess it makes sense to add the following options:

  • drawer (one of networkx, dot, jpg, svg, json, etc)
  • include file_dep, targets ?
  • cluster files
  • cluster subcommands
  • i am sure gonna have more

these are just too much to go together with list command.

Also I have strict quality requirements for doit core, like 100% tests, etc. Leaving it outside gives it more freedom to evolve.

I added a basic plugin system 8091428
Check the test for an example of usage.

I suggest you not only move this code to a different command, it also should go into a different repository. I will invite you to join the pydoit group, but of course you are free to host it under your name if you prefer.

from doit.

schettino72 avatar schettino72 commented on May 18, 2024

@ankostis I sent an invitation but I am not 100% sure you have permissions to create a new repo... let me know. cheers

from doit.

ankostis avatar ankostis commented on May 18, 2024

Thank you, i accepted it.

from doit.

ankostis avatar ankostis commented on May 18, 2024

Ported functionality to new repo: https://github.com/pydoit/doit-graphx

from doit.

schettino72 avatar schettino72 commented on May 18, 2024

Great. I am closing this. At some point you should send an email to doit email group to announce this :)

from doit.

schettino72 avatar schettino72 commented on May 18, 2024

Also we need to feature it somewhere in the main doit docs...

from doit.

goretkin avatar goretkin commented on May 18, 2024

The homepage mentions

DAG Visualisation: create task's dependency-graph image using graphviz

This issue comes up in a search, so I thought it would be helpful to others if I ask here: how do I access this functionality?

from doit.

schettino72 avatar schettino72 commented on May 18, 2024

https://github.com/pydoit/doit-graph

from doit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.