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

Function get_entity

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

Source from the content-addressed store, hash-verified

256
257
258def get_entity(registry_proto: RegistryProto, name: str, project: str) -> Entity:
259 for entity_proto in registry_proto.entities:
260 if entity_proto.spec.name == name and entity_proto.spec.project == project:
261 return Entity.from_proto(entity_proto)
262 raise EntityNotFoundException(name, project=project)
263
264
265def get_saved_dataset(

Callers

nothing calls this directly

Calls 2

from_protoMethod · 0.45

Tested by

no test coverage detected