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

Function get_data_source

sdk/python/feast/infra/registry/proto_registry_utils.py:249–255  ·  view source on GitHub ↗
(
    registry_proto: RegistryProto, name: str, project: str
)

Source from the content-addressed store, hash-verified

247
248
249def get_data_source(
250 registry_proto: RegistryProto, name: str, project: str
251) -> DataSource:
252 for data_source in registry_proto.data_sources:
253 if data_source.project == project and data_source.name == name:
254 return DataSource.from_proto(data_source)
255 raise DataSourceObjectNotFoundException(name, project=project)
256
257
258def get_entity(registry_proto: RegistryProto, name: str, project: str) -> Entity:

Callers

nothing calls this directly

Calls 2

from_protoMethod · 0.45

Tested by

no test coverage detected