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

Uploaded Python 3

File details

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

File metadata

  • Download URL: auto_code_fixer-0.1.5.tar.gz
  • Upload date:
  • Size: 4.3 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.5.tar.gz
Algorithm Hash digest
SHA256 b460b82dcc4c698c99c34e88e4712267e5ba21dd17fa3e9d0a746e07d05a0555
MD5 867d3d26b82a18d2c9c1ba051500fdf3
BLAKE2b-256 95c41f55936be384ab8e4b36b2b5eeddb8a61411c386c1af46e621065374211f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_code_fixer-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bc5e71b6c8b0a0e5d51760ff02ee5bc9e7e46b6d20194115a808352c40b0d936
MD5 3319bfc9bef15abc2e76bba454feec6c
BLAKE2b-256 99cfa24bd264703beccbbcb7c9b9970b0a6ffc77d7fbe868137fcb7b7cf24576

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