REPOSITORY OVERVIEWLive repository statistics
★ 16Stars
⑂ 3Forks
◯ 0Open issues
◉ 16Watchers
60/100
OPENREPOHUB HEALTH SIGNALMixed signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
90 Community adoption25% weight
21 Maintenance state20% weight
100 License clarity10% weight
0 Project information10% weight
35 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
Folder to Text Converter
This Python script is designed to convert the contents of a directory into a single text file that can be uploaded to GPT-4 for processing. It provides a convenient way to share and collaborate on complete projects as a single file with the GPT model.
Usage
- Install the required packages:
pip3 install tqdm
pip3 install pool
- Run the script with the following command:
python3 folder-to-text.py <directory path> <output file name>
<directory path>: The path to the directory you want to convert (e.g., /Users/username/Documents/project/).
<output file name>: The desired name of the output text file (without the .txt extension, e.g., project).
- The script will generate a text file containing the directory structure and the contents of text-based files. Non-text files will be excluded from processing.
- Optionally, you can specify excluded files and folders by modifying the
exclude variable in the script. Use a comma to separate multiple excluded file and folder names.
- A progress bar will indicate the processing status, and the script will display the total number of files found and the ones that could not be processed.
Example
To convert a directory located at '/Users/username/Documents/project/' into a text file named 'project.txt', run the following command:
python3 folder-to-text.py /Users/username/Documents/project/ project
Excluded Files and Folders
By default, the script excludes the following files and folders:
node_modules/
.git/
build
test
.gitignore
.DS_Store
You can customize the list of excluded files and folders by modifying the exclude variable in the script.
Limitations
This script only processes text-based files and may not work with binary or non-standard file formats.
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
91/100 healthRecently updatedActive repository
PythonMIT#bash#bash-scripting#cli#command-line
⑂ 246 forks◯ 43 issuesUpdated 3 days ago
Do you want to LEARN NEW STUFF for FREE? Don't worry, with the power of web-scraping and automation, this script will find the necessary Udemy coupons & enroll you for PAID UDEMY COURSES, ABSOLUTELY FREE!
87/100 healthRecently updatedActive repository
PythonGPL-3.0#python#python3#scraper#scraping
⑂ 569 forks◯ 35 issuesUpdated 2 days ago