asdf_pydantic.converter
=======================

.. py:module:: asdf_pydantic.converter


Attributes
----------

.. autoapisummary::

   asdf_pydantic.converter._ASDF_PYDANTIC_SINGLETON_CONVERTER


Classes
-------

.. autoapisummary::

   asdf_pydantic.converter.AsdfPydanticConverter


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

.. py:data:: _ASDF_PYDANTIC_SINGLETON_CONVERTER
   :type:  Optional[AsdfPydanticConverter]
   :value: None


.. py:class:: AsdfPydanticConverter

   Bases: :py:obj:`asdf.extension.Converter`


   Implements a converter compatible with all subclass of AsdfPydanticModel.

   The instance is a singleton.


   .. py:attribute:: _tag_to_class
      :type:  dict[str, Type[asdf_pydantic.model.AsdfPydanticModel]]


   .. py:attribute:: self


   .. py:method:: add_models(*model_classes: Type[asdf_pydantic.model.AsdfPydanticModel]) -> AsdfPydanticConverter
      :classmethod:



   .. py:property:: tags
      :type: tuple[str]



   .. py:property:: types
      :type: tuple[str | Type]



   .. py:method:: select_tag(obj, tags, ctx)


   .. py:method:: to_yaml_tree(obj: asdf_pydantic.model.AsdfPydanticModel, tag, ctx)


   .. py:method:: from_yaml_tree(node, tag, ctx)


