PackTXT is a Python CLI tool that allows you to pack and unpack project directories into and from .txt files. It supports packing from specific Git branches as well.
- Pack a Directory: Compress a specified directory into a
.txtfile. - Pack a Git Branch: Compress files from a specified Git branch into a
.txtfile. - Unpack a
.txtFile: Decompress a.txtfile into a specified directory.
You can install PackTXT via pip:
pip install packtxtpacktxt pack <directory_path> [--branch <branch_name>] [--output <output_path>]packtxt unpack <txt_file> [--output <output_dir>]- Initialize a Git Repository:
cd my_project
git init- Add Files to the Pack:
git add file1.txt dir2/
git commit -m "Add files to pack"- Pack Files from a Git Branch to a
.txtFile:
packtxt pack ./my_project --branch new-branch --output my_project.txt- Unpack the
.txtFile:
packtxt unpack my_project.txt --output unpacked_projectThis project is licensed under the MIT License - see the LICENSE file for details.