ovmsclient


Nameovmsclient JSON
Version 2023.1 PyPI version JSON
download
home_pagehttps://github.com/openvinotoolkit/model_server/tree/releases/2023/1/client/python/ovmsclient/lib
SummaryPython client for OpenVINO Model Server
upload_time2023-09-18 13:46:41
maintainer
docs_urlNone
authorIntel Corporation
requires_python
licenseApache License 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/openvinotoolkit/model_server/blob/releases/2023/1/client/python/ovmsclient/lib/docs/README.md) for usage details.


## Usage example

```python
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](https://github.com/openvinotoolkit/model_server/tree/releases/2023/1/client/python/ovmsclient/lib).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/openvinotoolkit/model_server/tree/releases/2023/1/client/python/ovmsclient/lib",
    "name": "ovmsclient",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Intel Corporation",
    "author_email": "ovms.engineering@intel.com",
    "download_url": "",
    "platform": null,
    "description": "# OpenVINO™ Model Server Client\n\nOpenVINO™ 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.\n\n\nThe `ovmsclient` package works both with OpenVINO™ Model Server and TensorFlow Serving. It supports both gRPC and REST API calls: `Predict`, `GetModelMetadata` and `GetModelStatus`.\n\n\nThe `ovmsclient` can replace `tensorflow-serving-api` package with reduced footprint and simplified interface.\n\n\nSee [API reference](https://github.com/openvinotoolkit/model_server/blob/releases/2023/1/client/python/ovmsclient/lib/docs/README.md) for usage details.\n\n\n## Usage example\n\n```python\nimport ovmsclient\n\n# Create connection to the model server\nclient = ovmsclient.make_grpc_client(\"localhost:9000\")\n\n# Get model metadata to learn about model inputs\nmodel_metadata = client.get_model_metadata(model_name=\"model\")\n\n# If model has only one input, get its name\ninput_name = next(iter(model_metadata[\"inputs\"]))\n\n# Read the image file\nwith open(\"path/to/img.jpg\", 'rb') as f:\n    img = f.read()\n\n# Place the data in a dict, along with model input name\ninputs = {input_name: img}\n\n# Run prediction and wait for the result\nresults = client.predict(inputs=inputs, model_name=\"model\")\n\n```\n\nLearn more on `ovmsclient` [documentation site](https://github.com/openvinotoolkit/model_server/tree/releases/2023/1/client/python/ovmsclient/lib).\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Python client for OpenVINO Model Server",
    "version": "2023.1",
    "project_urls": {
        "Homepage": "https://github.com/openvinotoolkit/model_server/tree/releases/2023/1/client/python/ovmsclient/lib"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c7c293bc706c5f1dce93830c7abb5f046f8fb05a847c1c30800290b5fc81b88c",
                "md5": "bd543906108640e6506a69646414d4e7",
                "sha256": "d743f9995561305fec913db6b0956a29bb607c4659b035db72e224245dd85264"
            },
            "downloads": -1,
            "filename": "ovmsclient-2023.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bd543906108640e6506a69646414d4e7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 146155,
            "upload_time": "2023-09-18T13:46:41",
            "upload_time_iso_8601": "2023-09-18T13:46:41.192550Z",
            "url": "https://files.pythonhosted.org/packages/c7/c2/93bc706c5f1dce93830c7abb5f046f8fb05a847c1c30800290b5fc81b88c/ovmsclient-2023.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-18 13:46:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "openvinotoolkit",
    "github_project": "model_server",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ovmsclient"
}
        
Elapsed time: 1.61105s