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
pip install code-combiner-rag
Usage
# 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:
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
Release files for code-combiner-rag 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| code_combiner_rag-0.1.2.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| code_combiner_rag-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / code_combiner_rag-0.1.2.tar.gz
| Download URL | code_combiner_rag-0.1.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d15bf3a5a58ea1b78568d3a3cbfbb182a321b271c05a2f79d4687faeb10d7270
|
|
BLAKE2b-256 checksum How to use checksums |
2936e4fc851caed925fc159cea65c758a1f0acc2c5fb27e99b42ec77115337db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.8
|
Release files / code_combiner_rag-0.1.2-py3-none-any.whl
| Download URL | code_combiner_rag-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a6395653c06d14c948c4b61831c63864a82d2622a8f9c51137d49589b2b7ec8
|
|
BLAKE2b-256 checksum How to use checksums |
9d86b3a3b515eaee8df0003671d5e7fbdd89d8a6ec0b56de380064c6592a7ea8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.8
|