+
    –°³j¨  ã                   óf  € 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Ht ^RIHt ^RIHtHtHtHt ^RIHtHt ^R	IHtHt ^R
IHt ^RIHtHt ]P@                  ! ]!4      t"]! RR7      t#]#PI                  R. R,OR7      R-R R ll4       t%]#PI                  RRR.R7      R.R R ll4       t&R R lt']#PI                  RRR.R7      R/R R ll4       t(]#PI                  RR.R7      R  R! l4       t)]#PI                  R"R#R$.R7      R% R& l4       t*]#PI                  R'R(R).R7      R* R+ l4       t+R# )0z^Contains commands to authenticate to the Hugging Face Hub and interact with your repositories.)Ú	AnnotatedN)ÚENDPOINT)Úwhoami)Ú_save_oauth_tokenÚ	auth_listÚauth_switchÚloginÚlogout)ÚCLIError)Úget_stored_tokensÚ	get_tokenÚloggingÚselect_choice)Úpoll_device_tokenÚrequest_device_code)ÚTokenOptÚtyper_factory)ÚOption)ÚOutputFormatÚoutz,Manage authentication (login, logout, etc.).©Úhelpr   )Úexamplesc                óœ   € V ^8„  d   QhR\         R\        \        \        RR7      3,          R\        \        \        RR7      3,          RR/# )	é   ÚtokenÚadd_to_git_credentialúTSave 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   Úboolr   )Úformats   "ÚY/home/luca/screen-checking/.venv/lib/python3.14/site-packages/huggingface_hub/cli/auth.pyÚ__annotate__r#   /   sf   € ÷ *bñ *bÜð*bä$ÜÜØgô	
ð	õð*bô ÜÜØ<ô	
ð	õð*bð 
ñ*bó    c           	     ó  € V f$   \         P                  \        P                  8X  d   \	        WV'       * R7       R# \         P                  \        P
                  8w  d   \        R4      hV'       g&   \        4       e   \         P                  ! RR7       R# \        4       p\         P                  ! RVR,           RVR	,           R
VR,           R2R7       \        V4      p\        V4      w  rV\         P                  ! RV RV R2R7       R# )zNLogin from your browser, or using a token from huggingface.co/settings/tokens.N)r   r   Úskip_if_logged_inzr`hf auth login` is interactive and does not support --format json/quiet. Pass --token for a non-interactive login.z;Already logged in. Use `hf auth login --force` to re-login.)ÚagentzAsk the user to open Úverification_uri_completez! in a browser and enter the code Ú	user_codez. The code expires in Ú
expires_inz& seconds. Waiting for authorization...zLogin successful: logged in as z (token saved as 'z').)r   Úmoder   Úhumanr   r'   r
   r   Útextr   r   r   )r   r   r   Údevice_infoÚresponseÚ
token_nameÚusernames   &&&    r"   Ú
auth_loginr2   &   sï   € ð2 ÒœCŸH™H¬×(:Ñ(:Ô:ä�EÐ^cÔZcÕdÙô ‡x�x”<×%Ñ%Ô%Üð8ó
ð 	
÷ ”Y“[Ò,Ü�ŠÐTÕUÙÜ%Ó'€KÜ‡H‚Hà# KÐ0KÕ$LÐ#MÐMnØ˜;Õ'Ð(Ð(>¸{È<Õ?XÐ>Yð Z+ð+õô ! Ó-€HÜ,¨XÓ6Ñ€JÜ‡H‚HÐ4°X°JÐ>PÐQ[ÐP\Ð\_Ð`×ar$   r	   zhf auth logoutz$hf auth logout --token-name my-tokenc                ód   € V ^8„  d   QhR\         \        R,          \        RR7      3,          RR/# )r   r0   NzName of token to logoutr   r   )r   Ústrr   )r!   s   "r"   r#   r#   `   s8   € ÷ "ñ "ÜÜˆd�
ÜÐ-Ô.ð	0õð"ð
 
ñ"r$   c                ó   € \        V R7       R# )zLogout from a specific token.©r0   N)r	   r6   s   &r"   Úauth_logoutr7   \   s   € ô �j×!r$   c                ó2   € V ^8„  d   QhR\         R,          /# ©r   r   N)r4   )r!   s   "r"   r#   r#   j   s   € ÷ 	Sñ 	SœC $�Jñ 	Sr$   c                  ó  € \        \        4       P                  4       4      p V '       g   \        P	                  R 4       R# \
        P                  \        P                  8w  d   \        R4      hV \        RV 4      ,          # )z+No stored tokens found. Please login first.Nz;Use --token-name to select a token in non-interactive mode.zSelect a token to switch to:)Úlistr   ÚkeysÚloggerÚerrorr   r+   r   r,   r
   r   )Útoken_namess    r"   Ú_select_token_namer@   j   s]   € ÜÔ(Ó*×/Ñ/Ó1Ó2€KçÜ�‰ÐBÔCÙä
‡x�x”<×%Ñ%Ô%ÜÐTÓUÐUØ”}Ð%CÀ[ÓQÕRÐRr$   Úswitchzhf auth switchz$hf auth switch --token-name my-tokenc          	      óž   € V ^8„  d   QhR\         \        R,          \        RR7      3,          R\         \        \        RR7      3,          RR/# )r   r0   NzName of the token to switch tor   r   r   r   )r   r4   r   r    )r!   s   "r"   r#   r#   z   sa   € ÷ Iñ IÜÜˆd�
ÜØ1ô	
ð	õðIô %ÜÜØgô	
ð	õðIð 
ñIr$   c                ó”   € V f   \        4       p V f*   \        R4       \        P                  P	                  4       h\        WR7       R# )zSwitch between access tokens.Nz!No token name provided. Aborting.)r   )r@   ÚprintÚclickÚ
exceptionsÚExitr   )r0   r   s   &&r"   Úauth_switch_cmdrH   v   s>   € ð& ÒÜ'Ó)ˆ
ØÒÜÐ1Ô2Ü×Ñ×#Ñ#Ó%Ð%Ü�
×Hr$   z	list | lszhf auth listc                ó   € V ^8„  d   QhRR/# r9   © )r!   s   "r"   r#   r#   ’   s   € ÷ ñ �tñ r$   c                 ó   € \        4        R# )zList all stored access tokens.N)r   rJ   r$   r"   Úauth_list_cmdrL   ‘   s	   € ô †Kr$   r   zhf auth tokenz8hf auth token | xargs curl -H 'Authorization: Bearer {}'c                ó   € V ^8„  d   QhRR/# r9   rJ   )r!   s   "r"   r#   r#   ˜   s   € ÷ Qñ Q�Dñ Qr$   c                 óÐ   € \        4       p V f7   \        P                  ! R4       \        P                  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   r>   rE   rF   rG   rD   Úhint)r   s    r"   Ú
auth_tokenrR   —   sK   € ô ‹K€EØ‚}Ü�	Š	Ð=Ô>Ü×Ñ×#Ñ#¨Ð#Ó+Ð+Ü	ˆ%„LÜ‡H‚HÐOÖPr$   r   zhf auth whoamizhf auth whoami --format jsonc                ó   € V ^8„  d   QhRR/# r9   rJ   )r!   s   "r"   r#   r#   £   s   € ÷ Mñ M�Tñ Mr$   c                 ó\  € \        4       p V f7   \        P                  ! R4       \        P                  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 inrO   Ú,c              3   ó2   "  € T F  qR ,          x € K  	  R# 5i)ÚnameNrJ   )Ú.0Úorgs   & r"   Ú	<genexpr>Úauth_whoami.<locals>.<genexpr>¬   s   é € Ð8©< C˜—K’K«<ùs   ‚Úorgszhttps://huggingface.coz	Logged inrW   )Úuserr\   Úendpoint)
r   r   r>   rE   rF   rG   r   Újoinr   Úresult)r   Úinfor\   r^   s       r"   Úauth_whoamirb   ¢   s‚   € ô ‹K€EØ‚}Ü�	Š	�/Ô"Ü×Ñ×#Ñ#¨Ð#Ó+Ð+ä�%‹=€DØ�8‰8Ñ8¨4°®<Ó8Ó8×@Ð@¸D€DÜ#Ð'?Ô?�xÀT€HÜ‡J‚Jˆ{  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   rE   Úhuggingface_hub.constantsr   Úhuggingface_hub.hf_apir   Ú_loginr   r   r   r   r	   Úerrorsr
   Úutilsr   r   r   r   Úutils._oauth_devicer   r   Ú
_cli_utilsr   r   Ú
_frameworkr   Ú_outputr   r   Ú
get_loggerÚ__name__r=   Úauth_cliÚcommandr2   r7   r@   rH   rL   rR   rb   rJ   r$   r"   Ú<module>rr      sj  ðñ eå ã å .Ý )ç MÕ MÝ ß HÓ Hß Hß /Ý ß &ð 
×	Ò	˜HÓ	%€ñ ÐLÔM€ð 
×ÑØòð ó ö*bóð*bðZ 
×ÑØØÐ FÐGð ó ö"ó	ð"õ	Sð 
×ÑØØÐ FÐGð ó öIó	ðIð. 
×Ñ�+¨Ð(8ÐÓ9ôó :ðð
 
×Ñ�' _Ð6pÐ$qÐÓrôQó sðQð 
×Ñ�(Ð&6Ð8VÐ%WÐÓXôMó YòMr$   