MCPcopy Create free account
hub / github.com/feast-dev/feast / RepoContents

Class RepoContents

sdk/python/feast/repo_contents.py:28–63  ·  view source on GitHub ↗

Represents the objects in a Feast feature repo.

Source from the content-addressed store, hash-verified

26
27
28class RepoContents(NamedTuple):
29 """
30 Represents the objects in a Feast feature repo.
31 """
32
33 projects: List[Project]
34 data_sources: List[DataSource]
35 feature_views: List[FeatureView]
36 on_demand_feature_views: List[OnDemandFeatureView]
37 stream_feature_views: List[StreamFeatureView]
38 label_views: List[LabelView]
39 entities: List[Entity]
40 feature_services: List[FeatureService]
41 permissions: List[Permission]
42
43 def to_registry_proto(self) -> RegistryProto:
44 registry_proto = RegistryProto()
45 registry_proto.projects.extend([e.to_proto() for e in self.projects])
46 registry_proto.data_sources.extend([e.to_proto() for e in self.data_sources])
47 registry_proto.entities.extend([e.to_proto() for e in self.entities])
48 registry_proto.feature_views.extend(
49 [fv.to_proto() for fv in self.feature_views]
50 )
51 registry_proto.on_demand_feature_views.extend(
52 [fv.to_proto() for fv in self.on_demand_feature_views]
53 )
54 registry_proto.label_views.extend([lv.to_proto() for lv in self.label_views])
55 registry_proto.feature_services.extend(
56 [fs.to_proto() for fs in self.feature_services]
57 )
58 registry_proto.stream_feature_views.extend(
59 [fv.to_proto() for fv in self.stream_feature_views]
60 )
61 registry_proto.permissions.extend([p.to_proto() for p in self.permissions])
62
63 return registry_proto

Callers 2

parse_repoFunction · 0.90

Calls

no outgoing calls