Bulk imports regular .apkg/.colpkg package files.
Does not modify the structure of your decks inside in any way. This may or may not be desireable for your use case. See similar projects below if you prefer deck structure to be based off of a folder structure.
For my use case, I designed decks/subdecks (based on Deck(name=)) with their own structures via genanki and didn't want them altered by the importing program.
-
Clone or download repository.
git clone https://github.com/shford/Anki_Bulk_Package_Importer.git -
Open
bulk_import_anki_packages.py- Ensure
PROFILEis set as desired.- Profiles can be seen by opening Anki and going to Anki->File->Switch Profile. Ensure
PROFILEmatches your profile. This is case sensitive.
- Profiles can be seen by opening Anki and going to Anki->File->Switch Profile. Ensure
- Move your packages to the project folder
put_packages_hereor setPACKAGE_PATHto the path containing your packages.
- Ensure
-
Ensure the Anki app is closed.
-
Run
bulk_import_anki_packages.py. -
Reopen Anki. Enjoy!
AnkiMultiImporter by @KasperGam
- Appears to be abandoned 5 years ago. Based deck hierarchy on folder structure. I couldn't get it to work.
@Shigeyuki Appears to have revived the above project. I think it works. I could not find Shigeyuki's source code on Github.
PRs are welcome for all of these. Feel free to submit issues. I'll probably take a look but I make no promises on solutions, especially if an issue is platform specific.
This project does not currently support flatpak installations of Anki.
The latest commit of this program was tested with a modern version of Anki (v25.07.5) on Linux, Mac, and Windows and worked as expected.
This project is a pebble that relies on boulders like Anki that relies on mountains like Qt6 that relies on planets of OS's. At any point one of these things could change and this project may no longer work.
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
This project is provided under the GNU General Public License v2.0 license. In claims of tort or liability, the disclaimer above will take precedence over the license.