Metadata-Version: 2.4
Name: asma-tui
Version: 0.1.0
Summary: A terminal user interface (TUI) for learning and practicing the 99 Names of Allah (Asma-ul-Husna) with flashcards and quiz mode in Dracula theme.
Author: postsonde
License: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/postsonde/asma-tui
Project-URL: Repository, https://github.com/postsonde/asma-tui
Project-URL: Issues, https://github.com/postsonde/asma-tui/issues
Keywords: asma-ul-husna,99-names,islam,flashcards,quiz,tui,terminal,textual,cli
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Education
Classifier: Topic :: Religion
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.27.0
Requires-Dist: textual>=0.80.0
Dynamic: license-file

# ☪ Asma-ul-Husna TUI

A sleek terminal user interface (TUI) for learning the **99 Names of Allah** featuring an interactive **🔥 Streak Quiz Mode** and flashcards, built with [Textual](https://textualize.io) and the **Dracula** theme.

<p align="center">
  <img src="screenshot_asma.gif" alt="Asma Terminal Suite Demo" width="85%" />
</p>

## ✨ Key Features

- **🔥 Streak Quiz Mode (`m`):** Fast-paced multiple-choice quizzes (`1`–`4`) with instant feedback, live **Streak** tracking, and a **Best Streak** record.
- **🃏 Smart Flashcard Trainer (`Space`):** Flip through Arabic script, transliteration, and meanings, tracking progress as Known or Practice Again.
- **🔄 Bidirectional Practice (`r`):** Practice *Name ↔ Meaning* in both flashcard and quiz modes.
- **🔍 99-Names Directory (`l`):** Browse, filter, and inspect all names with completion indicators (`✓`).
- **💾 Offline Cache (`x`):** Uses the [AlAdhan Asma Al Husna API](https://aladhan.com) with local caching in `~/.config/asma-tui/`.

## 📦 Installation & Usage

Install via [pipx](https://pypa.io):
```bash
pipx install git+https://github.com/postsonde/asma-tui
```
Run the application:
```bash
asma
```

### Keyboard Shortcuts

| Key | Action |
| :--- | :--- |
| `m` | Switch to **Streak Quiz** / Flashcards |
| `Space` | Flip card / Next question |
| `1`–`4` | Answer options / Mark progress |
| `r` | Reverse practice direction |
| `l` | Open 99-names directory |
| `x` | Reset progress & streak |
| `q` | Quit |

## 📄 License
GNU General Public License (GPLv3)

---

## ☪ Islamic Terminal Suite (Dracula Theme)

A minimalist suite of Islamic terminal applications built with Python & [Textual](https://textualize.io), styled in the [Dracula](https://draculatheme.com) dark theme.

<p align="center">
  <img src="islamic-tui-suite.gif" alt="Islamic Terminal Suite Demo" width="85%" />
</p>

| App | Command | Description |
| :--- | :--- | :--- |
| **[salah-tui](https://github.com/postsonde/salah-tui.git)** | `salah` | Islamic prayer times mapping the sun path on the horizon, Hijri date & calculation methods |
| **[hijri-tui](https://github.com/postsonde/hijri-tui.git)** | `hijri` | Native Hijri calendar with lunar phases, Sunnah fasting & holy days |
| **[quran-tui](https://github.com/postsonde/quran-tui.git)** | `quran` | Study the Holy Quran with 100+ translations, side-by-side view & bookmarks |
| **[asma-tui](https://github.com/postsonde/asma-tui.git)** | `asma` | Learn the 99 Names of Allah with flashcards, streak quiz & directory |
