o
    niz                     @   s4   d Z ddlmZmZ ddlmZ G dd deZdS )#Abstract base class for registries.    )ABCabstractmethod)Tuplec                   @   sr   e Zd ZU dZeed< deeef fddZedefddZ	edede
fd	d
Zeededd fddZdS )AbstractRegistryr   urireturnc                       t )z}Get the username and password for the registry.

        Returns:
            (str, str): The username and password.
        NotImplementedErrorself r   `/home/ubuntu/SoloSpeech/.venv/lib/python3.10/site-packages/wandb/sdk/launch/registry/abstract.pyget_username_password   s   z&AbstractRegistry.get_username_passwordc                    r	   )zRGet the URI for a repository.

        Returns:
            str: The URI.
        r
   r   r   r   r   get_repo_uri   s   zAbstractRegistry.get_repo_uri	image_uric                    r	   )zCheck if an image exists in the registry.

        Arguments:
            image_uri (str): The URI of the image.

        Returns:
            bool: True if the image exists.
        r
   )r   r   r   r   r   check_image_exists   s   
z#AbstractRegistry.check_image_existsconfigc                 C   s   t )z Create a registry from a config.r
   )clsr   r   r   r   from_config)   s   zAbstractRegistry.from_configN)__name__
__module____qualname____doc__str__annotations__r   r   r   r   boolr   classmethoddictr   r   r   r   r   r      s   
 r   N)r   abcr   r   typingr   r   r   r   r   r   <module>   s    