https://github.com/tom-doerr/prismix
https://github.com/tom-doerr/prismix
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tom-doerr/prismix
- Owner: tom-doerr
- License: mit
- Created: 2024-12-16T07:37:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-28T14:13:34.000Z (over 1 year ago)
- Last Synced: 2026-02-14T08:49:28.429Z (4 months ago)
- Language: Python
- Size: 1.01 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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