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

Uploaded Python 3

File details

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

File metadata

  • Download URL: auto_code_fixer-0.2.5.tar.gz
  • Upload date:
  • Size: 6.2 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.5.tar.gz
Algorithm Hash digest
SHA256 dfbb52e4e409253d88501aa2026894e283d85f1a235c025c56245d0a232bed0b
MD5 8774cd9f3819547fe69331607362ff9d
BLAKE2b-256 df5860a388df37611c6503a16ed3ac87e714b5bba4ea3984cba346ee97f47999

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_code_fixer-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 76811fffa5c23a55becf230d501c5ff262f321b33e127a8803f34e5756857055
MD5 61ab70de70b1bca00de6a30e9c07a0d1
BLAKE2b-256 78670e71492b0853a5a65b8911e140e234ee3d8c76f055e0f9bb3787b321c42c

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