Metadata-Version: 2.4
Name: patchmind
Version: 0.1.4
Summary: AI-powered Git patch assistant with HTML report generation.
Home-page: https://github.com/your-user/patchmind
Author: Your Name or DOA
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: GitPython
Requires-Dist: jinja2
Requires-Dist: pyyaml
Requires-Dist: pytest
Requires-Dist: rich
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

<p align="center">
  <img src="https://raw.githubusercontent.com/Darkstar420/patchmind/main/docs/patchmind.png" alt="PatchMind Banner">
</p>

# 🧠 PatchMind

[![Run PatchMind Report](https://github.com/Darkstar420/patchmind/actions/workflows/patchmind.yml/badge.svg?branch=main)](https://github.com/Darkstar420/patchmind/actions/workflows/patchmind.yml)
[![PyPI - Version](https://img.shields.io/pypi/v/patchmind?color=blue)](https://pypi.org/project/patchmind/)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)
[![GitHub stars](https://img.shields.io/github/stars/Darkstar420/patchmind?style=social)](https://github.com/Darkstar420/patchmind/stargazers)

---

**PatchMind** is a modular Python CLI tool for Git repositories that generates smart, visual HTML reports.  
It captures **patch-level diffs**, **tree views**, **file history timelines**, **risk scoring**, and more — all locally.

No cloud. No bloat. Just clean insight.

---

## 🚀 Key Features

- 🔍 Detects file-level and line-level changes across commits  
- 🌳 Tree-based visualization of modified paths  
- 📅 File timeline view with authorship and metadata  
- ⚠️ Risk and impact scoring per file  
- 👤 Inline blame summaries  
- 📄 Clean, standalone HTML output  
- ⚙️ Fully CLI-driven — automate in CI/CD

---

## 📸 Sample Output

![PatchMind HTML Report Sample](https://raw.githubusercontent.com/Darkstar420/patchmind/main/docs/patchmind_report_sample.png)

---

## 📦 Installation

Install from [PyPI](https://pypi.org/project/patchmind/):

```bash
pip install patchmind
````

Or install manually:

```bash
git clone https://github.com/Darkstar420/patchmind.git
cd patchmind
pip install -r requirements.txt
```

---

## 🧪 Usage

Generate an HTML report from the root of any Git repo:

```bash
python cli/main.py --report
```

The output will be saved as `patchmind_report.html` in the project root.

---

## 📂 Project Layout

```
patchmind/
├── cli/               # CLI entrypoint
├── core/              # Core analysis engine
├── tests/             # Unit tests
├── docs/              # Sample reports and images
├── config.yaml        # Config (optional)
├── requirements.txt
└── README.md
```

---

## 🧪 Run Tests

```bash
pytest -q
```

Unit tests live in `tests/` and validate key functionality, including mock Git data and report rendering.

---

## 💡 Why Use PatchMind?

✅ No setup required – run it instantly
✅ See what's changing, where, and why
✅ Stay ahead of technical debt
✅ Built for devs who want insight — not overhead

---

## 📄 License

Licensed under the [Apache 2.0 License](https://opensource.org/licenses/Apache-2.0) — free to use, modify, and distribute.

```

