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