Skip to main content

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 patcher-trex 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for patcher-trex 0.1.0
File Size Uploaded Provenance Actions
patcher_trex-0.1.0.tar.gz 9.8 kB Without provenance Details for patcher_trex-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for patcher-trex 0.1.0
File Interpreter ABI Platform Actions
patcher_trex-0.1.0-py3-none-any.whl Python 3 none any Details for patcher_trex-0.1.0-py3-none-any.whl

Total release size: 19.4 kB

Release files / patcher_trex-0.1.0.tar.gz

Download URL patcher_trex-0.1.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5bf2b5cd7a88e8f7f707a52213124ae2717605514d612c98dde79b358cf26583
BLAKE2b-256 checksum
How to use checksums
c53a025c804f11399ec46bd0027154cd59e80e5b953c26fb388ee4a5b0111f50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / patcher_trex-0.1.0-py3-none-any.whl

Download URL patcher_trex-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0af134f678186debdbf000cb78e5762a1cc5c2a04961e2b3a029b96626c9d12f
BLAKE2b-256 checksum
How to use checksums
8e6d04d100b8a2ffbd9e4cb1d86cee592dc2e76925252d4f12442010c05254a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for patcher-trex 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page