Self-improving python code writer and error checker.
- 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)
Create Virtual Environment
- Install Requirements
pip install -r requirements.txt
- Create .env file and add your API Key & Model
OPEN_AI_API_KEY=
MODEL=
- Run Code
python main.py
- Enter Desired Code
What do you want AutoPy to build:
- Test Code
python output.py
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.