+
    &j                     2   R t ^ RIHt ^ RIt^ RIHt ^ RIHt ^RIH	t	H
t
HtHt ^RIHtHtHt ^RIHtHt ^RIHt ]P,                  ! ]4      t]! R	R
7      t]P5                  R. R)OR7      R*R R ll4       t]P5                  RRR.R7      R+R R ll4       tR R lt]P5                  RRR.R7      R,R R ll4       t]P5                  RR.R7      R R l4       t]P5                  RR R!.R7      R" R# l4       t ]P5                  R$R%R&.R7      R' R( l4       t!R# )-a  Contains commands to authenticate to the Hugging Face Hub and interact with your repositories.

Usage:
    # login and save token locally.
    hf auth login --token=hf_*** --add-to-git-credential

    # switch between tokens
    hf auth switch

    # list all tokens
    hf auth list

    # logout from all tokens
    hf auth logout

    # check which account you are logged in as
    hf auth whoami
)	AnnotatedN)ENDPOINT)whoami)	auth_listauth_switchloginlogout)get_stored_tokens	get_tokenlogging)TokenOpttyper_factory)outz,Manage authentication (login, logout, etc.).helpr   )examplesc                    V ^8  d   QhR\         R\        \        \        P                  ! RR7      3,          R\        \        \        P                  ! RR7      3,          RR/# )	   tokenadd_to_git_credentialTSave to git credential helper. Useful only if you plan to run git commands directly.r   forcez)Force re-login even if already logged in.returnN)r   r   booltyperOption)formats   "p/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/huggingface_hub/cli/auth.py__annotate__r   =   sn     a aa$g	
	a <	
	a 
a    c                *    \        WV'       * R7       R# )z8Login using a token from huggingface.co/settings/tokens.)r   r   skip_if_logged_inN)r   )r   r   r   s   &&&r   
auth_loginr"   4   s    2 
Z_V_`r   r   zhf auth logoutz$hf auth logout --token-name my-tokenc                z    V ^8  d   QhR\         \        R,          \        P                  ! RR7      3,          RR/# )r   
token_nameNzName of token to logoutr   r   )r   strr   r   )r   s   "r   r   r   T   s<     " "d
34	6"
 
"r   c                    \        V R7       R# )zLogout from a specific token.r$   N)r   r'   s   &r   auth_logoutr(   P   s     j!r   c                2    V ^8  d   QhR\         R,          /# r   r   N)r%   )r   s   "r   r   r   ^   s     J JC$J Jr   c                     \        \        4       P                  4       4      p V '       g   \        P	                  R 4       R# \        R4       \        V ^4       F  w  r\        V RV 24       K  	    \        R4      pVP                  4       R8X  d   R# \        V4      ^,
          p^ Tu;8:  d   \        V 4      8  d   M MW,          # \        R4       Kf    \         d    \        R4        K  i ; i)z+No stored tokens found. Please login first.NzAvailable stored tokens:z. z=Enter the number of the token to switch to (or 'q' to quit): qz$Invalid selection. Please try again.z4Invalid input. Please enter a number or 'q' to quit.)listr	   keysloggererrorprint	enumerateinputlowerintlen
ValueError)token_namesir$   choiceindexs        r   _select_token_namer<   ^   s    (*//12KBC	
$%";22j\"# 3

	JZ[F||~$K!OEE,C,,"))<= 	JHI	Js   3 C 4C 
C C10C1switchzhf auth switchz$hf auth switch --token-name my-tokenc          	          V ^8  d   QhR\         \        R,          \        P                  ! RR7      3,          R\         \        \        P                  ! RR7      3,          RR/# )r   r$   NzName of the token to switch tor   r   r   r   )r   r%   r   r   r   )r   s   "r   r   r   z   si     I Id
1	
	I %g	
	I 
Ir   c                    V f   \        4       p V f!   \        R4       \        P                  ! 4       h\	        WR7       R# )zSwitch between access tokens.Nz!No token name provided. Aborting.)r   )r<   r1   r   Exitr   )r$   r   s   &&r   auth_switch_cmdrA   v   s5    & ')
12jjl
Hr   z	list | lszhf auth listc                    V ^8  d   QhRR/# r*    )r   s   "r   r   r      s      t r   c                     \        4        R# )zList all stored access tokens.N)r   rC   r   r   auth_list_cmdrE      s	     Kr   r   zhf auth tokenz8hf auth token | xargs curl -H 'Authorization: Bearer {}'c                    V ^8  d   QhRR/# r*   rC   )r   s   "r   r   r      s     Q QD Qr   c                     \        4       p V f.   \        P                  ! R4       \        P                  ! ^R7      h\        V 4       \        P                  ! R4       R# )z)Print the current access token to stdout.Nz)Not logged in. Run `hf auth login` first.codez@Run `hf auth whoami` to see which account this token belongs to.)r
   r   r0   r   r@   r1   hint)r   s    r   
auth_tokenrK      s@     KE}		=>jja  	%LHHOPr   r   zhf auth whoamizhf auth whoami --format jsonc                    V ^8  d   QhRR/# r*   rC   )r   s   "r   r   r      s     M MT Mr   c                 J   \        4       p V f.   \        P                  ! R4       \        P                  ! ^R7      h\        V 4      pRP                  R VR,           4       4      ;'       g    Rp\        R8w  d   \        MRp\        P                  ! RVR	,          W#R
7       R# )z;Find out which huggingface.co account you are logged in as.NzNot logged inrH   ,c              3   2   "   T F  qR ,          x  K  	  R# 5i)nameNrC   ).0orgs   & r   	<genexpr>auth_whoami.<locals>.<genexpr>   s     8<CKK<s   orgszhttps://huggingface.coz	Logged inrP   )userrU   endpoint)	r
   r   r0   r   r@   r   joinr   result)r   inforU   rW   s       r   auth_whoamir[      sw     KE}		/"jja  %=D8884<88@@DD#'??xTHJJ{fDLr   )zhf auth loginzhf auth login --token $HF_TOKENz7hf auth login --token $HF_TOKEN --add-to-git-credentialzhf auth login --force)NFF)N)NF)"__doc__typingr   r   huggingface_hub.constantsr   huggingface_hub.hf_apir   _loginr   r   r   r   utilsr	   r
   r   
_cli_utilsr   r   _outputr   
get_logger__name__r/   auth_clicommandr"   r(   r<   rA   rE   rK   r[   rC   r   r   <module>rh      sa  &   . ) : : 9 9 /  
		H	% LM 
  aa& 
 FG  "	"J0 
 FG  I	I. 
+(89 :
 
'_6p$qrQ sQ 
(&68V%WXM YMr   