Skip to content
ocx
install

LoginResult, LogoutResult

LoginResultclassdataclass#

Re-exported from ocx_sdk._resultsView source
class LoginResult(registry: str, username: str)

ocx login — which registry, as whom.

registryattributeinstance attribute#

registry: str

usernameattributeinstance attribute#

username: str

from_jsonmethodclassmethod#

def from_json(raw: str) -> LoginResult

Parse ocx --format json login output.

LogoutResultclassdataclass#

Re-exported from ocx_sdk._resultsView source
class LogoutResult(registry: str)

ocx logout — which registry. Always succeeds, even if nothing was stored.

registryattributeinstance attribute#

registry: str

from_jsonmethodclassmethod#

def from_json(raw: str) -> LogoutResult

Parse ocx --format json logout output.