Skip to main content

An AI-powered CLI tool to enhance your coding workflow by fixing errors, modifying code, adding comments, and generating files.

Project description

AI Patch Tool 🛠️✨

An AI-powered CLI tool to enhance your coding workflow by fixing errors, modifying code, adding comments, and even generating full files — all powered by Python, Typer, and Google's Gemini API.

🔍 Features

  • 📌 searcherr: Finds errors in your code and searches Stack Overflow for relevant solutions
  • 🔧 fix: Automatically detects and corrects errors in your script using AI
  • ✏️ modify: Take user input and modify code behavior accordingly
  • 💡 query: Generate code files based on user intent and desired filetype
  • 💬 addComments: Automatically add meaningful comments to code without changing its functionality

📦 Installation

pip install ai-patch-tool

🚀 Usage

# Fix errors in your code
patchtool fix script.py

# Search for error solutions
patchtool searcherr script.py

# Modify code behavior
patchtool modify script.py "add error handling"

# Generate new code files
patchtool query "create a web scraper" --filetype py

# Add comments to existing code
patchtool addComments script.py

🔧 Setup

Before using, make sure to set your Google Gemini API key:

export GEMINI_API_KEY="your-api-key-here"

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

ai_patch_tool-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_patch_tool-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_patch_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ai_patch_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa664bb6f613beb2aa45b5322da8632fd9be4e33a9fe981cb284a5039c2db4d0
MD5 fe31ee2fd49d771da7be1f4f8b99d8f4
BLAKE2b-256 dd68424562aab229cf92784428a4c0a7559c46c14ba873b5121e465f2cf4fb61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_patch_tool-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ai_patch_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9013a2a5413d87141634f52796d1f9fe88c1f899feeae77792066b515245f1d6
MD5 7dfd30468d062df60ca281cc39f9f252
BLAKE2b-256 25b6ba8b3c26e0d045d6424dd983df5b772285c1213de3a313117989a9df5e3e

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