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

Method get_model_by_name

sdk/python/feast/dbt/parser.py:226–237  ·  view source on GitHub ↗

Get a specific model by name. Args: model_name: Name of the model to retrieve Returns: DbtModel if found, None otherwise

(self, model_name: str)

Source from the content-addressed store, hash-verified

224 return models
225
226 def get_model_by_name(self, model_name: str) -> Optional[DbtModel]:
227 """
228 Get a specific model by name.
229
230 Args:
231 model_name: Name of the model to retrieve
232
233 Returns:
234 DbtModel if found, None otherwise
235 """
236 models = self.get_models(model_names=[model_name])
237 return models[0] if models else None
238
239 @property
240 def dbt_version(self) -> Optional[str]:

Calls 1

get_modelsMethod · 0.95