Metadata-Version: 2.2
Name: code-combiner-rag
Version: 0.1.0
Summary: A tool to combine code files into a single file for RAG pipelines
Home-page: https://github.com/yourusername/code-combiner
Author: Vishal
Author-email: your.email@example.com
Project-URL: Bug Tracker, https://github.com/yourusername/code-combiner/issues
Keywords: code,combine,rag,llm,ai,machine learning
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyyaml>=5.1
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Code Combiner

A command-line tool to combine multiple code files into a single file, with support for exclusion patterns. Useful for preparing codebases for RAG (Retrieval-Augmented Generation) pipelines.

## Installation

```bash
pip install -e .
```

## Usage

```bash
# Create a default config file
code-combiner --create-config

# Combine files using the config
code-combiner /path/to/directory --config code_combiner_config.yaml --output combined_code.txt
```

## Configuration

Create a YAML configuration file with exclusion patterns:

```yaml
exclude_files:
  - "/absolute/path/to/file.py"
  - "relative/path/to/file.js"

exclude_patterns:
  - "*.test.js"
  - "__pycache__/"
  - "node_modules/"

exclude_extensions:
  - ".pyc"
  - ".pyo"
```

## Options

- `--output`: Specify output file path (default: combined_code.txt)
- `--config`: Specify config file path (default: code_combiner_config.yaml)
- `--create-config`: Create a default configuration file
- `--version`: Show program version
- `--help`: Show help message
