__init__.py 714 Bytes
"""Translation package."""

from __future__ import annotations

from typing import Any

__all__ = ["TranslationServiceClient", "create_translation_client", "TranslationService"]


def __getattr__(name: str) -> Any:
    if name in {"TranslationServiceClient", "create_translation_client"}:
        from .client import TranslationServiceClient, create_translation_client

        exports = {
            "TranslationServiceClient": TranslationServiceClient,
            "create_translation_client": create_translation_client,
        }
        return exports[name]
    if name == "TranslationService":
        from .service import TranslationService

        return TranslationService
    raise AttributeError(name)