KServe Python SDK
Actively maintained. Last release 4 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install kserveREADME as published on PyPI with version 0.21.0.
KServe Python SDK
Python SDK for KServe Server and Client.
Installation
KServe Python SDK can be installed by pip or uv.
pip install
pip install kserve
To install Kserve with storage support
pip install kserve[storage]
UV
Install via uv.
make dev_install
To install Kserve with storage support
uv install --extra storage
KServe Python Server
KServe's python server libraries implement a standardized library that is extended by model serving frameworks such as Scikit Learn, XGBoost and PyTorch. It encapsulates data plane API definitions and storage retrieval for models.
It provides many functionalities, including among others:
- Registering a model and starting the server
- Prediction Handler
- Pre/Post Processing Handler
- Liveness Handler
- Readiness Handlers
It supports the following storage providers:
- Google Cloud Storage with a prefix: "gs://"
- By default, it uses
GOOGLE_APPLICATION_CREDENTIALSenvironment variable for user authentication. - If
GOOGLE_APPLICATION_CREDENTIALSis not provided, anonymous client will be used to download the artifacts.
- By default, it uses
- S3 Compatible Object Storage with a prefix "s3://"
- By default, it uses
S3_ENDPOINT,AWS_ACCESS_KEY_ID, andAWS_SECRET_ACCESS_KEYenvironment variables for user authentication.
- By default, it uses
- Azure Blob Storage with the format: "https://{$STORAGE_ACCOUNT_NAME}.blob.core.windows.net/{$CONTAINER}/{$PATH}"
- By default, it uses anonymous client to download the artifacts.
- For e.g. https://kfserving.blob.core.windows.net/triton/simple_string/
- Local filesystem either without any prefix or with a prefix "file://". For example: