package documentation

Undocumented

From __init__.py:

Function check_schema A wrapper that checks the schema of data frames given a feature view or model contract.
Function feature_view Undocumented
def check_schema() -> Callable: (source)

A wrapper that checks the schema of data frames given a feature view or model contract.

```python @feature_view(...) class MyView:

id = Int32().as_entity() name = String()

@check_schema() def my_function(data: Annotated[pd.DataFrame, MyView]):

...

# Will raise an error since the name column is missing my_function(pd.DataFrame({

"id": [1, 2, 3],

})

def feature_view(source: CodableBatchDataSource | FeatureViewWrapper, name: str | None = None, description: str | None = None, stream_source: StreamDataSource | None = None, application_source: CodableBatchDataSource | None = None, materialized_source: CodableBatchDataSource | None = None, materialize_from: datetime | None = None, contacts: list[str] | None = None, tags: list[str] | None = None, acceptable_freshness: timedelta | None = None, unacceptable_freshness: timedelta | None = None) -> Callable[[type[T]], FeatureViewWrapper[T]]: (source)

Undocumented