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

Method apply_repo

sdk/python/feast/doc_embedder.py:259–281  ·  view source on GitHub ↗

Apply the repository to register feature views in the registry.

(self)

Source from the content-addressed store, hash-verified

257 # store.write_to_offline_store(feature_view_name=feature_view_name, df=df)
258
259 def apply_repo(self) -> None:
260 """
261 Apply the repository to register feature views in the registry.
262 """
263 from feast.repo_config import load_repo_config
264 from feast.repo_operations import apply_total
265
266 original_cwd = None
267 try:
268 original_cwd = os.getcwd()
269 repo_path = Path(self.repo_path).resolve()
270 config = load_repo_config(
271 repo_path=repo_path,
272 fs_yaml_file=Path(self.yaml_path),
273 )
274 apply_total(
275 repo_config=config,
276 repo_path=repo_path,
277 skip_source_validation=True,
278 )
279 finally:
280 if original_cwd is not None:
281 os.chdir(original_cwd)
282
283 def embed_documents(
284 self,

Callers 2

__init__Method · 0.95

Calls 3

load_repo_configFunction · 0.90
apply_totalFunction · 0.90
resolveMethod · 0.45

Tested by 1