Automatically fix Python code using ChatGPT
Project description
Auto Code Fixer 🛠️🤖
Auto Code Fixer is a CLI tool that automatically detects runtime errors in Python code and fixes them using ChatGPT.
It:
- Recursively discovers imported local Python files
- Runs code in an isolated temp environment
- Auto-installs missing dependencies
- Iteratively fixes errors using GPT
- Safely updates files only after successful execution
✨ Features
- 🔍 Recursive import discovery
- 🧠 GPT-powered auto-fixing
- 📦 Auto-install missing Python libraries
- 🔁 Retry & fix loop
- 🛠 CLI-based (works from anywhere)
- 🔐 Safe overwrite handling
📦 Installation
✅ Recommended (Install from PyPI)
pip install auto-code-fixer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
auto_code_fixer-0.2.4.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auto_code_fixer-0.2.4.tar.gz.
File metadata
- Download URL: auto_code_fixer-0.2.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaa7d9e7fe119c878f566a099b2eea39b00f637c9f1180c728495fcd5baa46f6
|
|
| MD5 |
a7b0cab21bee5e6601942b55fcc123e1
|
|
| BLAKE2b-256 |
f6a599477d67ba7daa06b2b1d188ccf4d0c8c4b0b791009a8ac56fd686c69438
|
File details
Details for the file auto_code_fixer-0.2.4-py3-none-any.whl.
File metadata
- Download URL: auto_code_fixer-0.2.4-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3c4e2491c82fafc2e8c7d722885e1d8b30d789ff03d32612149c6a96078ad8f
|
|
| MD5 |
ed7fb98e7f56427c9641625b027e0fcc
|
|
| BLAKE2b-256 |
5fcaa4b209b22fb261df9c72a4a960d3cd06a1328ad4e393a708fdf253c9755e
|