Metadata-Version: 2.1
Name: tritonclient
Version: 2.3.0
Summary: Python client library and utilities for communicating with Triton Inference Server
Home-page: https://developer.nvidia.com/nvidia-triton-inference-server
Author: NVIDIA Inc.
Author-email: sw-dl-triton@nvidia.com
License: BSD
Keywords: grpc,http,triton,tensorrt,inference,server,service,client,nvidia
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Information Technology
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Image Recognition
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Environment :: Console
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Requires-Dist: numpy (>=1.19.1)
Requires-Dist: python-rapidjson (>=0.9.1)
Provides-Extra: all
Requires-Dist: protobuf (>=3.5.0) ; extra == 'all'
Requires-Dist: grpcio (>=1.31.0) ; extra == 'all'
Requires-Dist: numpy (>=1.19.1) ; extra == 'all'
Requires-Dist: python-rapidjson (>=0.9.1) ; extra == 'all'
Requires-Dist: geventhttpclient (>=1.4.4) ; extra == 'all'
Provides-Extra: grpc
Requires-Dist: protobuf (>=3.5.0) ; extra == 'grpc'
Requires-Dist: grpcio (>=1.31.0) ; extra == 'grpc'
Requires-Dist: numpy (>=1.19.1) ; extra == 'grpc'
Requires-Dist: python-rapidjson (>=0.9.1) ; extra == 'grpc'
Provides-Extra: http
Requires-Dist: geventhttpclient (>=1.4.4) ; extra == 'http'
Requires-Dist: numpy (>=1.19.1) ; extra == 'http'
Requires-Dist: python-rapidjson (>=0.9.1) ; extra == 'http'

<!--
Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
 * Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
 * Neither the name of NVIDIA CORPORATION nor the names of its
   contributors may be used to endorse or promote products derived
   from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

# Triton Python Client Library

This package holds the triton python client library. The generic
installation is different from the linux-specific installation. The components
included within generic tritonclient package are:
- http
- grpc [ `service_pb2`, `service_pb2_grpc`, `model_config_pb2` ]
- utils [ x86-linux distribution will include `shared_memory` and `cuda_shared_memory`]

Apart from the above library, x86-linux distribution will include a
pre-compiled perf_client binary For further information regarding
perf_client, refer to docs
[here](https://github.com/triton-inference-server/server/blob/master/docs/perf_client.rst).

Note the following packages are deprecated and will be removed in future releases:
- tritongrpcclient
- tritonhttpclient
- tritonclientutils
- tritonshmutils


## Installation

Install dependencies needed by the perf_client binary shipped with the
package. This step can be skipped if perf_client is not needed.

```bash
sudo apt update
sudo apt install libb64-dev
```

Use the package manager [pip](https://pip.pypa.io/en/stable/) to
install triton client library. A recent version of pip is required for
the install.

```bash
pip install nvidia-pyindex
pip install tritonclient[all]
```

There are two optional packages available, namely, `grpc` and
`http`. [`all`] installs dependencies for both the protocols.

The perf_client is installed in the system configuration specific
`bin` directory.

## Usage

Refer to the examples
[here](https://github.com/triton-inference-server/server/tree/master/src/clients/python/examples)
for the usage of library.

Use the following command to get the detailed usage for perf_client
binary.

```bash
perf_client -h
```


