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.1.7.tar.gz
(5.5 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.1.7.tar.gz.
File metadata
- Download URL: auto_code_fixer-0.1.7.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
335dc1f5375f3e6910a5046643ed4dd63f8bf016b5936b6c04beb138593d7d49
|
|
| MD5 |
21e997eb129c752e5adde06e8a6e68c8
|
|
| BLAKE2b-256 |
c1b5095eb35f8a9794e3803006a630a6a6a5650fb8a6a55349d8fa073bff3848
|
File details
Details for the file auto_code_fixer-0.1.7-py3-none-any.whl.
File metadata
- Download URL: auto_code_fixer-0.1.7-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19b7c02b2a2637ca2c03a0d0e1150d7952703b2f701036d8db522e02ba4d7912
|
|
| MD5 |
700e752b3cd7bfd3e492a057f82d6316
|
|
| BLAKE2b-256 |
4023c1d90076e448c4ff50bcdccfa4fcdc842a4c1ff98356173cdc19b2dbcf46
|