Skip to content

isaiahbjork/AutoPy

Repository files navigation

AutoPy

Self-improving python code writer and error checker.

⚠️ AutoPy works but may crash or not write complete code yet for all requests.

  • Write python code until error-free.
  • Auto-installs necessary packages during testing.
  • Use langchain and vector database to write more robust python code. (In-Progress)
  • Get package information from PyPi and Github to make sure code is written correctly. (In-Progress)

Run AutoPy

Create Virtual Environment

  1. Install Requirements
pip install -r requirements.txt 
  1. Create .env file and add your API Key & Model
OPEN_AI_API_KEY=
MODEL=
  1. Run Code
python main.py
  1. Enter Desired Code
What do you want AutoPy to build:
  1. Test Code
python output.py

Examples

The example folder has examples of LeetCode problems that it was able to successfully solve. It is still a work in-progress.

Note: if you need an API for your generated code give the key in the prompt and it will add it in the code for you. Some packages won't install properly so you may have to run this in a python environment.

Example Video

Watch the video