Metadata-Version: 2.4
Name: japtoanki
Version: 0.1.0
Summary: Extracts kanji sentences using OCR for automatic Anki flashcards
Author-email: nemi tatsu <nemitatsu@proton.me>
License: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: tqdm
Requires-Dist: fugashi
Requires-Dist: unidic-lite
Requires-Dist: jaconv
Provides-Extra: ocr
Requires-Dist: manga-ocr; extra == "ocr"
Requires-Dist: torch; extra == "ocr"
Requires-Dist: transformers; extra == "ocr"
Requires-Dist: protobuf; extra == "ocr"

Extracts sentences containing kanji from manga, screenshots, etc, and automatically creates Anki flashcards for later study.

---

## Installation

###### (.txt files only):
```
pip install japtoanki
```

###### OCR Support:
```
pip install japtoanki[ocr]
```

### Anki Cards:
*Examples*:

![Anki Card](./images/2026-02-10-145359_hyprshot.png) ![Anki Card2](./images/2026-02-10-153400_hyprshot.png)
## Usage

Requires Anki-connect plugin to be enabled in Anki to work.
[Anki-Connect](https://github.com/amikey/anki-connect)


```
japtoanki /path/to/manga --deck Kanji_Sentences --tag manga
```

#### Requirements:
- [python](https://www.python.org/downloads/)
- [Anki](https://apps.ankiweb.net/)
