Skip to main content

Provide a list of French infinitive verbs and specify desired tense, the tool automatically generates Anki deck for all person-specific conjugations

Project description

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fr_anki-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fr_anki-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file fr_anki-0.1.0.tar.gz.

File metadata

  • Download URL: fr_anki-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for fr_anki-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c853401eda8cf1140e66bc22f62e8a4756ce349dc77b15ec1b214851ae762caa
MD5 75d6e6343dcc3cf07f610964cc858b2f
BLAKE2b-256 b5de1fd44a29709b46f4d4c5aeb685aca2ac30a858d4f6f983c36b8f6403f172

See more details on using hashes here.

File details

Details for the file fr_anki-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fr_anki-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for fr_anki-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e26950829696abf5c714c292a9b268dd214718c18c4f0f658374c5aac2344544
MD5 9c82aa5725b25c6eff2e00f43903f5a6
BLAKE2b-256 2852897cbf3ec1a8f98010966a400cdf22cb3df6ac08b42e804b422f7fb8eddc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page