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        BlobStorageExportFrequency,
11        BlobStorageExportMode,
12        BlobStorageIntegrationDeletionResponse,
13        BlobStorageIntegrationFileType,
14        BlobStorageIntegrationResponse,
15        BlobStorageIntegrationStatusResponse,
16        BlobStorageIntegrationType,
17        BlobStorageIntegrationsResponse,
18        BlobStorageSyncStatus,
19        CreateBlobStorageIntegrationRequest,
20    )
21_dynamic_imports: typing.Dict[str, str] = {
22    "BlobStorageExportFrequency": ".types",
23    "BlobStorageExportMode": ".types",
24    "BlobStorageIntegrationDeletionResponse": ".types",
25    "BlobStorageIntegrationFileType": ".types",
26    "BlobStorageIntegrationResponse": ".types",
27    "BlobStorageIntegrationStatusResponse": ".types",
28    "BlobStorageIntegrationType": ".types",
29    "BlobStorageIntegrationsResponse": ".types",
30    "BlobStorageSyncStatus": ".types",
31    "CreateBlobStorageIntegrationRequest": ".types",
32}
33
34
35def __getattr__(attr_name: str) -> typing.Any:
36    module_name = _dynamic_imports.get(attr_name)
37    if module_name is None:
38        raise AttributeError(
39            f"No {attr_name} found in _dynamic_imports for module name -> {__name__}"
40        )
41    try:
42        module = import_module(module_name, __package__)
43        if module_name == f".{attr_name}":
44            return module
45        else:
46            return getattr(module, attr_name)
47    except ImportError as e:
48        raise ImportError(
49            f"Failed to import {attr_name} from {module_name}: {e}"
50        ) from e
51    except AttributeError as e:
52        raise AttributeError(
53            f"Failed to get {attr_name} from {module_name}: {e}"
54        ) from e
55
56
57def __dir__():
58    lazy_attrs = list(_dynamic_imports.keys())
59    return sorted(lazy_attrs)
60
61
62__all__ = [
63    "BlobStorageExportFrequency",
64    "BlobStorageExportMode",
65    "BlobStorageIntegrationDeletionResponse",
66    "BlobStorageIntegrationFileType",
67    "BlobStorageIntegrationResponse",
68    "BlobStorageIntegrationStatusResponse",
69    "BlobStorageIntegrationType",
70    "BlobStorageIntegrationsResponse",
71    "BlobStorageSyncStatus",
72    "CreateBlobStorageIntegrationRequest",
73]
BlobStorageExportFrequency
BlobStorageExportMode
BlobStorageIntegrationDeletionResponse
BlobStorageIntegrationFileType
BlobStorageIntegrationResponse
BlobStorageIntegrationStatusResponse
BlobStorageIntegrationType
BlobStorageIntegrationsResponse
BlobStorageSyncStatus
CreateBlobStorageIntegrationRequest