venvstacks.stacks.EnvironmentLock

class venvstacks.stacks.EnvironmentLock(requirements_path: Path, versioned: bool)

Layered environment dependency locking management.

Methods

get_deployed_name(env_name)

Report layer name with lock version (if any) appended.

load_valid_metadata(requirements_hash)

Loads last locked metadata only if the requirements hash matches.

update_lock_metadata()

Update the recorded lock metadata for this environment lock.

Attributes

is_locked

True if layer requirements have been locked.

last_locked

Date and time when the layer requirements were last locked.

lock_version

Last recorded version of the layer requirements.

locked_at

ISO-formated UTC string reporting the last locked date/time.

requirements_hash

Hash of the last locked set of layer requirements.

requirements_path

versioned

lock_metadata_path