https://github.com/isaiahbjork/autopy
Self-improving python code writer and error checker.
https://github.com/isaiahbjork/autopy
ai gpt gpt-3 gpt-3-5-turbo gpt-35-turbo gpt-4 gpt3 gpt3-turbo gpt4 gpt4-api openai openai-api python python-code-editor self-improvement self-improving
Last synced: 2 months ago
JSON representation
Self-improving python code writer and error checker.
- Host: GitHub
- URL: https://github.com/isaiahbjork/autopy
- Owner: isaiahbjork
- Created: 2023-05-02T23:19:55.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-27T22:58:28.000Z (over 1 year ago)
- Last Synced: 2023-11-27T23:39:23.666Z (over 1 year ago)
- Topics: ai, gpt, gpt-3, gpt-3-5-turbo, gpt-35-turbo, gpt-4, gpt3, gpt3-turbo, gpt4, gpt4-api, openai, openai-api, python, python-code-editor, self-improvement, self-improving
- Language: Python
- Homepage: https://github.com/isaiahbjork/AutoPy
- Size: 11.7 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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```python
pip install -r requirements.txt
```
2. Create .env file and add your API Key & Model
```env
OPEN_AI_API_KEY=
MODEL=
```3. Run Code
```bash
python main.py
```4. Enter Desired Code
```
What do you want AutoPy to build:
```5. Test Code
```bash
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
[](https://youtu.be/-o1XOOskJ6k)