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.8.tar.gz (5.5 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.8-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auto_code_fixer-0.1.8.tar.gz
  • Upload date:
  • Size: 5.5 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.8.tar.gz
Algorithm Hash digest
SHA256 79f235406e032976e9fdd050672ac3e1046868d5baf30066b7ab748ce83b55dc
MD5 6efe2495ee2e9f1ece4517dab7dfde8f
BLAKE2b-256 7fdae5b0e6139af6ce9fc3ea4a5419977ed76560dee04e7304124a3aa0a1bdda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_code_fixer-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 176efc75e65e518fedcf5b489beca7365c09921650349b519d725e5f909de8ca
MD5 17e839d100a79c9d4e35c5c3d4ed6916
BLAKE2b-256 38dbd79f231f38d6bb8177c1ed88a5c57a8af4d151d186a2b6723425cf51a2fe

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