Skip to content

katana_public_api_client.api_wrapper._namespace

katana_public_api_client.api_wrapper._namespace

Lazy namespace that exposes :class:Resource instances by name.

Classes

ApiNamespace(client)

Dynamic namespace providing client.api.<resource> access.

Resources are created lazily on first attribute access and cached on the instance for subsequent calls. Tab-completion is supported via :meth:__dir__.

Source code in katana_public_api_client/api_wrapper/_namespace.py
def __init__(self, client: AuthenticatedClient) -> None:
    self._client = client