Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manibatra/text2anki
https://github.com/manibatra/text2anki
anki anki-flashcards ankico gpt openai
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/manibatra/text2anki
- Owner: manibatra
- Created: 2023-03-16T10:41:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-19T11:09:48.000Z (almost 2 years ago)
- Last Synced: 2023-08-03T04:12:20.559Z (over 1 year ago)
- Topics: anki, anki-flashcards, ankico, gpt, openai
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anki Flashcard Generator
Anki Flashcard Generator is a Python script that automates the process of generating and adding Anki flashcards from a given text file. It leverages the GPT model provided by OpenAI and the AnkiConnect plugin.
## Features
- Automatically generates Anki flashcards from a text file
- Utilizes OpenAI's GPT-3.5-turbo model for intelligent flashcard creation
- HTML formatting for better flashcard appearance and recall
- Simple setup and easy-to-use command line interface## Prerequisites
- Anki desktop application installed and running
- AnkiConnect plugin installed in Anki
- OpenAI Python library
- OpenAI API key## Installation
1. Clone the repository:
```
git clone https://github.com/yourusername/anki-flashcard-generator.git
cd anki-flashcard-generator
```2. Install the required Python libraries:
```
pip install -r requirements.txt
```3. Set up the OpenAI API key.
## Usage
To generate flashcards from a text file, run the following command:
```
python anki.py /path/to/your/textfile.txt
```