This tool allows one to generate an Anki deck by providing a file where:
- Each line correspond to a question with its answer
- Each question and answer are separated by a common separator
Medias are not taken into account yet.
genanki, argparse, hashlib
usage: ankiDeckGenerator.py [-h] --file FILE --separator SEPARATOR
[--name NAME] [--verbose] [--output OUTPUT]
Generate an Anki deck from a file in which questions and answers are separated
by a custom separator
optional arguments:
-h, --help show this help message and exit
--file FILE, -f FILE Name of the input file
--separator SEPARATOR, -s SEPARATOR
Question/Answer separator
--name NAME, -n NAME Name of the generated deck
--verbose, -v Print more information
--output OUTPUT, -o OUTPUT
Name of the ouput file
./ankiDeckGenerator.py -f <INPUT_FILE> -s , -n <DECK_NAME> -o <OUTPUT_FILE>
./ankiDeckGenerator.py -f <INPUT_FILE> -s , -n <DECK_NAME>
./ankiDeckGenerator.py -f <INPUT_FILE> -s : -n <DECK_NAME> -o <OUTPUT_FILE> -v
./ankiDeckGenerator.py -f <INPUT_FILE> -s %
Once the output file is generated, one just has to import it in the Anki app.
This project is licensed under the MIT License - see the LICENSE file for details.