AnkiNoteTemplate/tests/list_decks.py
2021-11-27 17:40:52 +03:00

13 lines
205 B
Python

from antp.ankiconnect import invoke
def list_decks():
decks = invoke('deckNames')
print("List of decks:")
for deck in decks:
print(deck)
if __name__ == '__main__':
list_decks()