Skip to content

A powerfull tool that combines the content of all text files from a directory, into one string, to pass as context to an LLM or any other use cases.

Notifications You must be signed in to change notification settings

randykum/DirParser

Repository files navigation

Directory Parser Pro

A modern graphical user interface (GUI) application for recursively parsing directories, selecting text-based files, and combining their contents into a single file.

Key Features

  • Modern UI: A clean, Apple-inspired interface built with Python's tkinter library.
  • Comprehensive File Support: Intelligently detects a wide range of text-based files, including source code, configuration files, markup, and documentation.
  • Interactive Directory Tree: Visualize and navigate the directory structure with an interactive tree view.
  • Selective Parsing: Choose specific files and folders to include in the final output.
  • Real-time Content Preview: See the combined content of selected files in real-time.
  • Copy & Download: Easily copy the combined content to the clipboard or download it as a .txt or .md file.
  • Detailed Status Bar: Get live updates on the number of files found, selected, and the total size of the combined content.

How to Run

  1. Ensure you have Python 3 installed on your system.
  2. Save the code as a Python file (e.g., dirParser4.py).
  3. Run the script from your terminal:
    python dirParser4.py

Dependencies

This application uses only Python's built-in standard libraries (tkinter, os, pathlib, threading). No external packages are required. An empty requirements.txt file is included to reflect this.

About

A powerfull tool that combines the content of all text files from a directory, into one string, to pass as context to an LLM or any other use cases.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages