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.2.3.tar.gz (6.1 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.2.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auto_code_fixer-0.2.3.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

Hashes for auto_code_fixer-0.2.3.tar.gz
Algorithm Hash digest
SHA256 b08efcd6c76c8cf602999d8d4cb091d96e0fe644303fa2b39224141e1a474058
MD5 5adafa4575a321c012e04fd2ca063c17
BLAKE2b-256 4e77a04f2b8a46f8380761e80deb6e55151634e63cb43de2e6ac698afa8fad93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_code_fixer-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 792552e514af5e2a7fbecf3a8b6074d61286067e6e8850d5a66cf8d227dae44d
MD5 b660f9589c3dbcd5a456775fb0d3a57f
BLAKE2b-256 4ce8e6ceaa965183777213a6016cff045b4452948e71fc1d0cb78e4d21628fd2

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