MCPcopy
hub / github.com/feast-dev/feast / _is_operator_client

Function _is_operator_client

sdk/python/feast/demos.py:160–170  ·  view source on GitHub ↗

Return True when the feature_store.yaml was generated by the Feast operator. The operator sets provider=local with registry_type=remote, online_store.type=remote, and offline_store.type=remote.

(info: dict[str, Any])

Source from the content-addressed store, hash-verified

158
159
160def _is_operator_client(info: dict[str, Any]) -> bool:
161 """Return True when the feature_store.yaml was generated by the Feast operator.
162
163 The operator sets provider=local with registry_type=remote, online_store.type=remote,
164 and offline_store.type=remote.
165 """
166 return (
167 info["registry_type"] == "remote"
168 and info["online_store_type"] == "remote"
169 and info["offline_store_type"] == "remote"
170 )
171
172
173# ---------------------------------------------------------------------------

Calls

no outgoing calls