ó
    IT–h·	  ã                   óL   • S r SSKJr  SSKJr  SSKJr  SSKJr   " S S	5      r	g
)zAContain helper class to retrieve/store token from/to local cache.é    )ÚPath)ÚOptionalé   )Ú	constantsé   ©Ú	get_tokenc                   ób   • \ rS rSr\S\SS4S j5       r\S\\   4S j5       r\S	S j5       r	Sr
g)
ÚHfFolderé   ÚtokenÚreturnNc                 óŒ   • [        [        R                  5      nUR                  R	                  SSS9  UR                  U5        g)zä
Save token, creating folder as needed.

Token is saved in the huggingface home folder. You can configure it by setting
the `HF_HOME` environment variable.

Args:
    token (`str`):
        The token to save to the [`HfFolder`]
T)ÚparentsÚexist_okN)r   r   ÚHF_TOKEN_PATHÚparentÚmkdirÚ
write_text)Úclsr   Ú
path_tokens      ÚX/var/www/auris/envauris/lib/python3.13/site-packages/huggingface_hub/utils/_hf_folder.pyÚ
save_tokenÚHfFolder.save_token   s;   € ô œ)×1Ñ1Ó2ˆ
Ø×Ñ×Ñ¨°tÐÑ<Ø×Ñ˜eÕ$ó    c                 ó   • [        5       $ )a  
Get token or None if not existent.

This method is deprecated in favor of [`huggingface_hub.get_token`] but is kept for backward compatibility.
Its behavior is the same as [`huggingface_hub.get_token`].

Returns:
    `str` or `None`: The token, `None` if it doesn't exist.
r   ©r   s    r   r	   ÚHfFolder.get_token-   s   € ô ‹{Ðr   c                 ót   •  [        [        R                  5      R                  5         g! [         a     gf = f)zH
Deletes the token from storage. Does not fail if token does not exist.
N)r   r   r   ÚunlinkÚFileNotFoundErrorr   s    r   Údelete_tokenÚHfFolder.delete_token<   s0   € ð
	Ü”×(Ñ(Ó)×0Ñ0Õ2øÜ ó 	Ùð	ús   ‚'* ª
7¶7© )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚclassmethodÚstrr   r   r	   r"   Ú__static_attributes__r$   r   r   r   r      sW   † ð ð%˜sð % tó %ó ð%ð" ð
˜( 3™-ó 
ó ð
ð óó ór   r   N)
Ú__doc__Úpathlibr   Útypingr   Ú r   Ú_authr	   r   r$   r   r   Ú<module>r1      s!   ðñ Hå Ý å Ý ÷,ò ,r   