Skip to main content

A tool to combine multiple files while preserving directory structure

Project description

FileCombinator

FileCombinator is a Python tool that combines multiple files while preserving their directory structure, making it easy to share or inspect collections of files.

Features

  • Preserves directory structure when combining files
  • Handles various file types (text, binary, image)
  • Configurable file and directory exclusions
  • Detailed logging with customizable output
  • Command-line interface for easy use

Installation

pip install filecombinator

Quick Start

# Process current directory
filecombinator

# Process specific directory
filecombinator -d /path/to/dir

# Exclude specific patterns
filecombinator -e node_modules dist

# Specify output file
filecombinator -o combined_output.txt

# Enable verbose output
filecombinator -v

Configuration

FileCombinator can be configured via a YAML file. Default patterns to exclude:

  • __pycache__
  • .venv
  • .git
  • node_modules
  • And more...

Create a custom config file to override defaults.

Development

# Clone the repository
git clone https://github.com/your-username/filecombinator.git
cd filecombinator

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install development dependencies
make install

# Run tests
make test

# Run linting
make lint

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

filecombinator-0.3.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

filecombinator-0.3.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file filecombinator-0.3.0.tar.gz.

File metadata

  • Download URL: filecombinator-0.3.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for filecombinator-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c3b8bb8916f198288267c0890daabf7de41b36007f2e89b1b15108cda9119327
MD5 53eff79df61fe03d0734aede4b347d97
BLAKE2b-256 9089128f43274fcefb4d025f1691c3d68e58ae5940330d0cc5bb81d965637ae1

See more details on using hashes here.

File details

Details for the file filecombinator-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: filecombinator-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for filecombinator-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e806c15b53f4d95a6741ab611a0bb524c2c6d1699c237530bb05479d13e92277
MD5 df6bce9ce83784143027e55d0124be7e
BLAKE2b-256 12c0ae3cf4ef6bc63fd6b2fcd4609aba9ce59b427f00e717b43e6affffcd52f0

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