# 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 code-combiner-rag
```
## 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
Raw data
{
"_id": null,
"home_page": "https://github.com/bazinga012/code-combiner-rag",
"name": "code-combiner-rag",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "code, combine, rag, llm, ai, machine learning, code-embedding",
"author": "Vishal Agrawal",
"author_email": "vishal18593@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/29/36/e4fc851caed925fc159cea65c758a1f0acc2c5fb27e99b42ec77115337db/code_combiner_rag-0.1.2.tar.gz",
"platform": null,
"description": "# Code Combiner\n\nA 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.\n\n## Installation\n\n```bash\npip install code-combiner-rag\n```\n\n## Usage\n\n```bash\n# Create a default config file\ncode-combiner --create-config\n\n# Combine files using the config\ncode-combiner /path/to/directory --config code_combiner_config.yaml --output combined_code.txt\n```\n\n## Configuration\n\nCreate a YAML configuration file with exclusion patterns:\n\n```yaml\nexclude_files:\n - \"/absolute/path/to/file.py\"\n - \"relative/path/to/file.js\"\n\nexclude_patterns:\n - \"*.test.js\"\n - \"__pycache__/\"\n - \"node_modules/\"\n\nexclude_extensions:\n - \".pyc\"\n - \".pyo\"\n```\n\n## Options\n\n- `--output`: Specify output file path (default: combined_code.txt)\n- `--config`: Specify config file path (default: code_combiner_config.yaml)\n- `--create-config`: Create a default configuration file\n- `--version`: Show program version\n- `--help`: Show help message\n",
"bugtrack_url": null,
"license": null,
"summary": "A tool to combine code files into a single file for RAG pipelines",
"version": "0.1.2",
"project_urls": {
"Bug Tracker": "https://github.com/bazinga012/code-combiner-rag/issues",
"Homepage": "https://github.com/bazinga012/code-combiner-rag"
},
"split_keywords": [
"code",
" combine",
" rag",
" llm",
" ai",
" machine learning",
" code-embedding"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9d86b3a3b515eaee8df0003671d5e7fbdd89d8a6ec0b56de380064c6592a7ea8",
"md5": "cc9b735cc7399d090a5e707954245c35",
"sha256": "3a6395653c06d14c948c4b61831c63864a82d2622a8f9c51137d49589b2b7ec8"
},
"downloads": -1,
"filename": "code_combiner_rag-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cc9b735cc7399d090a5e707954245c35",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5054,
"upload_time": "2025-02-07T17:38:01",
"upload_time_iso_8601": "2025-02-07T17:38:01.967037Z",
"url": "https://files.pythonhosted.org/packages/9d/86/b3a3b515eaee8df0003671d5e7fbdd89d8a6ec0b56de380064c6592a7ea8/code_combiner_rag-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2936e4fc851caed925fc159cea65c758a1f0acc2c5fb27e99b42ec77115337db",
"md5": "8908936ef52d10101943dc763b425724",
"sha256": "d15bf3a5a58ea1b78568d3a3cbfbb182a321b271c05a2f79d4687faeb10d7270"
},
"downloads": -1,
"filename": "code_combiner_rag-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "8908936ef52d10101943dc763b425724",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4640,
"upload_time": "2025-02-07T17:38:03",
"upload_time_iso_8601": "2025-02-07T17:38:03.736183Z",
"url": "https://files.pythonhosted.org/packages/29/36/e4fc851caed925fc159cea65c758a1f0acc2c5fb27e99b42ec77115337db/code_combiner_rag-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-07 17:38:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bazinga012",
"github_project": "code-combiner-rag",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "code-combiner-rag"
}