Metadata-Version: 2.1
Name: ankigengpt
Version: 0.1.0
Summary: 
Author: rwxd
Author-email: git@rwxd.de
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
Requires-Dist: ebooklib (>=0.18,<0.19)
Requires-Dist: genanki (>=0.13.0,<0.14.0)
Requires-Dist: jinja2 (>=3.1.2,<4.0.0)
Requires-Dist: openai (>=0.27.7,<0.28.0)
Requires-Dist: pdfplumber (>=0.9.0,<0.10.0)
Requires-Dist: pydub (>=0.25.1,<0.26.0)
Requires-Dist: pyyaml (>=6.0,<7.0)
Requires-Dist: rich (>=13.4.2,<14.0.0)
Requires-Dist: tiktoken (>=0.4.0,<0.5.0)
Requires-Dist: typer (>=0.9.0,<0.10.0)
Description-Content-Type: text/markdown

# AnkiGenGPT

This Python CLI tool leverages the power of OpenAI's GPT-3 or GPT-4 model to convert your text into flashcards for use in Anki, an open-source spaced repetition software.

## Install

```bash
pip3 -U install ankigengpt
```

or via pipx

```bash
pipx install ankigengpt
```

## Configuration

An openai api token is needed, it can be used with `--openai-token` or via the environment variable `OPENAI_TOKEN`.

## Epub

Scans an epub for text and asks chatgpt for anki cards.

```bash
ankigengpt epub --path ~/Downloads/my-ebook.epub
```

## Kindle Highlights

Uses the highlights to create anki cards.

> The kindle highlights are needed in the `APA` format.

```bash
ankigengpt kindle-highlights --path ~/Downloads/Notebook.html
```

## Plain text

Use a plain text file like markdown or txt

```bash
ankigengpt plain --debug --path ~/Downloads/book.md
```

