cadrumo.application.user_profile.profile_read_ports module

Application-owned profile read capabilities.

Calculation services consume a small, path-keyed profile projection. The projection is deliberately a capability rather than a repository lookup: the encrypted record/session implementation is composed by an outer adapter and the application only sees the stable mapping and absence semantics.

class ProfilePathValuesReadPort(*args, **kwargs)[source]

Bases: Protocol

Read the canonical path-keyed profile projection for one bucket.

load_path_values(*, bucket_id)[source]

Return projected profile values, or None when the profile is absent.

Return type:

Mapping[str, str] | None

Parameters:

bucket_id (str)

class ProfileReadPorts(path_values)[source]

Bases: object

Required profile-read capabilities for a composed application path.

Parameters:

path_values (ProfilePathValuesReadPort)

path_values: ProfilePathValuesReadPort