Pre-release
This release is a pre-release and may not be stable for production use.
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
# Install with poetry
poetry install
# Set up OpenAI API key
export OPENAI_API_KEY='your-api-key-here'
Usage
Basic usage:
poetry run prismix "write a function that calculates factorial"
The tool will:
- Generate program specifications
- Implement the code
- Run safety checks
- Test the implementation
- Save the code to output/
Safety Features
- Automatic code safety analysis
- Restricted execution environment
- Import validation
- System call protection
Development
Run tests:
poetry run pytest
License
MIT License
Metadata
Release files for prismix 0.1.0.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prismix-0.1.0.dev0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prismix-0.1.0.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / prismix-0.1.0.dev0.tar.gz
| Download URL | prismix-0.1.0.dev0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d78e42e694c65c5845c51124b9e626f4629d394443eb72808a0a95b014a2dd7e
|
|
BLAKE2b-256 checksum How to use checksums |
cc9daebe86cfc31dda852a6687b22a7bb3a6e671b91b04a8dbeff3ec2083a94f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.10 Linux/5.15.0-126-generic
|
Release files / prismix-0.1.0.dev0-py3-none-any.whl
| Download URL | prismix-0.1.0.dev0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7d0a5bee56f88a39b3f70195260d4e0df3dfefc8dc6c5221f0788b77a37ee02
|
|
BLAKE2b-256 checksum How to use checksums |
22398bc88a2cdfb19aec1d378e7e05f0460d5e3b8b6ed65616e18e8dce3217df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.10 Linux/5.15.0-126-generic
|