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"
Metadata
Release files for ai-patch-tool 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_patch_tool-0.1.0.tar.gz | 9.8 kB | Without provenance | Details for ai_patch_tool-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_patch_tool-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ai_patch_tool-0.1.0-py3-none-any.whl |
Total release size: 19.2 kB
Release files / ai_patch_tool-0.1.0.tar.gz
| Download URL | ai_patch_tool-0.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa664bb6f613beb2aa45b5322da8632fd9be4e33a9fe981cb284a5039c2db4d0
|
|
BLAKE2b-256 checksum How to use checksums |
dd68424562aab229cf92784428a4c0a7559c46c14ba873b5121e465f2cf4fb61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / ai_patch_tool-0.1.0-py3-none-any.whl
| Download URL | ai_patch_tool-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9013a2a5413d87141634f52796d1f9fe88c1f899feeae77792066b515245f1d6
|
|
BLAKE2b-256 checksum How to use checksums |
25b6ba8b3c26e0d045d6424dd983df5b772285c1213de3a313117989a9df5e3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for ai-patch-tool 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.