AnkiNoteTemplate/tests/list_decks.py

13 lines
205 B
Python
Raw Normal View History

2021-11-27 11:54:42 +00:00
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()