Metadata-Version: 2.1
Name: prismix
Version: 0.1.0.dev0
Summary: An AI-powered code synthesis tool
Author: Tom Dörr
Author-email: tomdoerr96@gmail.com
Requires-Python: >=3.11,<3.12
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: dspy-ai (>=2.5.0,<3.0.0)
Requires-Dist: openai (>=1.0.0,<2.0.0)
Requires-Dist: pytest (>=8.3.3,<9.0.0)
Requires-Dist: pytest-asyncio (>=0.24.0,<0.25.0)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Description-Content-Type: text/markdown

# Prismix

An AI-powered code synthesis tool that transforms natural language into production-ready Python code.

## Features

- Natural language to Python code generation
- Iterative improvement with error handling
- Built-in safety checks for generated code
- Test-driven development approach
- Isolated code execution environment

## Installation

```bash
# Install with poetry
poetry install

# Set up OpenAI API key
export OPENAI_API_KEY='your-api-key-here'
```

## Usage

Basic usage:
```bash
poetry run prismix "write a function that calculates factorial"
```

The tool will:
1. Generate program specifications
2. Implement the code
3. Run safety checks
4. Test the implementation
5. Save the code to output/

## Safety Features

- Automatic code safety analysis
- Restricted execution environment
- Import validation
- System call protection

## Development

Run tests:
```bash
poetry run pytest
```

## License

MIT License

