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.1.0.tar.gz (14.7 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.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: filecombinator-0.1.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for filecombinator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a53b0f5ef912aebdd499cffe21d336a1e11325315a8c98d24215d7e96acba66b
MD5 35b17bc94ad8c61fc8457f9730acb452
BLAKE2b-256 d842c66688f28097a059fc2702a60642a58f7bafe48183529ca512403944f482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: filecombinator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for filecombinator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5b14f3c7ed68dcd6b6a33f2ac8a208ceed742521cc522c697fa4a2962407094
MD5 f0dce24f037bbf5cdd5168c94ba27aef
BLAKE2b-256 5a5db01725d75127ef8171db74656edd141d9b2fb476e3e779ec9a91a41c2cd1

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