Debian Codegraph @

docs/lazy_wheel.md

raw
1 # lazy_wheel module
2
3 `lazy_wheel` is derived from pip's wheel download code. It is really a seekable
4 file-like based on HTTP range requests, backed by a sparse temporary file. Each
5 `read()` issues one or more HTTP range requests to the URL depending on how much
6 of the file has already been downloaded, while read()\`s from already-fetched
7 portions of the file are fulfilled by the backing file.
8
9 ZIP archives have a directory at the end of the file giving the offset to each
10 compressed member. We fetch the directory, and then the portion of the file
11 containing the member or members of interest, for a maximum of 3 requests to
12 retrieve any individual file in the archive.
13
14 ```{eval-rst}
15 .. automodule:: conda_package_streaming.lazy_wheel
16 :members:
17 :undoc-members:
18 :show-inheritance:
19 ```