o
    ~ri                     @   sd  d dl Z d dlZd dlmZmZ d dlZd dlmZmZ d dl	m
Z
mZmZ d dlmZ d dlmZ d dlmZmZ d dlmZ d d	lmZ d d
lmZ d dlmZ d dlmZmZ d dlm Z m!Z!m"Z" d dl#m$Z$ d dl%m&Z& d dl'm(Z(m)Z) d dl*m+Z+ d dl,m-Z- d dl.m/Z/ d dl0m1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m7Z7m8Z8 d dl9m:Z:m;Z; d dl<m=Z=m>Z> d dl?m@Z@ d dlAmBZBmCZC edee e"ddZDdeEd dfd!d"ZFeDjGd#d$	dCd%eeeE ejHd&eFd#d#d'f d dfd(d)ZIeDJ e eDjJed*e eDjJe:d*e; eDjJe=d*e> eDjJd+d,e7 eDjJd+d,e8 eDjJd#d-e( eDjJd#d-e) eDjKed.d/ eDjKed0d/ eDjKed1d/ eDjKed2d/ eDjKed3d/ eDjKed4d/ eDjKe&d5d/ eDjKe+d6d/ eDjKe-d7d/ eDjKe1d8d/ eDjKe/d9d#d: eDjKe3d;d/ eDjKe5d<d/ eDjKe@d=d/ eDjKe$d>d/ eDjKe!d?d/ d@dA ZLeMdBkreL  dS dS )D    N)	AnnotatedOptional)__version__	constants)check_cli_updatefallback_typer_group_factorytyper_factory)format_known_exception)auth_cli)buckets_clisync)	cache_cli)collections_cli)datasets_cli)discussions_cli)DOWNLOAD_EXAMPLESdownload)$dispatch_unknown_top_level_extensionextensions_cli"list_installed_extensions_for_help)ie_cli)jobs_cli)lfs_enable_largefileslfs_multipart_upload)
models_cli)
papers_cli)repo_files_cli)	repos_cli)
skills_cli)
spaces_cli)envversion)UPLOAD_EXAMPLESupload)UPLOAD_LARGE_FOLDER_EXAMPLESupload_large_folder)webhooks_cli)ANSIloggingzHugging Face Hub CLI)extra_commands_provider)helpclsvaluereturnc                 C   s   | r
t t t d S N)printr   typerExit)r,    r2   d/lsinfo/ai/hellotax_ai/llm_service/venv_embed/lib/python3.10/site-packages/huggingface_hub/cli/hf.py_version_callback=   s   r4   T)invoke_without_commandr!   z	--version)callbackis_eagerhiddenc                 C   s   d S r.   r2   )r!   r2   r2   r3   app_callbackC   s   r9   )examplesr*   )topic)r8   auth)namebucketscachecollectionsdatasetsdiscussionsjobsmodelspaperszrepos | repoz
repo-files)r=   r8   skillsspaceswebhooks	endpointszextensions | extc               
   C   s   t jst  td zt  W d S  tyB }  z%t| }|r=td| t	j
d t jr1t  nttd t	d  d } ~ ww )Nhuggingface_hubzError: )filez:Set HF_DEBUG=1 as environment variable for full traceback.   )r   HF_DEBUGr(   set_verbosity_infor   app	Exceptionr	   r/   sysstderr	traceback	print_excr'   grayexit)emessager2   r2   r3   maink   s    

rY   __main__r.   )NrQ   rS   typingr   r   r0   rJ   r   r   huggingface_hub.cli._cli_utilsr   r   r   huggingface_hub.cli._errorsr	   huggingface_hub.cli.authr
   huggingface_hub.cli.bucketsr   r   huggingface_hub.cli.cacher   huggingface_hub.cli.collectionsr   huggingface_hub.cli.datasetsr   huggingface_hub.cli.discussionsr   huggingface_hub.cli.downloadr   r   huggingface_hub.cli.extensionsr   r   r   'huggingface_hub.cli.inference_endpointsr   huggingface_hub.cli.jobsr   huggingface_hub.cli.lfsr   r   huggingface_hub.cli.modelsr   huggingface_hub.cli.papersr   huggingface_hub.cli.repo_filesr   huggingface_hub.cli.reposr   huggingface_hub.cli.skillsr   huggingface_hub.cli.spacesr   huggingface_hub.cli.systemr    r!   huggingface_hub.cli.uploadr"   r#   'huggingface_hub.cli.upload_large_folderr$   r%   huggingface_hub.cli.webhooksr&   huggingface_hub.utilsr'   r(   rO   boolr4   r6   Optionr9   command	add_typerrY   __name__r2   r2   r2   r3   <module>   s   	
	

