Modify deck with python

Use the official anki package. Here’s an example of creating a collection and importing a .apkg package:

Refer to the add-on docs for more details:

2 Likes