Metadata-Version: 2.4
Name: prompt-config
Version: 0.1.4
Summary: A dynamic prompt building library with CLI support.
Author-email: Akeel Ahmed <akshilmy.19+pip@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/AKSHILMY/prompter
Project-URL: Bug Tracker, https://github.com/AKSHILMY/prompter/issues
Keywords: prompt,llm,ai,builder,cli
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML
Requires-Dist: Jinja2
Dynamic: license-file

# Prompter

A dynamic prompt building library for LLM applications. It allows you to define prompts in YAML, manage variables, tags, and inheritance, and build them dynamically at runtime.

## Installation

Requires Python >= 3.12.

```bash
pip install prompt-config
```

## Development Setup

```bash
python3.12 -m venv venv
source venv/bin/activate
pip install -e .
```

## Usage

### CLI

Initialize a new configuration:

```bash
promptcfg init
```

This creates a `promptcfg.yaml` file in your current directory.

Build a prompt from the CLI:

```bash
promptcfg build --tags python,web --vars user=Alice
```

### Python API

```python
from promptcfg.config import PromptConfig
from promptcfg.builder import PromptBuilder

# Load config
config = PromptConfig.load("promptcfg.yaml")

# Create builder
builder = PromptBuilder(config)

# Build prompt
prompt = builder.build(
    tags=["python", "web"], 
    variables={"user": "Alice"}
)

print(prompt)
```
