MCPcopy
hub / github.com/zenml-io/zenml / zen_store

Function zen_store

src/zenml/zen_server/utils.py:112–124  ·  view source on GitHub ↗

Initialize the ZenML Store. Returns: The ZenML Store. Raises: RuntimeError: If the ZenML Store has not been initialized.

()

Source from the content-addressed store, hash-verified

110
111
112def zen_store() -> "SqlZenStore":
113 """Initialize the ZenML Store.
114
115 Returns:
116 The ZenML Store.
117
118 Raises:
119 RuntimeError: If the ZenML Store has not been initialized.
120 """
121 global _zen_store
122 if _zen_store is None:
123 raise RuntimeError("ZenML Store not initialized")
124 return _zen_store
125
126
127def rbac() -> RBACInterface:

Calls

no outgoing calls

Tested by

no test coverage detected