Metadata-Version: 2.4
Name: githydra
Version: 3.2.1
Summary: Comprehensive Git automation CLI with a beautiful terminal UI, template management, optional web dashboard and optional AI helpers
Author-email: Abdulaziz Mohammed Alqudimi <abodx1234freey@gmail.com>
Maintainer-email: Abdulaziz Mohammed Alqudimi <abodx1234freey@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/Alqudimi/GitHydra
Project-URL: Documentation, https://github.com/Alqudimi/GitHydra/tree/main/docs
Project-URL: Repository, https://github.com/Alqudimi/GitHydra
Project-URL: Issues, https://github.com/Alqudimi/GitHydra/issues
Project-URL: Changelog, https://github.com/Alqudimi/GitHydra/blob/main/CHANGELOG.md
Project-URL: PyPI, https://pypi.org/project/githydra/
Keywords: git,cli,automation,terminal,ui,version-control,developer-tools,productivity,templates,project-management,collaboration,command-line,rich,github,changelog,gitignore
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: Arabic
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Version Control :: Git
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: System :: Shells
Classifier: Topic :: Terminals
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.1.0
Requires-Dist: colorama>=0.4.6
Requires-Dist: gitpython>=3.1.40
Requires-Dist: pyyaml>=6.0
Requires-Dist: questionary>=2.0.0
Requires-Dist: rich>=13.7.0
Requires-Dist: pygithub>=2.8.0
Requires-Dist: tqdm>=4.65.0
Provides-Extra: web
Requires-Dist: flask>=2.3.0; extra == "web"
Provides-Extra: ai
Requires-Dist: google-genai>=0.8.0; extra == "ai"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"
Requires-Dist: build>=1.0; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Requires-Dist: flask>=2.3.0; extra == "dev"
Requires-Dist: tomli>=2.0; python_version < "3.11" and extra == "dev"
Dynamic: license-file

<div align="center">

<p align="center">
  <a href="https://github.com/Alqudimi/GitHydra">
    <img src="assets/images/logo.png" alt="GitHydra Logo" width="280" height="280">
  </a>
</p>

# 🔱 GitHydra

**Comprehensive Git Automation CLI Tool with Beautiful Terminal UI**
**أداة شاملة لأتمتة Git بواجهة طرفية جميلة**

Turn Git into a guided, colorful, bilingual experience — 36 command groups,
one interactive menu, an optional local web dashboard, and optional AI helpers.

[![PyPI version](https://img.shields.io/pypi/v/githydra.svg)](https://pypi.org/project/githydra/)
[![Python versions](https://img.shields.io/pypi/pyversions/githydra.svg)](https://pypi.org/project/githydra/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![CI](https://github.com/Alqudimi/GitHydra/actions/workflows/ci.yml/badge.svg)](https://github.com/Alqudimi/GitHydra/actions/workflows/ci.yml)
[![Publish](https://github.com/Alqudimi/GitHydra/actions/workflows/python-publish.yml/badge.svg)](https://github.com/Alqudimi/GitHydra/actions/workflows/python-publish.yml)
[![Downloads](https://img.shields.io/pypi/dm/githydra.svg)](https://pypi.org/project/githydra/)

[English](#english) | [العربية](#arabic) | [Documentation](docs/INDEX_AR.md) | [Quick Start](#-installation) | [llms.txt](llms.txt)

</div>

---

## <a name="english"></a>📘 English

### What is GitHydra?

GitHydra wraps the **entire Git workflow** in a beautiful, guided terminal
application. Instead of memorizing dozens of `git` flags, you get clear menus,
colored tables, progress bars, safe confirmations, and bilingual help text.
Everything you already know about Git still works underneath — GitHydra is a
friendly face over a 100% standard repository.

- **36 command groups, 90+ operations** — from `init` to `submodule`, `bisect`,
  `worktree`, `bundle`, analytics and beyond.
- **Interactive menu mode** — never type a command again: category menus cover
  every feature.
- **Local web dashboard** (optional) — browse status, branches, commits, stashes
  and tags in your browser.
- **AI helpers** (optional) — generate commit messages, review code, detect
  bugs with Gemini.
- **Bilingual** — English and Arabic documentation and messages.
- **Safe by default** — localhost-only dashboard, debug off, token auth option,
  no telemetry, works fully offline.

### 🆕 What's new in 3.2.0

- **`githydra doctor`** — health check for Git, your repository and optional
  components (identity, remotes, large files, `.gitignore`, extras).
- **`githydra changelog generate`** — build a grouped `CHANGELOG.md` from your
  commit history.
- **`githydra ignore`** — manage `.gitignore` with ready-made templates
  (python, node, java, vscode, jetbrains, macos, windows, linux).
- **Critical fixes** — the CLI no longer crashes when optional extras are
  missing; `githydra web` now ships with the package; 112 stray `__pycache__`
  files removed; versions unified.
- **Security hardening** — dashboard binds to 127.0.0.1, debug off by default,
  optional `GITHYDRA_WEB_TOKEN` API authentication.

See [CHANGELOG.md](CHANGELOG.md) for the full history.

### 📦 Installation

Requires **Python 3.8+** and **Git ≥ 2.20**.

```bash
# Core CLI (recommended)
pip install githydra

# With the web dashboard
pip install githydra[web]

# With AI helpers (Gemini)
pip install githydra[ai]

# Everything
pip install githydra[web,ai]
```

Verify the installation:

```bash
githydra --version
githydra doctor        # full health check
```

<details>
<summary><b>Install from source / development</b></summary>

```bash
git clone https://github.com/Alqudimi/GitHydra.git
cd GitHydra
python -m venv .venv
source .venv/bin/activate            # Windows: .venv\Scripts\activate
pip install -e ".[dev,web,ai]"        # dev = pytest, ruff, build, twine
```

</details>

### 🚀 Quick Start

```bash
# 1. Start anywhere — no command? the interactive menu opens automatically
githydra

# 2. Or create a project and go
mkdir my-app && cd my-app
githydra init
githydra ignore template python      # ready-made .gitignore
githydra doctor                      # everything OK?

# 3. Daily work
githydra status                      # what changed?
githydra stage add --all             # stage everything
githydra commit -m "feat: first feature"
githydra branch create feature-x
githydra sync push

# 4. At release time
githydra changelog generate          # grouped CHANGELOG.md
githydra tag create v1.0.0
```

### 🗂 Command Overview

| Area | Commands |
| --- | --- |
| Repository | `init`, `status`, `clone` (via `sync clone`), `repair info/fsck/gc/prune/index` |
| Staging & commits | `stage add/remove/diff`, `commit -m`, `commit --amend`, `notes add` |
| History | `log --graph`, `reflog show`, `blame FILE`, `compare branches/commits/with-remote` |
| Branches | `branch list/create/switch/delete/merge` |
| Remote & sync | `remote add/list`, `sync push/pull/fetch/clone` |
| Advanced | `stash save/list/apply`, `tag create/list`, `reset`, `revert`, `cherry-pick`, `rebase`, `conflicts ours/theirs/abort` |
| Submodules & worktrees | `submodule add/update/status/sync`, `worktree add/list/remove/prune/lock/unlock/move` |
| Debugging | `bisect start/good/bad/reset`, `blame`, `reflog` |
| Patches & bundles | `patch create/apply/format`, `bundle create/verify` |
| Statistics | `stats overview/contributors/activity/files/languages`, `analytics` |
| **New: Health** | `doctor`, `changelog generate`, `ignore list/add/remove/template` |
| Config | `config list/set`, `alias add/list`, `template list/add/create/export/import` |
| Web & AI | `web`, `ai generate-commit/review-code/detect-bugs` |
| Project & team | `project init/issues/milestones/board`, `team contributors/pr-list/workflow` |
| Cloud | `cloud connect-github/repos/sync/backup/issues/releases` |

`githydra --help` lists everything; `githydra <command> --help` explains each
group. The complete reference is in
[docs/API_REFERENCE_AR.md](docs/API_REFERENCE_AR.md) and the quick card in
[docs/CHEATSHEET_AR.md](docs/CHEATSHEET_AR.md).

### 🖥 Interactive Mode

```bash
githydra interactive
```

A full menu interface with 17 categories (repository, staging, commits,
branches, remote, advanced, submodules, debugging, patches, conflicts,
statistics, maintenance, configuration, cloud, project, team, templates).
Every menu entry prints the exact command it runs, so you learn Git while
using it.

### 🌐 Web Dashboard (optional)

```bash
pip install githydra[web]
githydra web                # http://127.0.0.1:5000
githydra web --port 8080 --no-browser
```

Browse status, branches, commits, staging, stashes, remotes and tags in a
clean local UI. Security defaults: binds to **127.0.0.1**, debug **off**,
and setting `GITHYDRA_WEB_TOKEN` requires every API call to authenticate.
Details: [docs/WEB_DASHBOARD_AR.md](docs/WEB_DASHBOARD_AR.md).

### 🤖 AI Helpers (optional)

```bash
pip install githydra[ai]
export GEMINI_API_KEY=your-key      # from Google AI Studio
githydra ai generate-commit         # suggests a commit message from staged changes
githydra ai review-code             # quality review of pasted code
githydra ai detect-bugs             # bug detection with severity
```

Everything works without the key — AI is strictly opt-in and never blocks
normal usage. Details: [docs/AI_FEATURES_AR.md](docs/AI_FEATURES_AR.md).

### 🧪 Testing & Quality

```bash
pip install -e ".[dev]"
pytest tests/          # 40+ tests: commands, packaging, web app, security
ruff check githydra/ tests/
```

CI runs the lint + full test matrix (Python 3.9–3.12) and a package build
check on every push and pull request.

### 🤝 Contributing & Support

- Read [CONTRIBUTING.md](CONTRIBUTING.md) (English) or
  [docs/CONTRIBUTING_AR.md](docs/CONTRIBUTING_AR.md) (Arabic).
- Bug reports and feature requests:
  [open an issue](https://github.com/Alqudimi/GitHydra/issues).
- Security issues: see [SECURITY.md](SECURITY.md) — report privately.

### 📄 License

[MIT](LICENSE) © **Abdulaziz Mohammed Alqudimi** (abodx1234freey@gmail.com)

---

## <a name="arabic"></a>📘 العربية

### ما هو GitHydra؟

GitHydra يغلف **سير عمل Git كاملًا** في تطبيق طرفي جميل وموجَّه. بدلًا من
حفظ عشرات الخيارات، تحصل على قوائم واضحة وجداول ملوّنة وأشرطة تقدم وتأكيدات
آمنة ونصوص مساعدة بالعربية والإنجليزية. كل ما تعرفه عن Git يعمل كما هو تحت
الغلاف — GitHydra واجهة ودية فوق مستودع قياسي 100%.

### 🆕 الجديد في الإصدار 3.2.0

- **`githydra doctor`** — فحص صحة شامل لـ Git والمستودع والمكونات الاختيارية.
- **`githydra changelog generate`** — توليد سجل تغييرات مُجمَّع من تاريخ الالتزامات.
- **`githydra ignore`** — إدارة `.gitignore` بقوالب جاهزة (Python، Node، Java...).
- **إصلاحات حرجة** — لم يعد البرنامج ينهار عند غياب المكونات الاختيارية، وأمر
  `web` أصبح يُشحن مع الحزمة، وحُذفت 112 ملف `__pycache__` خاطئة، ووُحِّدت الإصدارات.
- **تحصين أمني** — لوحة الويب تُنصِّت على 127.0.0.1 فقط، ووضع التصحيح مغلق
  افتراضيًا، مع مصادقة اختيارية عبر `GITHYDRA_WEB_TOKEN`.

### 📦 التثبيت

```bash
pip install githydra            # الأساسي
pip install githydra[web]       # مع لوحة الويب
pip install githydra[ai]        # مع ميزات الذكاء الاصطناعي
```

### 🚀 البداية السريعة

```bash
githydra                        # يفتح القائمة التفاعلية تلقائيًا
githydra init                   # إنشاء مستودع
githydra ignore template python # ملف .gitignore جاهز
githydra doctor                 # فحص شامل
githydra status                 # الحالة
githydra stage add --all         # تجهيز كل الملفات
githydra commit -m "feat: أول ميزة"
githydra changelog generate     # توليد سجل التغييرات
```

### 📚 الوثائق العربية الكاملة

| الدليل | الوصف |
| --- | --- |
| [خريطة التوثيق](docs/INDEX_AR.md) | فهرس كل الأدلة |
| [دليل التثبيت](docs/INSTALLATION_AR.md) | تثبيت مفصّل لكل نظام |
| [دليل المستخدم](docs/USER_GUIDE_AR.md) | شرح كل مجموعة أوامر |
| [مرجع الأوامر](docs/API_REFERENCE_AR.md) | مرجع كامل بالخيارات |
| [البطاقة السريعة](docs/CHEATSHEET_AR.md) | كل الأوامر في ورقة واحدة |
| [الأسئلة الشائعة](docs/FAQ_AR.md) | أسئلة وأجوبة شاملة |
| [حل المشاكل](docs/TROUBLESHOOTING_AR.md) | تشخيص الأخطاء وحلها |
| [لوحة الويب](docs/WEB_DASHBOARD_AR.md) | دليل لوحة التحكم |
| [ميزات AI](docs/AI_FEATURES_AR.md) | الذكاء الاصطناعي |
| [أمثلة عملية](docs/EXAMPLES_AR.md) | وصفات يومية جاهزة |
| [دليل المطور](docs/DEVELOPER_GUIDE_AR.md) | بنية الكود والمساهمة |
| [إدارة المشاريع](docs/PROJECT_MANAGEMENT_AR.md) | القضايا والمعالم |
| [التعاون الجماعي](docs/TEAM_COLLABORATION_AR.md) | سير العمل الجماعي |
| [التكامل السحابي](docs/CLOUD_INTEGRATION_AR.md) | ربط GitHub |
| [القوالب](docs/TEMPLATES.md) | قوالب المشاريع |
| [المساهمة](docs/CONTRIBUTING_AR.md) | كيف تساهم |
| [دليل البداية السريعة](QUICKSTART.md) | أول ٥ دقائق |

### 🤝 الدعم والترخيص

- المشاكل والاقتراحات: [GitHub Issues](https://github.com/Alqudimi/GitHydra/issues)
- الثغرات الأمنية: راجع [SECURITY.md](SECURITY.md) (إبلاغ خاص فقط)
- الترخيص: [MIT](LICENSE) — © **Abdulaziz Mohammed Alqudimi** (abodx1234freey@gmail.com)

---

<div align="center">

**Made with 🔥 by [Abdulaziz Mohammed Alqudimi](https://github.com/Alqudimi)**

⭐ If GitHydra helps you, consider starring the repository!

</div>
