Anki add-on: export all notetypes/models and deckoptionsgroups (without notes or media)

This add-on adds an option to the Tools menu from the main window named "export all note types and deck names/settings (for debugging etc.)". This probably only useful if you want to ask a question about your collection but don't want to give away your notes. This add-on doesn't show up in Anki's exporter. This add-on creates a deck that contains all your note types (models) and all their templates. A list of your deck names (to get their option groups) is also included. This add-on also exports files from the the media folder that start with a leading underscore. This add-on works for me but that's just one person. You also shouldn't rely on my feeling that this add-on shouldn't cause real problems. In fact whenever you use an add-on that doesn't have many and only positive reviews and affects the database (like this one): Make sure to have working backups and know how to restore them. Use this at your own risk. Before you share a file that was created by this add-on make sure that it doesn't contain any sensitive information by accident. Make a new profile, import the apkg. Then check the media folder if unwanted files were included. Delete them. Then check in the browser if unwanted information remains. In the browser you'll see one note per notetype: Anki only exports notes and anki doesn't like notes that don't have cards. Errors, Bugs, Issues Feedback, improvements, and error reports are welcome. It's best to post these in my github repo where I can respond multiple times.

GitHub repository: ijgnd/anki__export_all_notetypes_and_deckoptionsgroups