
    &g$#                    x    S r SSKJr  SSKrSSKJrJr  SSKJr  SSK	J
r
  \
(       a  SSK	JrJr   " S S	\5      rg)
z	Base API.    )annotationsN)ABCabstractmethod)Path)TYPE_CHECKING)IteratorLiteralc                     \ rS rSrSr       S0               S1S jjrS2S jrS3S jr\\	S4S j5       5       r
\\	S4S j5       5       r\\	S4S	 j5       5       r\\	S4S
 j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\\	S4S j5       5       r\S5S j5       r\S5S j5       r\S5S j5       r\S5S j5       r\S5S j5       r\S5S j5       r\S5S j5       r \S5S j5       r!\S5S j5       r"\S5S  j5       r#\S5S! j5       r$\S5S" j5       r%\S5S# j5       r&\S5S$ j5       r'\S5S% j5       r(\S5S& j5       r)S6S' jr*S6S( jr+S6S) jr,S6S* jr-S7S+ jr.S7S, jr/S7S- jr0S7S. jr1S/r2g)8PlatformDirsABC   z-Abstract base class for platform directories.Nc                `    Xl         X l         X0l         X@l         XPl         X`l        Xpl        g)a  
Create a new platform directory.

:param appname: See `appname`.
:param appauthor: See `appauthor`.
:param version: See `version`.
:param roaming: See `roaming`.
:param multipath: See `multipath`.
:param opinion: See `opinion`.
:param ensure_exists: See `ensure_exists`.

N)appname	appauthorversionroaming	multipathopinionensure_exists)selfr   r   r   r   r   r   r   s           U/home/matz/Project1/venv/lib/python3.13/site-packages/pip/_vendor/platformdirs/api.py__init__PlatformDirsABC.__init__   sI    , "	 	 	 #	 *	    c                <   [        USS  5      nU R                  (       aG  UR                  U R                  5        U R                  (       a  UR                  U R                  5        [        R
                  R                  " US   /UQ76 nU R                  U5        U$ )N   r   )listr   appendr   ospathjoin_optionally_create_directory)r   baseparamsr   s       r   _append_app_name_and_version,PlatformDirsABC._append_app_name_and_versionP   sm    d12h<<MM$,,'||dll+ww||DG-f-))$/r   c                Z    U R                   (       a  [        U5      R                  SSS9  g g )NT)parentsexist_ok)r   r   mkdirr   r   s     r   r!   ,PlatformDirsABC._optionally_create_directoryZ   s'    JTD9 r   c                    g)z(:return: data directory tied to the userN r   s    r   user_data_dirPlatformDirsABC.user_data_dir^       r   c                    g)z':return: data directory shared by usersNr-   r.   s    r   site_data_dirPlatformDirsABC.site_data_dirc   r1   r   c                    g)z*:return: config directory tied to the userNr-   r.   s    r   user_config_dirPlatformDirsABC.user_config_dirh   r1   r   c                    g)z-:return: config directory shared by the usersNr-   r.   s    r   site_config_dirPlatformDirsABC.site_config_dirm   r1   r   c                    g)z):return: cache directory tied to the userNr-   r.   s    r   user_cache_dirPlatformDirsABC.user_cache_dirr   r1   r   c                    g)z(:return: cache directory shared by usersNr-   r.   s    r   site_cache_dirPlatformDirsABC.site_cache_dirw   r1   r   c                    g)z):return: state directory tied to the userNr-   r.   s    r   user_state_dirPlatformDirsABC.user_state_dir|   r1   r   c                    g)z':return: log directory tied to the userNr-   r.   s    r   user_log_dirPlatformDirsABC.user_log_dir   r1   r   c                    g)z-:return: documents directory tied to the userNr-   r.   s    r   user_documents_dir"PlatformDirsABC.user_documents_dir   r1   r   c                    g)z-:return: downloads directory tied to the userNr-   r.   s    r   user_downloads_dir"PlatformDirsABC.user_downloads_dir   r1   r   c                    g)z,:return: pictures directory tied to the userNr-   r.   s    r   user_pictures_dir!PlatformDirsABC.user_pictures_dir   r1   r   c                    g)z*:return: videos directory tied to the userNr-   r.   s    r   user_videos_dirPlatformDirsABC.user_videos_dir   r1   r   c                    g)z):return: music directory tied to the userNr-   r.   s    r   user_music_dirPlatformDirsABC.user_music_dir   r1   r   c                    g)z+:return: desktop directory tied to the userNr-   r.   s    r   user_desktop_dir PlatformDirsABC.user_desktop_dir   r1   r   c                    g)z+:return: runtime directory tied to the userNr-   r.   s    r   user_runtime_dir PlatformDirsABC.user_runtime_dir   r1   r   c                    g)z*:return: runtime directory shared by usersNr-   r.   s    r   site_runtime_dir PlatformDirsABC.site_runtime_dir   r1   r   c                ,    [        U R                  5      $ )z#:return: data path tied to the user)r   r/   r.   s    r   user_data_pathPlatformDirsABC.user_data_path        D&&''r   c                ,    [        U R                  5      $ )z":return: data path shared by users)r   r3   r.   s    r   site_data_pathPlatformDirsABC.site_data_path   rb   r   c                ,    [        U R                  5      $ )z%:return: config path tied to the user)r   r6   r.   s    r   user_config_path PlatformDirsABC.user_config_path        D(())r   c                ,    [        U R                  5      $ )z(:return: config path shared by the users)r   r9   r.   s    r   site_config_path PlatformDirsABC.site_config_path   ri   r   c                ,    [        U R                  5      $ )z$:return: cache path tied to the user)r   r<   r.   s    r   user_cache_pathPlatformDirsABC.user_cache_path        D''((r   c                ,    [        U R                  5      $ )z#:return: cache path shared by users)r   r?   r.   s    r   site_cache_pathPlatformDirsABC.site_cache_path   rp   r   c                ,    [        U R                  5      $ )z$:return: state path tied to the user)r   rB   r.   s    r   user_state_pathPlatformDirsABC.user_state_path   rp   r   c                ,    [        U R                  5      $ )z":return: log path tied to the user)r   rE   r.   s    r   user_log_pathPlatformDirsABC.user_log_path   s     D%%&&r   c                ,    [        U R                  5      $ )z*:return: documents a path tied to the user)r   rH   r.   s    r   user_documents_path#PlatformDirsABC.user_documents_path        D++,,r   c                ,    [        U R                  5      $ )z(:return: downloads path tied to the user)r   rK   r.   s    r   user_downloads_path#PlatformDirsABC.user_downloads_path   r}   r   c                ,    [        U R                  5      $ )z':return: pictures path tied to the user)r   rN   r.   s    r   user_pictures_path"PlatformDirsABC.user_pictures_path   s     D**++r   c                ,    [        U R                  5      $ )z%:return: videos path tied to the user)r   rQ   r.   s    r   user_videos_path PlatformDirsABC.user_videos_path   ri   r   c                ,    [        U R                  5      $ )z$:return: music path tied to the user)r   rT   r.   s    r   user_music_pathPlatformDirsABC.user_music_path   rp   r   c                ,    [        U R                  5      $ )z&:return: desktop path tied to the user)r   rW   r.   s    r   user_desktop_path!PlatformDirsABC.user_desktop_path        D))**r   c                ,    [        U R                  5      $ )z&:return: runtime path tied to the user)r   rZ   r.   s    r   user_runtime_path!PlatformDirsABC.user_runtime_path   r   r   c                ,    [        U R                  5      $ )z%:return: runtime path shared by users)r   r]   r.   s    r   site_runtime_path!PlatformDirsABC.site_runtime_path   r   r   c              #  D   #    U R                   v   U R                  v   g7f)z4:yield: all user and site configuration directories.N)r6   r9   r.   s    r   iter_config_dirs PlatformDirsABC.iter_config_dirs   s     """"""    c              #  D   #    U R                   v   U R                  v   g7f)z+:yield: all user and site data directories.N)r/   r3   r.   s    r   iter_data_dirsPlatformDirsABC.iter_data_dirs  s           r   c              #  D   #    U R                   v   U R                  v   g7f)z,:yield: all user and site cache directories.N)r<   r?   r.   s    r   iter_cache_dirsPlatformDirsABC.iter_cache_dirs  s     !!!!!!r   c              #  D   #    U R                   v   U R                  v   g7f)z.:yield: all user and site runtime directories.N)rZ   r]   r.   s    r   iter_runtime_dirs!PlatformDirsABC.iter_runtime_dirs  s     ######r   c              #  T   #    U R                  5        H  n[        U5      v   M     g7f)z.:yield: all user and site configuration paths.N)r   r   r*   s     r   iter_config_paths!PlatformDirsABC.iter_config_paths  s"     ))+Dt* ,   &(c              #  T   #    U R                  5        H  n[        U5      v   M     g7f)z%:yield: all user and site data paths.N)r   r   r*   s     r   iter_data_pathsPlatformDirsABC.iter_data_paths  s"     '')Dt* *r   c              #  T   #    U R                  5        H  n[        U5      v   M     g7f)z&:yield: all user and site cache paths.N)r   r   r*   s     r   iter_cache_paths PlatformDirsABC.iter_cache_paths  s"     ((*Dt* +r   c              #  T   #    U R                  5        H  n[        U5      v   M     g7f)z(:yield: all user and site runtime paths.N)r   r   r*   s     r   iter_runtime_paths"PlatformDirsABC.iter_runtime_paths!  s"     **,Dt* -r   )r   r   r   r   r   r   r   )NNNFFTF)r   
str | Noner   zstr | None | Literal[False]r   r   r   boolr   r   r   r   r   r   returnNone)r"   strr   r   )r   r   r   r   )r   r   )r   r   )r   zIterator[str])r   zIterator[Path])3__name__
__module____qualname____firstlineno____doc__r   r$   r!   propertyr   r/   r3   r6   r9   r<   r?   rB   rE   rH   rK   rN   rQ   rT   rW   rZ   r]   r`   rd   rg   rk   rn   rr   ru   rx   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes__r-   r   r   r   r      s   7 #15"#== /= 	=
 = = = = 
=~: 7  7 6  6 9  9 <  < 8  8 7  7 8  8 6  6 <  < <  < ;  ; 9  9 8  8 :  : :  : 9  9 ( ( ( ( * * * * ) ) ) ) ) ) ' ' - - - - , , * * ) ) + + + + + +#
!
"
$



r   r   )r   
__future__r   r   abcr   r   pathlibr   typingr   r   r	   r   r-   r   r   <module>r      s+     " 	 #   (Vc Vr   