Skip to main content

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


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.9.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_code_fixer-0.1.9-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file auto_code_fixer-0.1.9.tar.gz.

File metadata

  • Download URL: auto_code_fixer-0.1.9.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for auto_code_fixer-0.1.9.tar.gz
Algorithm Hash digest
SHA256 9ff29d817da14aa19cf70602cf7716b3ab82ad650b36e22bf24e8fa09cd3df61
MD5 6b128921a5cd97d7ea210b13e8bdbb9e
BLAKE2b-256 2fc24324b3f3e08ffa054b9bc2185c431d5963fb25e59004d350edc5b7ad1937

See more details on using hashes here.

File details

Details for the file auto_code_fixer-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_code_fixer-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 26a6e39cab4892d9063aacc4320cd81fab5c79862e542c706e5a0f4cf25c3062
MD5 74d7489f93488bbbb867fadd2e16341c
BLAKE2b-256 cbd7e076dc8b44f23809a350dc2cfd71b26f61c799c8959c159d06d66aea5c21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page