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

PyPI - Version PyPI - Python Version

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.1.tar.gz (11.3 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.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fr_anki-0.1.1.tar.gz
  • Upload date:
  • Size: 11.3 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.1.tar.gz
Algorithm Hash digest
SHA256 e6e56ff393ac7a059c3f734e908ab745327d055acd5ad1f18d745fc2003a0363
MD5 8c00cb99c4ec16cc2b4ade762108a9a6
BLAKE2b-256 35e39e91fadf612fe6f0aaf21a9a4afe0299fb6da5d5f3c020fb8e284d423edc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fr_anki-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24ae7bea33b2e666b028a89e03134333387c9f084abaad7710ed6fd1e2e7a121
MD5 f99ae9cc23c8b30e1a5817d3d67df989
BLAKE2b-256 e5fc0cda334376a6b741aacde0215b97c3a457b954d12f66105ebf141b802004

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