Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 979 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 979 Bytes

What is this?

A simple tool to create Anki cards from csv files to help me learn japanese.

Installation

You wanna run the code inside a venv.

pip install --upgrade "pip>=19.3"
pip install -r requirements.txt

Usage examples

# by default it will look into the "cards" directory for csv files 
# and output to "decks":
python main.py

# you can specify the cards & output directory with their 
# corresponding flag:
python main.py --cards_dir /my/csv/files --output_dir  /tmp/mycards

Once created you can import the cards in your favourite anki viewer.

CSV format

The csv is formatted - with no header - as

<front>,<back (primary)>,<back (secondary)>

eg

big,ōkī,ōkī akai ringo -> Big red apple
quiet,shizuka,
am,ごぜん,gozen

The secondary entry for the back is optional and will be displayed below the primary and in parenthesis.