aqt.import_export.importing#

Attributes#

Classes#

Importer

Helper class that provides a standard way to create an ABC using

ColpkgImporter

Helper class that provides a standard way to create an ABC using

ApkgImporter

Helper class that provides a standard way to create an ABC using

MnemosyneImporter

Helper class that provides a standard way to create an ABC using

CsvImporter

Helper class that provides a standard way to create an ABC using

JsonImporter

Helper class that provides a standard way to create an ABC using

Functions#

Module Contents#

class aqt.import_export.importing.Importer#

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

accepted_file_endings: list[str]#
classmethod can_import(lowercase_filename: str) bool#
classmethod do_import(mw: aqt.main.AnkiQt, path: str) None#
Abstractmethod:

class aqt.import_export.importing.ColpkgImporter#

Bases: Importer

Helper class that provides a standard way to create an ABC using inheritance.

accepted_file_endings = ['.apkg', '.colpkg']#
static can_import(filename: str) bool#
static do_import(mw: aqt.main.AnkiQt, path: str) None#
class aqt.import_export.importing.ApkgImporter#

Bases: Importer

Helper class that provides a standard way to create an ABC using inheritance.

accepted_file_endings = ['.apkg', '.zip']#
static do_import(mw: aqt.main.AnkiQt, path: str) None#
class aqt.import_export.importing.MnemosyneImporter#

Bases: Importer

Helper class that provides a standard way to create an ABC using inheritance.

accepted_file_endings = ['.db']#
static do_import(mw: aqt.main.AnkiQt, path: str) None#
class aqt.import_export.importing.CsvImporter#

Bases: Importer

Helper class that provides a standard way to create an ABC using inheritance.

accepted_file_endings = ['.csv', '.tsv', '.txt']#
static do_import(mw: aqt.main.AnkiQt, path: str) None#
class aqt.import_export.importing.JsonImporter#

Bases: Importer

Helper class that provides a standard way to create an ABC using inheritance.

accepted_file_endings = ['.anki-json']#
static do_import(mw: aqt.main.AnkiQt, path: str) None#
aqt.import_export.importing.IMPORTERS: list[type[Importer]]#
aqt.import_export.importing.legacy_file_endings(col: anki.collection.Collection) list[str]#
aqt.import_export.importing.import_file(mw: aqt.main.AnkiQt, path: str) None#
aqt.import_export.importing.prompt_for_file_then_import(mw: aqt.main.AnkiQt) None#
aqt.import_export.importing.get_file_path(mw: aqt.main.AnkiQt) str | None#
aqt.import_export.importing.all_accepted_file_endings(mw: aqt.main.AnkiQt) set[str]#
aqt.import_export.importing.import_collection_package_op(mw: aqt.main.AnkiQt, path: str, success: aqt.qt.Callable[[], None]) aqt.operations.QueryOp[None]#
aqt.import_export.importing.import_progress_update(progress: anki.collection.Progress, update: aqt.progress.ProgressUpdate) None#