Skip to content

A tool to pack and unpack directories to/from .txt files with Git branch support

License

Notifications You must be signed in to change notification settings

digitaluniverse/packtxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PackTXT

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.

Features

  • Pack a Directory: Compress a specified directory into a .txt file.
  • Pack a Git Branch: Compress files from a specified Git branch into a .txt file.
  • Unpack a .txt File: Decompress a .txt file into a specified directory.

Installation

You can install PackTXT via pip:

pip install packtxt

Usage

Pack a Directory

packtxt pack <directory_path> [--branch <branch_name>] [--output <output_path>]

Unpack a .txt File

packtxt unpack <txt_file> [--output <output_dir>]

Example Workflow

  1. Initialize a Git Repository:
cd my_project
git init
  1. Add Files to the Pack:
git add file1.txt dir2/
git commit -m "Add files to pack"
  1. Pack Files from a Git Branch to a .txt File:
packtxt pack ./my_project --branch new-branch --output my_project.txt
  1. Unpack the .txt File:
packtxt unpack my_project.txt --output unpacked_project

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A tool to pack and unpack directories to/from .txt files with Git branch support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages