Git Product home page Git Product logo

dag-dir's Introduction

dag-dir

Like tree but draws it in the form of a DAG. My idea was that symbolic links essentially make a file system a DAG. Although after reading more it does seem like symbolic link loops are allowed at least on Unix system. I will deal with that case later. I still need to make it more robust, I need to add a lot more tests.

Example Usage

For the following tree output:

[X@X tmp7sojntl_]$ tree
.
├── a.txt
└── subdir
    ├── ptr.txt -> /tmp/tmp7sojntl_/a.txt
    └── b.text

With dag_dir.py this results in:

[X@X tmp7sojntl_]$ (dag-show) [lap@lap-arch show-dag]$ python dag_dir.py /tmp/tmp7sojntl_ --canvas-size 20 50
          subdir/ptr.txt
                *^
               *  *
               *   *
              *     *
             *      *
            *        *
           *          *
           *          *
          *         subdir
         *             *  ^
        *              *      *
        *             *          *
       *              *             *
      *               *                 *
     *                *                    *
    *                 *                       *
    *                *                           *
   ∨                 ∨                               *
a.txt <********subdir/b.txt*********************/tmp/tmp7sojntl_

Installation

It is writing in python (I in particular during development was using 3.10.9), just create a virtual env in your prefered way and install netgraph in your virtual environment. Either via:

  • via pip 0: pip install netgraph
  • via pip 1: pip install -u netgraph
  • if you are using a conda env and wanted to use the conda package: conda install -c conda-forge netgraph

Usage Set Up

So far I have only tested it on Linux, will test it on Windows. This would work best on a horizontal screen setup, as the height is most important, since right now I am only writing text from left to right not top to bottom or similar.

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.