Skip to content

Session

Module: session

Manages persistent session state for containerio.

Reads session data from .containerio/session.json on init and provides properties to access and update session fields.

auth_method(self) -> Optional[str]

The Azure auth method (e.g. ‘client-credentials’).

env(self) -> Optional[str]

The storage environment (e.g. ‘staging’, ‘prod’).

container(self) -> Optional[str]

The Azure container name (e.g. ‘raw-data’).

is_active(self) -> bool

Whether a session has any data.

update(self, auth_method: Optional[str] = None, env: Optional[str] = None, container: Optional[str] = None) -> None

Update session fields and persist to disk.

Argument Type Description
auth_method Optional[str] Azure auth method.
env Optional[str] Storage environment.
container Optional[str] Azure container name.
clear(self) -> None

Remove the session file and reset state.