Metadata-Version: 2.5
Name: anki_card_create
Version: 0.2.4
Project-URL: homepage, https://github.com/phlin0424/anki-card-create
Project-URL: repository, https://github.com/phlin0424/anki-card-create
Requires-Python: >=3.11
Requires-Dist: google-genai>=1.39.1
Requires-Dist: langdetect>=1.0.9
Requires-Dist: navertts>=0.3.1
Requires-Dist: pillow>=11.3.0
Requires-Dist: pydantic-ai>=0.0.44
Requires-Dist: pydantic-settings>=2.3.4
Requires-Dist: pydantic>=2.6.4
Requires-Dist: python-dotenv>=1.0.1
Requires-Dist: requests>=2.31.0
Requires-Dist: translators>=6.0.4
Description-Content-Type: text/markdown

# `kanki`: Create Korean Anki cards with Audios

Add Anki cards with audios (korean vocabulary) and translations simply with only one command: `kanki`.

## Features

- **Add a Single Anki Card via Command Line**: Easily add individual Anki cards directly from the command line.
- **Add a Batch of Anki Cards via Command Line**: Quickly add multiple Anki cards at once using a file input.
- **Automatically Generate Audios and Translations**: Automatically generate audio pronunciations and translations for the added Anki cards.

## Installation

### Prerequisites

- Python 3.11
- Anki with AnkiConnect plugin installed and running

  > Open Anki, go to Tools -> Add-ons -> Get Add-ons... and enter the code `2055492159` to install AnkiConnect.

### Package Setup

Set up the package using:

```sh
pip install anki-card-create
```

## Usage

1. Ensure that Anki has been running in the background.

2. Ensure that anki-connect has been installed.

3. Create a single anki card using:

   ```sh
   kanki -w 안녕하세요
   ```

4. Or, create multiple anki cards using:

   ```sh
   kanki -f <file-with-korean-vocabularies-listed>
   ```

5. Specify the target deck name using:

   ```sh
   kanki -w 안녕하세요 -d korean
   ```

6. Specify the model name of the Anki card you want to create using:

   ```sh
   kanki -w 안녕하세요 -m Basic (裏表反転カード付き)+sentense
   ```

7. (beta) Create the anki cards from an image with `Gemini` (`gemini-2.5-flash`):
   ```sh
   kanki -i <image-with-korean-vocabularies>
   ```
