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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file patcher_trex-0.1.0.tar.gz.
File metadata
- Download URL: patcher_trex-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.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bf2b5cd7a88e8f7f707a52213124ae2717605514d612c98dde79b358cf26583
|
|
| MD5 |
13d4c775cc85ace7e4a7b7c9ba2bc875
|
|
| BLAKE2b-256 |
c53a025c804f11399ec46bd0027154cd59e80e5b953c26fb388ee4a5b0111f50
|
File details
Details for the file patcher_trex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: patcher_trex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0af134f678186debdbf000cb78e5762a1cc5c2a04961e2b3a029b96626c9d12f
|
|
| MD5 |
9e948a9efb64b8c1e2bed20f09172b5a
|
|
| BLAKE2b-256 |
8e6d04d100b8a2ffbd9e4cb1d86cee592dc2e76925252d4f12442010c05254a4
|