Mock library for triton python backend utils.
Project description
triton_python_backend_mock_utils
This is a mock library for the triton_python_backend_utils python package that is available inside a triton server python backend runtime. This mock library is intended to be used for local development and unit testing of triton python backend models outside the triton server container environment. This library attempts to replicate the interface of the triton_python_backend_utils package, but may not have full functionality or behavior of the original package. PRs are welcome to improve the mock library to better match the real package. Please see the contributing guide for contribution instructions and guidelines.
The need for this mock library was brought up in the following GitHub issue: https://github.com/triton-inference-server/server/issues/5813
Installation
You can install the mock library via pip:
pip install triton_python_backend_mock_utils
Usage
You can now import and use the triton_python_backend_utils module in your local python environment for type hints and unit testing.
Please see the python backend documentation for more details on available functionality and usage.
You can reference our example model to see the usage which includes a __main__ block for local testing.
You can run this model in your local python environment by running:
python examples/model.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file triton_python_backend_mock_utils-1.0.0.tar.gz.
File metadata
- Download URL: triton_python_backend_mock_utils-1.0.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63492e74828d57f3ad6c5d4ae77fce41f76a26b95a6e231e42a197dd30850c18
|
|
| MD5 |
80acd642d041d16d3aa66fd79cb83477
|
|
| BLAKE2b-256 |
4453f00c206798f5794b75f5ea9fb20dbcadeaf8874b94163c5965a2099eb84a
|
Provenance
The following attestation bundles were made for triton_python_backend_mock_utils-1.0.0.tar.gz:
Publisher:
semantic_release.yaml on wwgrainger/triton_python_backend_mock_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
triton_python_backend_mock_utils-1.0.0.tar.gz -
Subject digest:
63492e74828d57f3ad6c5d4ae77fce41f76a26b95a6e231e42a197dd30850c18 - Sigstore transparency entry: 683523495
- Sigstore integration time:
-
Permalink:
wwgrainger/triton_python_backend_mock_utils@1da7808e7e7dad327654efd7668711c8fc1039e4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wwgrainger
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
semantic_release.yaml@1da7808e7e7dad327654efd7668711c8fc1039e4 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file triton_python_backend_mock_utils-1.0.0-py3-none-any.whl.
File metadata
- Download URL: triton_python_backend_mock_utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d11285800d7969e9ba71d26f74aa0e80a9f7d0b4c98796f74c0c91a637f83b
|
|
| MD5 |
efd08cb03316b09d32f75ce677cf09a7
|
|
| BLAKE2b-256 |
50921c26c46794872a5a5d2716ad5e3c612f137a243c85d2431ae61d8e83d4f9
|
Provenance
The following attestation bundles were made for triton_python_backend_mock_utils-1.0.0-py3-none-any.whl:
Publisher:
semantic_release.yaml on wwgrainger/triton_python_backend_mock_utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
triton_python_backend_mock_utils-1.0.0-py3-none-any.whl -
Subject digest:
04d11285800d7969e9ba71d26f74aa0e80a9f7d0b4c98796f74c0c91a637f83b - Sigstore transparency entry: 683523502
- Sigstore integration time:
-
Permalink:
wwgrainger/triton_python_backend_mock_utils@1da7808e7e7dad327654efd7668711c8fc1039e4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/wwgrainger
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
semantic_release.yaml@1da7808e7e7dad327654efd7668711c8fc1039e4 -
Trigger Event:
workflow_dispatch
-
Statement type: