This repository provides a tool for creating Anki decks from JSON files. Follow the steps below to get started.
- Python 3.x installed on your machine
- Virtual environment tool (e.g.,
venv
orconda
) installed
- Clone this repository to your local machine.
- Navigate to the project directory:
cd anki-decks
. - Create a virtual environment:
python -m venv venv
. - Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install the required dependencies:
pip install -r requirements.txt
.
- Place your JSON file(s) in the
json_decks
directory. - Run the following command in your terminal to generate the Anki deck:
python main.py json_decks/your_file_name.json