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

Option 1: Install directly from Bitbucket (Public Repo)

pip install git+https://bitbucket.org/arif_automation/auto_code_fixer.git

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.0.tar.gz (3.8 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.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auto_code_fixer-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 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.0.tar.gz
Algorithm Hash digest
SHA256 f66d251b4f3be4f387852100e44fb5b14ece14cdd49494875973d7f430e9d2c2
MD5 3fef05d859fd9031e053309e4372c737
BLAKE2b-256 097b903e53a7e4ce687c4c31b5309adc6007851cdf0ae9e74c601094839f117b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for auto_code_fixer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df53125aa5fc0be23d6dcd2c20c0bef392d53a6c82b1cfc234ae9ca16eb39ff5
MD5 b67aa5a4ac450b543984e90f75512a41
BLAKE2b-256 bbce718c92f33db89b39c6494aaf91e285ac2d9b657f6fb94c2580b42e59f08d

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