Metadata-Version: 2.2
Name: llm-context-cli
Version: 0.0.3
Summary: A tool to combine multiple files into a single file for AI context
Home-page: https://github.com/atomgradient/llm-context
Author: AtomGradient
Author-email: atomgradient <alex@atomgradient.com>
License: MIT License
        
        Copyright (c) [2025] [AtomGradient]
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/AtomGradient/llm-context
Keywords: llm,context,file,combine
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0.0
Requires-Dist: rich>=10.0.0
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

# AI Context

<div align="center">

[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI version](https://badge.fury.io/py/llm-context.svg)](https://badge.fury.io/py/llm-context)

🚀 A powerful command-line tool to combine multiple files into a single file formatted for Large Language Model (LLM) context.
</div>

## 🌟 Features

- 📁 Combine multiple files into a single document
- 🎯 Smart file pattern matching and exclusion
- 🎨 Markdown-formatted output with syntax highlighting
- 🔄 Preserve file structure and organization
- ⚡️ Fast and efficient processing
- 🛠 Customizable output formatting

## 📋 Prerequisites

- Python 3.7 or higher
- pip (Python package installer)

## 🚀 Installation

Install using pip:

```bash
pip install llm-context-cli
```

Or install with pipx for isolated environments:

```bash
pipx install llm-context-cli
```

## 💻 Usage

### Basic Usage

Simply point the tool to your project directory:

```bash
llm-context-cli /path/to/project
```

### Advanced Usage

Customize the output with various options:

```bash
llm-context-cli /path/to/project \
    --patterns "*.py" "*.js" \
    --exclude "__pycache__/*" "node_modules/*" \
    --output llmcontext.txt \
    --header "Project source code for review:" \
    --no-language
```

## 🎮 Command Options

| Option | Short | Description | Example |
|--------|-------|-------------|----------|
| `--patterns` | `-p` | File patterns to include (multiple allowed) | `--patterns "*.py" "*.js"` |
| `--exclude` | `-e` | Patterns to exclude (multiple allowed) | `--exclude "test/*" "*.pyc"` |
| `--output` | `-o` | Output file path | `--output combined.txt` |
| `--header` | `-h` | Optional header text | `--header "Source code:"` |
| `--language/--no-language` | - | Toggle language hints in code blocks | `--no-language` |

## 📝 Examples

### Combining Python and JavaScript Files

```bash
llm-context-cli . \
    --patterns "*.py" "*.js" \
    --exclude "tests/*" \
    --header "Frontend and Backend Source Code:"
```

### Processing a Specific Directory

```bash
llm-context-cli ./src \
    --patterns "*.ts" \
    --output typescript-code.txt \
    --language
```

## 🤝 Contributing

Contributions are welcome! Here's how you can help:

1. Fork the repository
2. Create a new branch (`git checkout -b feature/amazing-feature`)
3. Make your changes
4. Commit your changes (`git commit -m 'Add amazing feature'`)
5. Push to the branch (`git push origin feature/amazing-feature`)
6. Open a Pull Request

## 📄 License

This project is licensed under the MIT License.

## 🙏 Acknowledgments

- Thanks to all contributors who have helped shape this tool
- Inspired by the need for better LLM context management

---

<div align="center">
Made with ❤️ for the AI and developer community
</div>
