+
    ,j
                         ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHt	 ^ RIH
t ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt R R ltR R ltR R lt
R R ltR R ltRR R lltR R ltR# )    )PathLike)OptionalTuple)Client)download_bytes)download_to_path)download_to_writer)download_and_extract)extract)extract_tar_bz2)fetch_raw_package_file_from_urlc                    V ^8  d   QhR\         \        ,          R\         \        ,          R\        \        \        3,          /#    pathdestreturnr   strr   bytes)formats   "Blib/python3.14/site-packages/rattler/package_streaming/__init__.py__annotate__r      s2     " "(3- "x} "ue|9L "    c                    \        W4      # )z Extract a file to a destination.)
py_extractr   r   s   &&r   r   r      s    d!!r   c                    V ^8  d   QhR\         \        ,          R\         \        ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r      s2     * *(3- *x} *ue|AT *r   c                    \        W4      # )z(Extract a tar.bz2 file to a destination.)py_extract_tar_bz2r   s   &&r   r   r      s    d))r   c                V    V ^8  d   QhR\         R\        R\        \        ,          RR/# )r   clienturlr   r   N)r   r   r   )r   s   "r   r   r      s,     9 96 9 98C= 9T 9r   c                N   "   \        V P                  W4      G Rj  xL
  R#  L5i)z
Stream a package archive from a URL to a destination path.

This method does not buffer the whole response in Python memory. Response
bytes are fetched incrementally and written directly to `dest`.
N)py_download_to_path_client)r"   r#   r   s   &&&r   r   r      s      fnnc
888   %#%c                <    V ^8  d   QhR\         R\        R\        /# )r   r"   r#   r   r   r   r   )r   s   "r   r   r   "   s!     8 8 8c 8e 8r   c                J   "   \        V P                  V4      G Rj  xL
 #  L5i)z
Download a package archive from a URL into memory.

This is a convenience API. The full response body is buffered before the
`bytes` object is returned, so peak memory use scales with the artifact
size.
N)py_download_bytesr&   )r"   r#   s   &&r   r   r   "   s      #6>>37777   #!#c                @    V ^8  d   QhR\         R\        R\        RR/# )r   r"   r#   writerr   N)r   r   object)r   s   "r   r   r   -   s(     = =V =# =v =$ =r   c                N   "   \        V P                  W4      G Rj  xL
  R#  L5i)a  
Stream a package archive from a URL into a Python writer.

The response body is fetched incrementally. For each chunk, `writer.write`
is called with a `bytes` object. The writer must provide a synchronous
`write(bytes)` method, for example `io.BytesIO()` or an open binary file.
N)py_download_to_writerr&   )r"   r#   r.   s   &&&r   r	   r	   -   s       
<<<r'   Nc                    V ^8  d   QhR\         R\        R\        \        ,          R\        \        ,          R\
        \        \        3,          /# )r   r"   r#   r   expected_shar   )r   r   r   r   r   r   )r   s   "r   r   r   8   sL     R RRR$,SMRAI%R
5%<Rr   c                L   "   \        V P                  WV4      G Rj  xL
 #  L5i)z;Download a file from a URL and extract it to a destination.N)py_download_and_extractr&   )r"   r#   r   r3   s   &&&&r   r
   r
   8   s       )LQQQQs   $"$c                H    V ^8  d   QhR\         R\        R\        R\        /# )r   r"   r#   r   r   r)   )r   s   "r   r   r   ?   s/     O O& Os O# ORW Or   c                J   "   \        V P                  W4      G Rj  xL
 #  L5i)zZ
Fetch raw bytes for a file inside a remote `.conda` package using sparse
range requests.
N)"py_fetch_raw_package_file_from_urlr&   )r"   r#   r   s   &&&r   r   r   ?   s     
 4FNNCNNNNr,   )N)osr   typingr   r   rattler.networking.clientr   rattler.rattlerr   r+   r   r%   r	   r1   r
   r5   r   r   r   r    r   r8    r   r   <module>r>      sH     " , ? C G K 1 A a"
*
98=ROr   