Session
Module: session
Description
Section titled “Description”Manages persistent session state for containerio.
Reads session data from .containerio/session.json on init
and provides properties to access and update session fields.
Session.auth_method()
Section titled “Session.auth_method()”auth_method(self) -> Optional[str]The Azure auth method (e.g. ‘client-credentials’).
Session.env()
Section titled “Session.env()”env(self) -> Optional[str]The storage environment (e.g. ‘staging’, ‘prod’).
Session.container()
Section titled “Session.container()”container(self) -> Optional[str]The Azure container name (e.g. ‘raw-data’).
Session.is_active()
Section titled “Session.is_active()”is_active(self) -> boolWhether a session has any data.
Session.update()
Section titled “Session.update()”update(self, auth_method: Optional[str] = None, env: Optional[str] = None, container: Optional[str] = None) -> NoneUpdate 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. |
Session.clear()
Section titled “Session.clear()”clear(self) -> NoneRemove the session file and reset state.
