Python Infer Client
About Python Infer Client
Python Infer Client is a python inference client library. It provides one interface to interact with many types of inference client as onnxruntime, tritonclient...
Install
With using the tritonclient client, only supported with GRPC
$ pip install infer-client[tritonclient]
With using the onnxruntime client, both CPU and GPU are supported
$ pip install infer-client[onnxruntime]
or
$ pip install infer-client[onnxruntime-gpu]
Usage
import numpy as np
from infer_client.adapters.onnx import OnnxInferenceAdapter
from infer_client.inference import Inference
adapter = OnnxInferenceAdapter(model_name="resources/test_classify", version="1", limit_mem_gpu=-1)
infer_client_obj = Inference(adapter)
res = infer_client_obj.inference({"input": np.random.rand(1, 3, 224, 224)}, ["output"])
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Reference
Metadata
Release files for infer-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| infer_client-0.1.0.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| infer_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / infer_client-0.1.0.tar.gz
| Download URL | infer_client-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
debc618899f5f2a7417dd0e3b380bf6763f2f309b82a10fe3d82354a6e6c45a9
|
|
BLAKE2b-256 checksum How to use checksums |
58fcfc66457463a56dcb316c007aed805f54557cfad2a356a1fc27287a47adaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / infer_client-0.1.0-py3-none-any.whl
| Download URL | infer_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e31bf9070172686491948a2f9dfd0950810846b0df9bce6c15980f366a5d3a73
|
|
BLAKE2b-256 checksum How to use checksums |
049765f08b8448cbe5461cc0b7b9a6d564f0cfa11587458ebf34ed9ecb3562ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|