Retrieves a label view by name. Args: name: Name of the label view. allow_registry_cache: Whether to allow returning the label view from a cached registry. Returns: The specified label view. Raises: FeatureViewNotFou
(
self, name: str, allow_registry_cache: bool = False
)
| 647 | ) |
| 648 | |
| 649 | def get_label_view( |
| 650 | self, name: str, allow_registry_cache: bool = False |
| 651 | ) -> LabelView: |
| 652 | """ |
| 653 | Retrieves a label view by name. |
| 654 | |
| 655 | Args: |
| 656 | name: Name of the label view. |
| 657 | allow_registry_cache: Whether to allow returning the label view from a cached registry. |
| 658 | |
| 659 | Returns: |
| 660 | The specified label view. |
| 661 | |
| 662 | Raises: |
| 663 | FeatureViewNotFoundException: The label view could not be found. |
| 664 | """ |
| 665 | return self.registry.get_label_view( |
| 666 | name, self.project, allow_cache=allow_registry_cache |
| 667 | ) |
| 668 | |
| 669 | def list_data_sources( |
| 670 | self, allow_cache: bool = False, tags: Optional[dict[str, str]] = None |
no outgoing calls
no test coverage detected