o
     
j                     @   sv  d dl Z d dlZd dl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l/m0Z0 d dl1m2Z2 d dl3m4Z4 d dl5m6Z6m7Z7m8Z8 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$	dDd%eeEdB ejHd&d'eFd#d#d(f d dfd)d*ZIeDJ e eDjJed+e eDjJe:d+e; eDjJe=d+e> eDjJd,d-e6 eDjJd,d-e7 eDjJd,d-e8 eDjJd#d.e' eDjJd#d.e( eDjKed/d0 eDjKed1d0 eDjKed2d0 eDjKed3d0 eDjKed4d0 eDjKed5d0 eDjKe%d6d0 eDjKe*d7d0 eDjKe,d8d0 eDjKe0d9d0 eDjKe.d:d#d; eDjKe2d<d0 eDjKe4d=d0 eDjKe@d>d0 eDjKe#d?d0 eDjKe d@d0 dAdB ZLeMdCkreL  dS dS )E    N)	Annotated)__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update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   I/home/kuhnn/.local/lib/python3.10/site-packages/huggingface_hub/cli/hf.py_version_callback=   s   r4   T)invoke_without_commandr!   z-vz	--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   mainl   s    

rY   __main__r.   )NrQ   rS   typingr   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    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   	
	

