Skip to main content

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 .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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

packtxt-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

packtxt-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for packtxt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 354646aed9f6b430574c8e916fe9e77dfa312a0542e4ceabe2a978a2b8cdb88c
MD5 8ea901aeb9f4174533459b3c8d84ecc2
BLAKE2b-256 5cf346c5c1a1afb180fdf5be64a0ba065a2c75eeb51581f13e904972dc6c17de

See more details on using hashes here.

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

Hashes for packtxt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 801ee16203b95894951bb60c7fc8414dfc6606e3bbc56fdaf77a5b2917825fa8
MD5 776d71d8c6f089cabf6dedffa0d8062c
BLAKE2b-256 d27b1f372b09e01723f7a5d741a309f791f0e5a266ec8fbc662996a2e6d8ce81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page