Metadata-Version: 2.4
Name: dmps
Version: 0.1.0
Summary: Dual-Mode Prompt System for AI prompt optimization using 4-D methodology
Home-page: https://github.com/MrBinnacle/dmps
Author: MrBinnacle
Author-email: MrBinnacle <your.email@example.com>
License: MIT
Project-URL: Homepage, https://github.com/MrBinnacle/dmps
Project-URL: Repository, https://github.com/MrBinnacle/dmps
Project-URL: Bug Tracker, https://github.com/MrBinnacle/dmps/issues
Project-URL: Documentation, https://github.com/MrBinnacle/dmps#readme
Keywords: ai,prompt,optimization,nlp,chatgpt,claude
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Linguistic
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: pyright>=1.1.0; extra == "dev"
Requires-Dist: black>=22.0; extra == "dev"
Requires-Dist: flake8>=4.0; extra == "dev"
Dynamic: license-file

# DMPS - Dual-Mode Prompt System

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/)

A Python package for AI prompt optimization using the 4-D methodology (Deconstruct, Develop, Design, Deliver).

## Features

- **Intent Detection**: Automatically classifies prompt intent (creative, technical, educational, complex)
- **Gap Analysis**: Identifies missing information in prompts
- **4-D Optimization**: Applies systematic optimization techniques
- **Dual Output Modes**: Conversational and structured JSON formats
- **Platform Support**: Optimized for Claude, ChatGPT, and other AI platforms

## Installation

### From PyPI (Recommended)

```bash
pip install dmps
```

### From Source

```bash
# Clone the repository
git clone https://github.com/MrBinnacle/dmps.git
cd dmps

# Install in development mode
pip install -e .
```

### Prerequisites

- Python 3.8+
- pip (Python package manager)

### Development Installation

1. Clone the repository:
   ```bash
   git clone https://github.com/MrBinnacle/dmps.git
   cd dmps
   ```

2. Create and activate a virtual environment:
   ```bash
   python -m venv venv
   source venv/bin/activate  # On Windows: .\venv\Scripts\activate
   ```

3. Install the package in development mode:
   ```bash
   pip install -e .
   ```

## Usage

### Quick Start

```python
from dmps import optimize_prompt

# Simple optimization
result = optimize_prompt("Write a story about AI")
print(result)
```

### Advanced Usage

```python
from dmps import PromptOptimizer

optimizer = PromptOptimizer()
result, validation = optimizer.optimize(
    "Explain machine learning",
    mode="conversational",
    platform="claude"
)

print(result.optimized_prompt)
```

### CLI Usage

```bash
# After pip install dmps
dmps "Your prompt here" --mode conversational --platform claude

# Or using module syntax
python -m dmps "Your prompt here" --mode conversational --platform claude

# Interactive mode
dmps --interactive

# Help
dmps --help
```

## Development

### Running Tests

```bash
python -m pytest tests/
```

### Code Quality

```bash
# Type checking
pyright src/

# Linting
flake8 src/
```

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
