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.6.tar.gz (5.2 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.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for auto_code_fixer-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7b893da682b1dd355d97f42f03a7ab4736d2b47381caa091c438189096ad28de
MD5 e5fb7644b967c246de6ca3ce246169bd
BLAKE2b-256 a5705efe4c9d38761e26e1722524293c17b8f29a741f872d2480900b4211e6e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_code_fixer-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6a0e2ce7ee6ab051b419a6e249b784425ab52d93578b37607d5236e0c93e2e56
MD5 19153d88547e110bb5f2b8b6c455a1bc
BLAKE2b-256 c95683447d4c7b23c25540b098530ef261e99447f12d28a546644e3d8a74b073

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