TornikeMzhavia / TreeReduce

Project for reducing tree data structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tree structure simplifier

Program gets as an input tree of data consisting of redundant duplicates.

This data holds the information about list of technologies used on each level of hierarchy.

As an output a deduplicated and compressed tree is presented.

Prerequisites

  • Python 3 is needed to run this appllication.
  • Activate the 'venv' virtual environment from the directory: (More info here)
venv\Scripts\activate
  • Install the required packages from the requirements.txt file by running:
pip install -r requirements.txt
  • Create file with input data formatted the following way (or use the existing sample one):
url1 -> technology1, technology2 ...
url2 -> ...
...
...

Running the application

Simply call the run.py file from the command prompt. Configuration can be set in config.ini.

run.py

Setting up the configuration

  • input_directory - path of the file containing the input tree in the correct format
  • output_directory - path for the output file to be created
  • split_symbol - Input format specifier. The default is set to '->'. Others can be used
  • list_separator - Input format specifier. The default is set to ','. Others can be used

Author

About

Project for reducing tree data structure


Languages

Language:Python 97.7%Language:Tcl 2.0%Language:PowerShell 0.1%Language:Batchfile 0.1%