Skip to main content

Module venv

Module venv 

Source

Structs§

CacheMetadata
Cache metadata persisted next to each venv.
VenvLayout
Resolved on-disk layout for one plugin’s venv.
VenvManager
Builds and caches one plugin’s virtualenv.
VenvOwners
The set of plugins that currently claim a shared venv.

Enums§

CacheVerdict
Why a cached venv was rejected. Carried rather than logged-and-dropped so tests can pin the specific rule that fired and operators get a precise reason.
EnsureOutcome
Outcome of a VenvManager::ensure call.

Constants§

DEFAULT_PIP_TIMEOUT_SECS
Default wall-clock bound on one pip install invocation, in seconds.

Functions§

evaluate_cache
Decide whether a cached venv can be reused.
hash_file_or_empty
SHA256 of a file’s bytes, hex-encoded.
manifest_filename_for_class
Per-plugin manifest filename for a fully-qualified class name.