A package for programmatically generating language learning flashcards
Project description
Cardbuilder
A command line tool and Python library for creating language learning flashcards in a wide variety of languages.
Quick Start
Cardbuilder can output flashcards in several different formats, but the quick start will focus on Anki.
pip install cardbuilder
printf "暗記\nカード\n作る" > words.txt
cardbuilder ja_to_en --input words.txt --output cards
That's it - cards built! Just import cards.apkg
into Anki and you're good to go. Note that the first time you run Cardbuilder it will download data which may take some time, but this only has to be done once.
Supported Languages
Learning Language | From Language |
---|---|
Japanese | English |
Esperanto | English |
English | Japanese |
FAQ
Can you add support for <language>
or <data source>
?
Probably! You're welcome to open an issue requesting support for a new language and/or new source of data, although in both cases it really helps if you can point to the location of a publicly available web API or dictionary file. Alternatively, we welcome pull requests implementing new data sources.
Can you add support for <flashcard app>
?
As with new languages, it's likely possible and you're welcome to open an issue or submit a PR yourself for a new card resolver.
Can I generate flashcards without writing code?
Not yet, but we're planning to add a command-line interface to handle simple use cases in the future.
Is this like genanki?
No, genanki
is a great library and Cardbuilder depends on it to output Anki decks, but the two packages serve different purposes. genanki
is specifically for taking data and transforming it into the format that Anki uses, while Cardbuilder attempts to simplify the process of going from a list of words to a set of complete flashcards with all the required information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cardbuilder-0.0.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f3713069668a47456c9d569c81820275f953500f75dc83c8fe796e5d144b1b |
|
MD5 | b42dc3e43221eb3e025ecc518a7caf1b |
|
BLAKE2b-256 | a1a744267233c999adb284e76ff18417d6ff417028398710869a8d16be0eb5ed |