Metadata-Version: 2.4
Name: sysprompt-engine
Version: 0.1.0
Summary: A flexible system prompt creator with version control and validation
Home-page: https://github.com/Salahuddin-Yousaf12/promptengine
Author: Salahuddin Yousaf
Author-email: Salahuddin Yousaf <salahuddiny8@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/Salahuddin-Yousaf12/promptengine
Project-URL: Bug Reports, https://github.com/Salahuddin-Yousaf12/promptengine/issues
Project-URL: Source, https://github.com/Salahuddin-Yousaf12/promptengine
Keywords: prompt,ai,llm,prompt-engineering,template,version-control
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
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
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: jinja2>=3.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: flake8>=5.0.0; extra == "dev"
Requires-Dist: build>=0.10.0; extra == "dev"
Requires-Dist: twine>=4.0.0; extra == "dev"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# PromptEngine

A flexible and powerful system prompt creator with built-in version control and validation capabilities. Perfect for managing AI prompts across multiple applications.

## Features

- **Template System**: Use Jinja2 templates with variable substitution
- **Version Control**: Track changes, view diffs, and rollback to previous versions
- **Validation & Testing**: Validate prompts and test outputs
- **Easy Integration**: Simple SDK that can be integrated into any Python application
- **Storage Formats**: Support for JSON and YAML
- **Metadata Management**: Track creation time, authors, tags, and more

## Installation

```bash
pip install -e .
```

For development:
```bash
pip install -e ".[dev]"
```

## Quick Start

```python
from promptengine import PromptTemplate, PromptRegistry, VersionControl

# Create a prompt template
template = PromptTemplate(
    name="code_reviewer",
    template="""You are a {{expertise_level}} code reviewer.
Review the following {{language}} code and provide feedback on:
- Code quality
- Best practices
- Potential bugs

Code:
{{code}}
""",
    variables=["expertise_level", "language", "code"]
)

# Render with variables
prompt = template.render(
    expertise_level="senior",
    language="Python",
    code="def hello(): print('world')"
)

# Use version control
vc = VersionControl()
version_id = vc.save_version(prompt)

# Create a registry
registry = PromptRegistry()
registry.add(template)
registry.save("prompts.json")
```

## Documentation

See the `examples/` directory for more usage examples.

## License

MIT
