OpenVINO™ Model Server Client
OpenVINO™ Model Server Client package makes the interaction with the model server easy. It is very lightweight thanks to minimal number of included dependencies. The total size of the package, along with all dependencies is less than 100 MB.
The ovmsclient package works both with OpenVINO™ Model Server and TensorFlow Serving. It supports both gRPC and REST API calls: Predict, GetModelMetadata and GetModelStatus.
The ovmsclient can replace tensorflow-serving-api package with reduced footprint and simplified interface.
See API reference for usage details.
Usage example
import ovmsclient
# Create connection to the model server
client = ovmsclient.make_grpc_client("localhost:9000")
# Get model metadata to learn about model inputs
model_metadata = client.get_model_metadata(model_name="model")
# If model has only one input, get its name
input_name = next(iter(model_metadata["inputs"]))
# Read the image file
with open("path/to/img.jpg", 'rb') as f:
img = f.read()
# Place the data in a dict, along with model input name
inputs = {input_name: img}
# Run prediction and wait for the result
results = client.predict(inputs=inputs, model_name="model")
Learn more on ovmsclient documentation site.
Release files for ovmsclient 2023.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovmsclient-2023.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / ovmsclient-2023.1-py3-none-any.whl
| Download URL | ovmsclient-2023.1-py3-none-any.whl |
|---|---|
| Size | 146.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d743f9995561305fec913db6b0956a29bb607c4659b035db72e224245dd85264
|
|
BLAKE2b-256 checksum How to use checksums |
c7c293bc706c5f1dce93830c7abb5f046f8fb05a847c1c30800290b5fc81b88c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|