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.1.tar.gz
(5.6 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.1.tar.gz.
File metadata
- Download URL: auto_code_fixer-0.2.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07361bca439967c0c6fac584a8ffc5561c188058ba0c2e5a7cbcdb755bb8f6ce
|
|
| MD5 |
4eee9004a24dc2daaed7a5450c1e196f
|
|
| BLAKE2b-256 |
cea7ea60013c76d1b6d1e8de2fd3fe6a4163e24fcac0114b9a444225d6ffeaec
|
File details
Details for the file auto_code_fixer-0.2.1-py3-none-any.whl.
File metadata
- Download URL: auto_code_fixer-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.3 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 |
86bf7039e0dbe5b8e366681ec8d727bdbdc2ce7e37172fb79585e854a1860dc4
|
|
| MD5 |
69ae9f161e96d3adcf34867bac302c52
|
|
| BLAKE2b-256 |
5605bafe3bc337eae8ac5798c9aa03eb855fac775a612f9699db0df802c9d393
|