cayu.sessions.access
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
SessionAccessRule
Section titled “SessionAccessRule”from cayu import SessionAccessRuleConjunction of selectors; unrestricted access must be explicit.
Decorators: @dataclass(frozen=True, slots=True).
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
selectors |
tuple[SessionAccessSelector, ...] |
() |
allow_all |
bool |
False |
matches (method)
Section titled “matches (method)”SessionAccessRule.matches(labels: Mapping[str, str]) -> boolRelease source · Runtime guarantees · Capability guides
SessionAccessScope
Section titled “SessionAccessScope”from cayu import SessionAccessScopeApplication policy expressed as bounded alternatives for each action.
Empty action grants deny. All keys used by any rule are protected from ordinary label updates, in addition to explicitly protected keys.
Decorators: @dataclass(frozen=True, slots=True).
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
read |
tuple[SessionAccessRule, ...] |
() |
create |
tuple[SessionAccessRule, ...] |
() |
modify |
tuple[SessionAccessRule, ...] |
() |
delete |
tuple[SessionAccessRule, ...] |
() |
execute |
tuple[SessionAccessRule, ...] |
() |
inspect_state |
tuple[SessionAccessRule, ...] |
() |
update_labels |
tuple[SessionAccessRule, ...] |
() |
relabel |
tuple[SessionAccessRule, ...] |
() |
protected_label_keys |
tuple[str, ...] |
() |
matches (method)
Section titled “matches (method)”SessionAccessScope.matches(action: Action, labels: Mapping[str, str]) -> boolprotected_keys (method)
Section titled “protected_keys (method)”SessionAccessScope.protected_keys() -> frozenset[str]Release source · Runtime guarantees · Capability guides
SessionAccessSelector
Section titled “SessionAccessSelector”from cayu import SessionAccessSelectorImmutable label requirement using the existing session-query semantics.
Decorators: @dataclass(frozen=True, slots=True).
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
key |
str |
required |
operator |
LabelSelectorOperator |
LabelSelectorOperator.IN |
values |
tuple[str, ...] |
() |
matches (method)
Section titled “matches (method)”SessionAccessSelector.matches(labels: Mapping[str, str]) -> bool