U
    kufvV                  %   @  s  d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl	m
Z
 ddl	mZ erldd	lmZ dd
lmZ ddddZe ZeZd^dddddddddZd_dddddddddZd`dddddddddZdadddddddddZdbdddddddd d!Zdcdddddddd"d#Zdddddddddd$d%Zdedddddddd&d'Zddd(d)Zddd*d+Zddd,d-Zddd.d/Zddd0d1Zddd2d3Z dfdddddddd4d5Z!dgdddddddd6d7Z"dhdddddd8dd9d:Z#didddddd8dd;d<Z$djdddddd8dd=d>Z%dkdddddd8dd?d@Z&dldddddd8ddAdBZ'dmdddddd8ddCdDZ(dndddddd8ddEdFZ)dodddddd8ddGdHZ*d8ddIdJZ+d8ddKdLZ,d8ddMdNZ-d8ddOdPZ.d8ddQdRZ/d8ddSdTZ0dpdddddd8ddUdVZ1dqdddddd8ddWdXZ2dYdZd[d\d]ddd!d%d'd)d+d-d/d1d3d5ddd#d7d:d>dDdFdHdJdLdNdPdRdTdVd<d@dBdXg%Z3dS )rz
Utilities for determining application-specific dirs. See <https://github.com/platformdirs/platformdirs> for details and
usage.
    )annotationsN)TYPE_CHECKING   )PlatformDirsABC)__version__)__version_tuple__)Path)Literalztype[PlatformDirsABC])returnc                  C  s   t jdkrddlm}  n$t jdkr0ddlm}  nddlm}  t	ddkrt	d	d
krt	dslt	drp| S ddl
m} | d k	rddl
m} |S | S )Nwin32r   )Windowsdarwin)MacOS)UnixZANDROID_DATAz/dataZANDROID_ROOTz/systemSHELLPREFIX)_android_folder)Android)sysplatformZplatformdirs.windowsr   Zplatformdirs.macosr   Zplatformdirs.unixr   osgetenvZplatformdirs.androidr   r   )ZResultr   r    r   9/tmp/pip-unpacked-wheel-kvdkdwa_/platformdirs/__init__.py_set_platform_dir_class   s    


r   Fz
str | Nonezstr | None | Literal[False]boolstr)appname	appauthorversionroamingensure_existsr
   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data directory tied to the user
    r   r   r   r    r!   )PlatformDirsuser_data_dirr"   r   r   r   r$   /   s    r$   )r   r   r   	multipathr!   r
   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data directory shared by users
    r   r   r   r%   r!   )r#   site_data_dirr&   r   r   r   r'   G   s    r'   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config directory tied to the user
    r"   )r#   user_config_dirr"   r   r   r   r(   _   s    r(   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config directory shared by the users
    r&   )r#   site_config_dirr&   r   r   r   r)   w   s    r)   T)r   r   r   opinionr!   r
   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: cache directory tied to the user
    r   r   r   r*   r!   )r#   user_cache_dirr+   r   r   r   r,      s    r,   c                 C  s   t | ||||djS a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: cache directory tied to the user
    r+   )r#   site_cache_dirr+   r   r   r   r.      s    r.   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: state directory tied to the user
    r"   )r#   user_state_dirr"   r   r   r   r/      s    r/   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: log directory tied to the user
    r+   )r#   user_log_dirr+   r   r   r   r0      s    r0   c                   C  s   t  jS )z.:returns: documents directory tied to the user)r#   user_documents_dirr   r   r   r   r1      s    r1   c                   C  s   t  jS )z.:returns: downloads directory tied to the user)r#   user_downloads_dirr   r   r   r   r2      s    r2   c                   C  s   t  jS )z-:returns: pictures directory tied to the user)r#   user_pictures_dirr   r   r   r   r3      s    r3   c                   C  s   t  jS )z+:returns: videos directory tied to the user)r#   user_videos_dirr   r   r   r   r4      s    r4   c                   C  s   t  jS )z*:returns: music directory tied to the user)r#   user_music_dirr   r   r   r   r5     s    r5   c                   C  s   t  jS )z,:returns: desktop directory tied to the user)r#   user_desktop_dirr   r   r   r   r6     s    r6   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime directory tied to the user
    r+   )r#   user_runtime_dirr+   r   r   r   r7     s    r7   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime directory shared by users
    r+   )r#   site_runtime_dirr+   r   r   r   r8   %  s    r8   r   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data path tied to the user
    r"   )r#   user_data_pathr"   r   r   r   r9   =  s    r9   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data path shared by users
    r&   )r#   site_data_pathr&   r   r   r   r:   U  s    r:   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config path tied to the user
    r"   )r#   user_config_pathr"   r   r   r   r;   m  s    r;   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config path shared by the users
    r&   )r#   site_config_pathr&   r   r   r   r<     s    r<   c                 C  s   t | ||||djS r-   )r#   site_cache_pathr+   r   r   r   r=     s    r=   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: cache path tied to the user
    r+   )r#   user_cache_pathr+   r   r   r   r>     s    r>   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: state path tied to the user
    r"   )r#   user_state_pathr"   r   r   r   r?     s    r?   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: log path tied to the user
    r+   )r#   user_log_pathr+   r   r   r   r@     s    r@   c                   C  s   t  jS )z):returns: documents path tied to the user)r#   user_documents_pathr   r   r   r   rA     s    rA   c                   C  s   t  jS )z):returns: downloads path tied to the user)r#   user_downloads_pathr   r   r   r   rB     s    rB   c                   C  s   t  jS )z(:returns: pictures path tied to the user)r#   user_pictures_pathr   r   r   r   rC     s    rC   c                   C  s   t  jS )z&:returns: videos path tied to the user)r#   user_videos_pathr   r   r   r   rD     s    rD   c                   C  s   t  jS )z%:returns: music path tied to the user)r#   user_music_pathr   r   r   r   rE     s    rE   c                   C  s   t  jS )z':returns: desktop path tied to the user)r#   user_desktop_pathr   r   r   r   rF     s    rF   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime path tied to the user
    r+   )r#   user_runtime_pathr+   r   r   r   rG     s    rG   c                 C  s   t | ||||djS )a  
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime path shared by users
    r+   )r#   site_runtime_pathr+   r   r   r   rH   3  s    rH   r   __version_info__r#   AppDirsr   )NNNFF)NNNFF)NNNFF)NNNFF)NNNTF)NNNTF)NNNFF)NNNTF)NNNTF)NNNTF)NNNFF)NNNFF)NNNFF)NNNFF)NNNTF)NNNTF)NNNFF)NNNTF)NNNTF)NNNTF)4__doc__
__future__r   r   r   typingr   apir   r   r   r   rI   pathlibr   r	   r   r#   rJ   r$   r'   r(   r)   r,   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   __all__r   r   r   r   <module>   sn                                                                                                      