Skip to main content

An AI-powered code synthesis tool

Project description

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:

  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:

poetry run pytest

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prismix-0.1.0.dev0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prismix-0.1.0.dev0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file prismix-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: prismix-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.15.0-126-generic

File hashes

Hashes for prismix-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 d78e42e694c65c5845c51124b9e626f4629d394443eb72808a0a95b014a2dd7e
MD5 543821d4ce06fec019b7715ece5fc9df
BLAKE2b-256 cc9daebe86cfc31dda852a6687b22a7bb3a6e671b91b04a8dbeff3ec2083a94f

See more details on using hashes here.

File details

Details for the file prismix-0.1.0.dev0-py3-none-any.whl.

File metadata

  • Download URL: prismix-0.1.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.15.0-126-generic

File hashes

Hashes for prismix-0.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d0a5bee56f88a39b3f70195260d4e0df3dfefc8dc6c5221f0788b77a37ee02
MD5 7473eddbe443821953e1dbf54c5140b7
BLAKE2b-256 22398bc88a2cdfb19aec1d378e7e05f0460d5e3b8b6ed65616e18e8dce3217df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page