Python version of npm repopack by yamadashy
Repopack is a powerful tool that packs your entire repository into a single, AI-friendly file.
Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, and Gemini.
Here is webapp for same use case, runs entirely on browser, fully static :- repo2txt.simplebasedomain.com Code
To use Repopack-py, follow these steps:
-
Install the package:
pip install repopack
-
Run the following command:
repopack path/to/your/repository
-
The packed file will be generated in the current directory with the name
repopackpy-output.txt
by default.
You can customize the packing process with these options:
-o, --output
: Specify the output file name (default: repopack_output.txt)-i, --ignore
: Add patterns to ignore (in addition to .gitignore, comma-separated)-c, --config
: Specify a configuration file--output-show-line-numbers
: Show line numbers in the output file--output-style
: Specify the output style plain or xml (default: plain)