
    h                     f    S SK r S SKJrJr  S SKJr  S SKJrJrJ	r	  SSK
Jr  \ " S S5      5       rg)	    N)	dataclassfield)Path)AnyOptionalUnion   )configc                   p  ^  \ rS rSr% SrSr\\\\	4      \
S'   Sr\\
S'   Sr\\
S'   Sr\\
S'   Sr\\   \
S	'   Sr\\   \
S
'   Sr\\
S'   Sr\\
S'   Sr\\
S'   Sr\\
S'   Sr\\
S'   Sr\\   \
S'   Sr\\
S'   Sr\\\\4      \
S'   \" \S9r\\\4   \
S'   Sr\\   \
S'   Sr\\
S'   SS jr U 4S jr!Sr"U =r#$ )DownloadConfig	   a  Configuration for our cached path manager.

Attributes:
    cache_dir (`str` or `Path`, *optional*):
        Specify a cache directory to save the file to (overwrite the
        default cache dir).
    force_download (`bool`, defaults to `False`):
        If `True`, re-download the file even if it's already cached in
        the cache dir.
    resume_download (`bool`, defaults to `False`):
        If `True`, resume the download if an incompletely received file is
        found.
    proxies (`dict`, *optional*):
    user_agent (`str`, *optional*):
        Optional string or dict that will be appended to the user-agent on remote
        requests.
    extract_compressed_file (`bool`, defaults to `False`):
        If `True` and the path point to a zip or tar file,
        extract the compressed file in a folder along the archive.
    force_extract (`bool`, defaults to `False`):
        If `True` when `extract_compressed_file` is `True` and the archive
        was already extracted, re-extract the archive and override the folder where it was extracted.
    delete_extracted (`bool`, defaults to `False`):
        Whether to delete (or keep) the extracted files.
    extract_on_the_fly (`bool`, defaults to `False`):
        If `True`, extract compressed files while they are being read.
    use_etag (`bool`, defaults to `True`):
        Whether to use the ETag HTTP response header to validate the cached files.
    num_proc (`int`, *optional*):
        The number of processes to launch to download the files in parallel.
    max_retries (`int`, default to `1`):
        The number of times to retry an HTTP request if it fails.
    token (`str` or `bool`, *optional*):
        Optional string or boolean to use as Bearer token
        for remote files on the Datasets Hub. If `True`, or not specified, will get token from `~/.huggingface`.
    storage_options (`dict`, *optional*):
        Key/value pairs to be passed on to the dataset file-system backend, if any.
    download_desc (`str`, *optional*):
        A description to be displayed alongside with the progress bar while downloading the files.
    disable_tqdm (`bool`, defaults to `False`):
        Whether to disable the individual files download progress bar
N	cache_dirFforce_downloadresume_downloadlocal_files_onlyproxies
user_agentextract_compressed_fileforce_extractdelete_extractedextract_on_the_flyTuse_etagnum_proc   max_retriestoken)default_factorystorage_optionsdownload_descdisable_tqdmc                     U R                   " S0 U R                  R                  5        VVs0 s H  u  pU[        R                  " U5      _M     snnD6$ s  snnf )N )	__class____dict__itemscopydeepcopy)selfkvs      [/home/james-whalen/.local/lib/python3.13/site-packages/datasets/download/download_config.pyr&   DownloadConfig.copyH   sE    ~~XATATAV WAVDMM!$4!4AV WXX Ws   #Ac                   > US:X  ak  [        U SS 5      b]  SU R                  ;  a!  [        R                  US.U R                  S'   O,[        U R                  S   SS 5      c  X R                  S   S'   [        TU ]  X5        g )Nr   r   hf)endpointr   )getattrr   r
   HF_ENDPOINTsuper__setattr__)r(   namevaluer#   s      r+   r3   DownloadConfig.__setattr__K   s}    7?wt->EQ4///:@:L:LW\-]$$T*--d3WdCK6;$$T*73D(    r"   )returnr   )$__name__
__module____qualname____firstlineno____doc__r   r   r   strr   __annotations__r   boolr   r   r   dictr   r   r   r   r   r   r   intr   r   r   r   r   r   r    r&   r3   __static_attributes____classcell__)r#   s   @r+   r   r   	   s   )V -1Ixc4i()0 ND !OT!"d""GXd^" $J$$)T)M4"d"$$Hd"Hhsm"K(,E8E#t)$%,&+D&AOT#s(^A#'M8C='L$Y) )r7   r   )r&   dataclassesr   r   pathlibr   typingr   r   r    r
   r   r"   r7   r+   <module>rI      s3     (  ' '  G) G) G)r7   