modelexpress-client 0.4.1

Client library for Model Express gRPC server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
try:
    from opentelemetry import trace
    tracer = trace.get_tracer("modelexpress")
except ImportError:
    from contextlib import contextmanager

    class _NoOpSpan:
        def set_attribute(self, *_a, **_kw):
            pass

    class _NoOpTracer:
        @contextmanager
        def start_as_current_span(self, *_a, **_kw):
            yield _NoOpSpan()

    tracer = _NoOpTracer()