o
    ̳i                     @   sp   d dl Z d dlmZ d dlmZ d dlmZ e eZ		ddddde
de
dB d	edB d
e
dB de
f
ddZdS )    N)registry)parse_competition_handle)EXTRA_CONSOLE_BLOCKFforce_download
output_dirhandlepathr   r   returnc                C   s@   t | }tjd|  di td tj||||d\}}|S )a  Download competition dataset
    Args:
        handle: (string) the competition name
        path: (string) Optional path to a file within a competition dataset
        force_download: (bool) Optional flag to force download a competition dataset, even if it's cached or already
            in output_dir.
        output_dir: (string) Optional output directory for direct download, bypassing the default cache.
    Returns:
        A string requesting the path to the requested competition files.
    zDownloading competition: z ...)extrar   )r   loggerinfoto_urlr   r   competition_resolver)r   r	   r   r   h_ r   I/home/ubuntu/.local/lib/python3.10/site-packages/kagglehub/competition.pycompetition_download
   s   
r   )N)logging	kagglehubr   kagglehub.handler   kagglehub.loggerr   	getLogger__name__r   strboolr   r   r   r   r   <module>   s(    
