AnkiGenGPT
AnkiGenGPT is a Python CLI tool that harnesses the power of OpenAI's GPT-3 or GPT-4 model to transform your text into flashcards for Anki, an open-source spaced repetition software.
Install
You can install AnkiGenGPT using pip:
pip3 -U install ankigengpt
Alternatively, you can use pipx for installation:
pipx install ankigengpt
Configuration
To use AnkiGenGPT, you need an OpenAI API token, which can be provided either through the --openai-token command-line option or via the OPENAI_TOKEN environment variable.
Epub
AnkiGenGPT can scan an epub file for text and use ChatGPT to create Anki cards. Here's an example of how to use it:
ankigengpt epub --path ~/Downloads/my-ebook.epub
Kindle Highlights
To generate Anki cards from Kindle highlights, ensure the highlights are in the APA format, and then run the following command:
ankigengpt kindle-highlights --path ~/Downloads/Notebook.html
Kobo Highlights
For Kobo highlights, you can enable the export feature on your Kobo device by connecting it via USB and modifying the .kobo/Kobo/Kobo eReader.conf file. Add the following under [FeatureSettings]:
[FeatureSettings]
ExportHighlights=true
After enabling export highlights on the Kobo device, you can retrieve the highlight files via USB and use the kobo-highlights command to create Anki cards:
ankigengpt kobo-highlights --path ~/Downloads/BookHighlights.csv
Plain text
ou can also use AnkiGenGPT with plain text files such as markdown or txt. Here's how to use it:
ankigengpt plain --path ~/Downloads/book.md
Debugging
To debug AnkiGenGPT, you can use the --debug option.
Metadata
Release files for ankigengpt 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ankigengpt-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for ankigengpt-1.3.0-py3-none-any.whl |
Release files / ankigengpt-1.3.0-py3-none-any.whl
| Download URL | ankigengpt-1.3.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20124be54ab9d9c62d33372d54befdf732da153d2b5e7d3aff3c44fde2c6cac4
|
|
BLAKE2b-256 checksum How to use checksums |
218f437b84847cf06e77ff25b008c095f41b58ccac3d4b955720b111366b15f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for ankigengpt 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.