A tool to pack and unpack directories to/from .txt files with Git branch support
Project description
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
.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.
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
- 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_project
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file packtxt-0.1.0.tar.gz.
File metadata
- Download URL: packtxt-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
354646aed9f6b430574c8e916fe9e77dfa312a0542e4ceabe2a978a2b8cdb88c
|
|
| MD5 |
8ea901aeb9f4174533459b3c8d84ecc2
|
|
| BLAKE2b-256 |
5cf346c5c1a1afb180fdf5be64a0ba065a2c75eeb51581f13e904972dc6c17de
|
File details
Details for the file packtxt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: packtxt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
801ee16203b95894951bb60c7fc8414dfc6606e3bbc56fdaf77a5b2917825fa8
|
|
| MD5 |
776d71d8c6f089cabf6dedffa0d8062c
|
|
| BLAKE2b-256 |
d27b1f372b09e01723f7a5d741a309f791f0e5a266ec8fbc662996a2e6d8ce81
|