langfuse.api.blob_storage_integrations

 1# This file was auto-generated by Fern from our API Definition.
 2
 3# isort: skip_file
 4
 5import typing
 6from importlib import import_module
 7
 8if typing.TYPE_CHECKING:
 9    from .types import (
10        BlobStorageExportFieldGroup,
11        BlobStorageExportFrequency,
12        BlobStorageExportMode,
13        BlobStorageExportSource,
14        BlobStorageIntegrationDeletionResponse,
15        BlobStorageIntegrationFileType,
16        BlobStorageIntegrationResponse,
17        BlobStorageIntegrationStatusResponse,
18        BlobStorageIntegrationType,
19        BlobStorageIntegrationsResponse,
20        BlobStorageSyncStatus,
21        CreateBlobStorageIntegrationRequest,
22    )
23_dynamic_imports: typing.Dict[str, str] = {
24    "BlobStorageExportFieldGroup": ".types",
25    "BlobStorageExportFrequency": ".types",
26    "BlobStorageExportMode": ".types",
27    "BlobStorageExportSource": ".types",
28    "BlobStorageIntegrationDeletionResponse": ".types",
29    "BlobStorageIntegrationFileType": ".types",
30    "BlobStorageIntegrationResponse": ".types",
31    "BlobStorageIntegrationStatusResponse": ".types",
32    "BlobStorageIntegrationType": ".types",
33    "BlobStorageIntegrationsResponse": ".types",
34    "BlobStorageSyncStatus": ".types",
35    "CreateBlobStorageIntegrationRequest": ".types",
36}
37
38
39def __getattr__(attr_name: str) -> typing.Any:
40    module_name = _dynamic_imports.get(attr_name)
41    if module_name is None:
42        raise AttributeError(
43            f"No {attr_name} found in _dynamic_imports for module name -> {__name__}"
44        )
45    try:
46        module = import_module(module_name, __package__)
47        if module_name == f".{attr_name}":
48            return module
49        else:
50            return getattr(module, attr_name)
51    except ImportError as e:
52        raise ImportError(
53            f"Failed to import {attr_name} from {module_name}: {e}"
54        ) from e
55    except AttributeError as e:
56        raise AttributeError(
57            f"Failed to get {attr_name} from {module_name}: {e}"
58        ) from e
59
60
61def __dir__():
62    lazy_attrs = list(_dynamic_imports.keys())
63    return sorted(lazy_attrs)
64
65
66__all__ = [
67    "BlobStorageExportFieldGroup",
68    "BlobStorageExportFrequency",
69    "BlobStorageExportMode",
70    "BlobStorageExportSource",
71    "BlobStorageIntegrationDeletionResponse",
72    "BlobStorageIntegrationFileType",
73    "BlobStorageIntegrationResponse",
74    "BlobStorageIntegrationStatusResponse",
75    "BlobStorageIntegrationType",
76    "BlobStorageIntegrationsResponse",
77    "BlobStorageSyncStatus",
78    "CreateBlobStorageIntegrationRequest",
79]
BlobStorageExportFieldGroup
BlobStorageExportFrequency
BlobStorageExportMode
BlobStorageExportSource
BlobStorageIntegrationDeletionResponse
BlobStorageIntegrationFileType
BlobStorageIntegrationResponse
BlobStorageIntegrationStatusResponse
BlobStorageIntegrationType
BlobStorageIntegrationsResponse
BlobStorageSyncStatus
CreateBlobStorageIntegrationRequest