Skip to main content
The anki module can be used separately from Anki’s GUI. It is strongly recommended you use it instead of attempting to read or write a .anki2 file directly. Install it with pip:
Then you can use it in a .py file, like so:
See the Anki module for more.