Open-Source Wikis

/

uv

/

Crates

/

uv-extract

astral-sh/uv

uv-extract

crates/uv-extract/ extracts archives — wheels (zip), source distributions (.tar.gz/.tar.bz2/.tar.xz/.tar.zst/.zip.zst) — with concurrent hashing.

Purpose

Most archive operations in uv need to compute hashes while extracting, both for cache content-addressing and for the resolver's hash strategy. This crate provides streaming extraction that hashes on the fly.

Key abstractions

  • Hasher — wraps a hash algorithm and a digest in progress.
  • HashReader — wraps an AsyncRead to feed bytes into a Hasher while passing them through.
  • Functions that extract a .whl or sdist to a target directory while populating a hash.

See also

  • uv-pypi-types for HashAlgorithm/HashDigest.
  • uv-cache — extraction is the producer; cache is the consumer.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

uv-extract – uv wiki | Factory