MCPcopy Index your code
hub / github.com/feast-dev/feast / _find_feature_store_yamls

Function _find_feature_store_yamls

sdk/python/feast/demos.py:43–63  ·  view source on GitHub ↗

Return all feature-store config paths found under *repo_path*. Searches: 1. ``repo_path/feature_store.yaml`` 2. Every file directly inside ``repo_path/feast-config/`` — each file is treated as a separate project config.

(repo_path: pathlib.Path)

Source from the content-addressed store, hash-verified

41
42
43def _find_feature_store_yamls(repo_path: pathlib.Path) -> list[pathlib.Path]:
44 """Return all feature-store config paths found under *repo_path*.
45
46 Searches:
47 1. ``repo_path/feature_store.yaml``
48 2. Every file directly inside ``repo_path/feast-config/``
49 — each file is treated as a separate project config.
50 """
51 found: list[pathlib.Path] = []
52
53 direct = repo_path / "feature_store.yaml"
54 if direct.exists():
55 found.append(direct)
56
57 feast_config_dir = repo_path / "feast-config"
58 if feast_config_dir.is_dir():
59 for entry in sorted(feast_config_dir.iterdir()):
60 if entry.is_file():
61 found.append(entry)
62
63 return found
64
65
66def _parse_yaml(yaml_path: pathlib.Path) -> dict[str, Any]:

Calls

no outgoing calls