
    Pi                        d Z ddlmZ ddlmZmZ ddgZ eh d          Z eh d          Z	h dh d	h d
dZ
ddhh dddhdZddZdS )zT
Python package manager CLI handler for Dippy.

Handles pip, pip3, and uv commands.
    )annotations)ClassificationHandlerContextpippip3>   -hhashhelplistshowcachecheckdebugindexconfigfreezesearchinspectversion-V--help	--version>   lockwheelremoveinstalldownload	uninstall>   dirinfor   >   getr   r   >   r   r   r   r   )r   r   r   purger   >   seteditunsetr   r   ctxr   returnr   c                Z   | j         }t          |          dk     r|r|d         nd}t          d|          S |d         }|d         }t          |          dk    r
|dd         ng }| d| }|d	k    rr|dk    rB|r/|d         }t          |          dk    r
|dd         ng }| d
| }n;t          d|          S |dv rt          d|          S |dv rt          d|          S |t          v rE|rC|D ]@}|                    d          s)|t          |         v rt          d| d|           c S  nA|t
          v rE|rC|D ]@}|                    d          s)|t
          |         v rt          d| d|           c S  nA|t          v rt          d|          S t          d|          S )zClassify pip command.   r   r   ask)description   N uvz pip >   addrunr   synctoolr   >   r
   r   r   r   r   allow-)tokenslenr   SAFE_SUBCOMMANDS
startswithUNSAFE_SUBCOMMANDSSAFE_ACTIONS)r&   r5   baseactionrestdesctokens          ./root/projects/gits/Dippy/src/dippy/cli/pip.pyclassifyrA   ?   s]   ZF
6{{Q"-vayye6666!9DAYFVq6!""::bDVD t||U?? ?a#&t99q==tABBxxb--V--%e>>>>GGG!4    GGG!'t<<<< !!!d! 	 	E##C(( ,V444)'$?P?P?P?PQQQQQQ
 #### 	 	E##C(( .v666)%=N=Nu=N=NOOOOOO
 g48888%T2222    N)r&   r   r'   r   )__doc__
__future__r   	dippy.clir   r   COMMANDS	frozensetr:   UNSAFE_ACTIONSr7   r9   rA    rB   r@   <module>rJ      s     # " " " " " 4 4 4 4 4 4 4 46?y   .   	 	 %$$&&&...	   x &&&{#  .3 .3 .3 .3 .3 .3rB   