vetiver.VetiverAPI
vetiver.VetiverAPI#
- class vetiver.VetiverAPI(model: vetiver.vetiver_model.VetiverModel, check_ptype: bool = True, app_factory=<class 'fastapi.applications.FastAPI'>)#
Create model aware API
- model#
Model to be deployed in API
- Type
- check_ptype#
Determine if data prototype should be enforced
- Type
bool
- app_factory#
Type of API to be deployed
- app#
API that is deployed
- __init__(model: vetiver.vetiver_model.VetiverModel, check_ptype: bool = True, app_factory=<class 'fastapi.applications.FastAPI'>) None #
Methods
__init__
(model[, check_ptype, app_factory])run
([port, host])Start API
vetiver_post
(endpoint_fx[, endpoint_name])Create new POST endpoint
Attributes