Generate French learning Anki Deck
A CLI tool that creates French verb conjugation typing decks for Anki. Simply input a list of infinitives and choose which tenses to practice. The tool generates an APKG file ready to be imported into Anki. Currently supported common tenses include: indicatif présent, indicatif futur simple, indicatif passé composé, indicatif passé simple, conditionnel présent, and impératif présent.
Installation
From PyPI
pip install fr-anki
From Git
git clone https://github.com/yenyen1/generate-anki-deck.git
cd generate-anki-deck
pip install .
Print help
fr-anki --help
NOTE: The first run may take about a minute to download the model.
Usage: Generate French verb conjugation typing deck
Input verbs list by --infinitives
Use comma-separated infinitive verbs to input verbs list by --infinitives option.
fr-anki verb --tense present --infinitives "avoir,prendre,aller"
Input verbs list by --infinitive-file
Use a TXT file containing one infinitive verb per line to input verbs list.
fr-anki verb --tense present --infinitive-file verbs.txt
Example of verb list verbs.txt
avoir
prendre
aller
Import new cards into an existing Anki deck
Specify --deck-id (the ID of the existing Anki deck you want to import into) and --start-pid (the next consecutive primary ID after your existing cards) if you want to import new cards into an existing Anki deck.
fr-anki verb --tense present --infinitive-file verbs.txt --deck-id 132526148 --start-pid 52
Example of output Anki Deck output.apkg
-
Front
It shows the infinitive form with audio. You can type the conjugations separated by
/in the input box. -
Back
It displays all conjugation forms with audio and highlights your typing errors in different colors.
Credits
This tool uses the following Python libraries:
- genanki: A Python 3 library for generating Anki decks
- fr-audio: A tool for downloading MP3 audio of French verb conjugations that leveraging verbecc (for verb conjugation enhanced with machine learning techniques) and edge-tts (for accessing to Microsoft Edge’s online text-to-speech service from Python).
Metadata
Release files for fr-anki 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fr_anki-0.1.1.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fr_anki-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / fr_anki-0.1.1.tar.gz
| Download URL | fr_anki-0.1.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6e56ff393ac7a059c3f734e908ab745327d055acd5ad1f18d745fc2003a0363
|
|
BLAKE2b-256 checksum How to use checksums |
35e39e91fadf612fe6f0aaf21a9a4afe0299fb6da5d5f3c020fb8e284d423edc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / fr_anki-0.1.1-py3-none-any.whl
| Download URL | fr_anki-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24ae7bea33b2e666b028a89e03134333387c9f084abaad7710ed6fd1e2e7a121
|
|
BLAKE2b-256 checksum How to use checksums |
e5fc0cda334376a6b741aacde0215b97c3a457b954d12f66105ebf141b802004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|