This tool concatenates the contents of all files in a project directory into a single text file while excluding specified files and directories. Usefull when interating with llms.
- Python 3.x
tqdmpackage for progress bars
You can install tqdm using pip:
pip install tqdmThe tool accepts the following arguments:
--projector-p: Required. The name of the project root folder.--excludeor-x: Optional. Files or directories to exclude (space-separated list).--outputor-o: Optional. The output file name. Default istview.txt.--viewignoreor-v: Optional. Path to the.viewignorefile. Default is./tools/.viewignore.
python tools/tview.py --project PROJECT_NAMEpython tools/tview.py --project PROJECT_NAME --output overview.txt --exclude extra_file.txt extra_dirIn this example:
--project PROJECT_NAME: Specifies the name of the project root folder.--output overview.txt: Specifies the output file name asoverview.txt.--exclude extra_file.txt extra_dir: Excludesextra_file.txtandextra_dirfrom the overview.
This project is licensed under the MIT License.