anki.importing.anki2
====================

.. py:module:: anki.importing.anki2


Attributes
----------

.. autoapisummary::

   anki.importing.anki2.GUID
   anki.importing.anki2.MID
   anki.importing.anki2.MOD


Exceptions
----------

.. autoapisummary::

   anki.importing.anki2.V2ImportIntoV1
   anki.importing.anki2.MediaMapInvalid


Classes
-------

.. autoapisummary::

   anki.importing.anki2.Anki2Importer


Module Contents
---------------

.. py:data:: GUID
   :value: 1


.. py:data:: MID
   :value: 2


.. py:data:: MOD
   :value: 3


.. py:exception:: V2ImportIntoV1

   Bases: :py:obj:`Exception`


   Common base class for all non-exit exceptions.


.. py:exception:: MediaMapInvalid

   Bases: :py:obj:`Exception`


   Common base class for all non-exit exceptions.


.. py:class:: Anki2Importer(col: anki.collection.Collection, file: str)

   Bases: :py:obj:`anki.importing.base.Importer`


   .. py:attribute:: needMapper
      :value: False



   .. py:attribute:: deckPrefix
      :type:  str | None
      :value: None



   .. py:attribute:: allowUpdate
      :value: True



   .. py:attribute:: src
      :type:  anki.collection.Collection


   .. py:attribute:: dst
      :type:  anki.collection.Collection


   .. py:attribute:: source_needs_upgrade
      :value: False



   .. py:method:: run(media: None = None, importing_v2: bool = True) -> None


