+
     h  c                   s    ^ RI t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
Ht ^ RIHtHt ^ RIHtHt ]P$                  ! ]4      t ! R R	]4      tR
 R ltR# )i    N)Values)List)Command)ERRORSUCCESS)FAVORITE_HASHSTRONG_HASHES)read_chunkswrite_outputc                   sP   a  ] tR t^t o RtRtRtV 3R lR ltV 3R lR ltRt	V t
R	# )
HashCommandz}
Compute a hash of a local package archive.

These can be used with --hash in a requirements file to do repeatable
installs.
z%prog [options] <file> ...Tc                s   < V ^8  d   QhRR/# )   returnN format__classdict__   "@/usr/lib/python3.14/site-packages/pip/_internal/commands/hash.py__annotate__HashCommand.__annotate__   s     : :T :    c                s    V P                   P                  R RR\        R\        RP	                  RP                  \        4      4      R7       V P                  P                  ^ V P                   4       R# )z-az--algorithm	algorithmZstorez$The hash algorithm to use: one of {}z, )ZdestZchoicesZactionZdefaultZhelpN)Zcmd_optsZ
add_optionr   r   r   ZjoinparserZinsert_option_group)selfs   &r   add_optionsZHashCommand.add_options   s_      !!7>>		-( 	! 
	
 	''4==9r   c                s<   < V ^8  d   QhRS[ RS[S[,          RS[/# )r
   optionsargsr   )r    r   strZintr   r   r   r   r   (   s&     
 
6 
c 
s 
r   c           
     s    V'       g0   V P                   P                  \        P                  4       \        # VP
                  pV F  p\        R WC\        WC4      4       K  	  \        # )z%s:
--hash=%s:%s)	r   Zprint_usagesysZstderrr   r   r   _hash_of_filer   )r   r   r   r   paths   &&&  r   runZHashCommand.run(   sP    KK##CJJ/L%%	D#TmD6T  r   r   N)__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__ZusageZignore_require_venvr   r   Z__static_attributes__Z__classdictcell__)r   s   @r   r	   r	      s+      )E: :
 
r   r	   c                s<    V ^8  d   QhR\         R\         R\         /# )r
   r   r   r   )r   )r   s   "r   r   r   5   s!         r   c                s   \        V R4      ;_uu_ 4       p\        P                  ! V4      p\        V4       F  pVP	                  V4       K  	  RRR4       VP                  4       #   + '       g   i     XP                  4       # ; i)z!Return the hash digest of a file.ZrbN)ZopenhashlibZnewr   ZupdateZ	hexdigest)r   r   ZarchiveZhashZchunks   &&   r   r   r   5   sf    	dD		W{{9% )EKK * 
 >>	 
	 >>s   :A''B	)r!   Zloggingr   Zoptparser    Ztypingr   Zpip._internal.cli.base_commandr   Zpip._internal.cli.status_codesr   r   Zpip._internal.utils.hashesr   r   Zpip._internal.utils.miscr   r   Z	getLoggerr    Zloggerr	   r   r   r   r   <module>r"      sB      
   2 9 C >			8	$#' #Lr   