version control for Anki collections
See the codeKi is a command-line tool for converting Anki collections and decks into git repositories. Check out the documentation!
Install the following dependencies:
Then open a terminal or command-line window, and install with the following command:
python3 -m pip install git+https://github.com/langfield/ki.git@main
Want to try this but can't figure out how? Please, please open an issue and explain what you need help with. Any and all complaints, questions, and rants are welcome!
Ki provides three high-level features:
It also supports:
.ki/backups directory).compile.py script, you can easily set up a workflow to build
and publish your deck .apkg binaries automatically!Basic, Basic (and reversed), Cloze, Cloze-Overlapper, and
any arbitrary notetypes you make.collection.anki2 database file via
SQLite3 lock acquisition (no errors from editing the collection at the same
time as the Anki desktop client).shutil.copyfile() call).UTF-8), foreign language characters, and symbols in all fields.LaTeX and MathJaX.The following is an example of a markdown file automatically generated in the ki note format.
# Note
```
guid: dc6H$t-~MK
notetype: iKnow! Sentences
```
### Tags
```
languages
japanese
jp-sentences
jp-transportation
```
## Expression
駅からはタクシーに<b>乗って</b>ください。
## Meaning
Please take a taxi from the station.
乗る -- ride, take
## Reading
えき からは たくしー に <b>のって</b> ください
## Audio
[sound:e3c984736d8b1c2bdc467f2a1c98659a.mp3]
## Image_URI
<img src="e2d8a60b59f2be8ebcbffafa165c7a0d.jpg">
## iKnowID
sentence:247153
## iKnowType
sentence
Thanks to @husarcik, @pwintz for productive discussions about the architecture of this project!
Python
98.4%
Shell
1.2%
version control for Anki collections
See the codeKi is a command-line tool for converting Anki collections and decks into git repositories. Check out the documentation!
Install the following dependencies:
Then open a terminal or command-line window, and install with the following command:
python3 -m pip install git+https://github.com/langfield/ki.git@main
Want to try this but can't figure out how? Please, please open an issue and explain what you need help with. Any and all complaints, questions, and rants are welcome!
Ki provides three high-level features:
It also supports:
.ki/backups directory).compile.py script, you can easily set up a workflow to build
and publish your deck .apkg binaries automatically!Basic, Basic (and reversed), Cloze, Cloze-Overlapper, and
any arbitrary notetypes you make.collection.anki2 database file via
SQLite3 lock acquisition (no errors from editing the collection at the same
time as the Anki desktop client).shutil.copyfile() call).UTF-8), foreign language characters, and symbols in all fields.LaTeX and MathJaX.The following is an example of a markdown file automatically generated in the ki note format.
# Note
```
guid: dc6H$t-~MK
notetype: iKnow! Sentences
```
### Tags
```
languages
japanese
jp-sentences
jp-transportation
```
## Expression
駅からはタクシーに<b>乗って</b>ください。
## Meaning
Please take a taxi from the station.
乗る -- ride, take
## Reading
えき からは たくしー に <b>のって</b> ください
## Audio
[sound:e3c984736d8b1c2bdc467f2a1c98659a.mp3]
## Image_URI
<img src="e2d8a60b59f2be8ebcbffafa165c7a0d.jpg">
## iKnowID
sentence:247153
## iKnowType
sentence
Thanks to @husarcik, @pwintz for productive discussions about the architecture of this project!
Python
98.4%
Shell
1.2%