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.2.tar.gz (5.6 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.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auto_code_fixer-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 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.2.tar.gz
Algorithm Hash digest
SHA256 66c7afd4647312075988775ae44784eb7c7fc3c09a0b00adc256f7596979ff8e
MD5 2d4a4ffa5358bc4e2945fc2e8b26e767
BLAKE2b-256 6b4d83d4710a95931130fff3bc613d71a01586f8e2c39d05a771fdf4d83b5e9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_code_fixer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d2c479402692dbdcb455bc53ad0971de3764742e6c7e3d5cef9519947ee64f6
MD5 68550863556e7eb1e9e1081572915e51
BLAKE2b-256 92c7fcd50231972f6ebd66f25f2fc196c9f49887cc631e610f32c3f7813270a0

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