Skip to main content

SMG gRPC proto definitions for SGLang, vLLM, and TRT-LLM

Project description

smg-grpc-proto

PyPI Python

Protocol Buffer definitions for SMG (Shepherd Model Gateway) gRPC services.

This package provides pre-compiled Python gRPC stubs for:

  • SGLang scheduler service (sglang_scheduler.proto)
  • vLLM engine service (vllm_engine.proto)
  • TensorRT-LLM service (trtllm_service.proto)

Installation

pip install smg-grpc-proto

Requires grpcio>=1.78.0 and protobuf>=5.26.0.

Usage

from smg_grpc_proto import sglang_scheduler_pb2, sglang_scheduler_pb2_grpc
from smg_grpc_proto import vllm_engine_pb2, vllm_engine_pb2_grpc
from smg_grpc_proto import trtllm_service_pb2, trtllm_service_pb2_grpc

Proto Source

The proto source files live in grpc_client/proto/ in the SMG repository. Python stubs are generated at build time using grpcio-tools and shipped in the wheel.

Development

To install in editable mode from the repo root:

pip install -e grpc_client/python/

For CI or environments where symlinks don't work:

mkdir -p grpc_client/python/smg_grpc_proto/proto
cp grpc_client/proto/*.proto grpc_client/python/smg_grpc_proto/proto/
pip install -e grpc_client/python/

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smg_grpc_proto-0.3.3.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smg_grpc_proto-0.3.3-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file smg_grpc_proto-0.3.3.tar.gz.

File metadata

  • Download URL: smg_grpc_proto-0.3.3.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for smg_grpc_proto-0.3.3.tar.gz
Algorithm Hash digest
SHA256 069bfab2ceb0ca972e9ac278459d6fd343a3b1c0f58f9ea2720b5d6a0db0fb6d
MD5 5e7e7204ae852835c039582a0fe3db2b
BLAKE2b-256 d31e033e5d867b9a51c5e80cb395e27a6514861b825ad8ee27a2dda58cf2b6a1

See more details on using hashes here.

File details

Details for the file smg_grpc_proto-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: smg_grpc_proto-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for smg_grpc_proto-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2aaf353ae65623073e9d8d64372a0b2c2b62633beb3670ddf9a9ffcfc3668384
MD5 dd27bdf5a629dabd827163d2b3453af7
BLAKE2b-256 d4ddbe1eb2edcad430bb908525ebfa6aad8d2a50fe007f4980b16b1f87b91fd4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page