Skip to main content

Auto-generated gRPC Python client for TogoMQ

Project description

TogoMQ Auto-Generated Protos Package

This directory contains Python source files automatically generated from Protocol Buffer (.proto) definitions.


About TogoMQ

This package is maintained by TogoMQ, a SaaS company providing modern messaging solutions.

Overview

  • Purpose: Provides Python types and gRPC service stubs for use in applications.
  • Do not edit: All files in this package are generated. Manual changes will be overwritten.
  • Regeneration: To update, re-run the Protocol Buffer compiler (protoc) with the appropriate plugins.

Usage

Use the generated Python classes in your project to work with the message types and services.

Install with pip

pip install togomq-grpc

Usage Example

from mq.v1 import mq_pb2
from mq.v1 import mq_pb2_grpc
import grpc

# All message models are in mq_pb2:
# - PubMessageRequest, PubMessageResponse
# - SubMessageRequest, SubMessageResponse
# - CountMessagesRequest, CountMessagesResponse
# - HealthCheckRequest, HealthCheckResponse

# Create a message
request = mq_pb2.PubMessageRequest()
request.topic = "orders/new"
request.body = b"Order data"
request.postpone = 0
request.retention = 3600
request.variables["order_id"] = "12345"

# Create a gRPC channel and client stub
channel = grpc.insecure_channel('localhost:50051')
stub = mq_pb2_grpc.MqServiceStub(channel)

# Make a gRPC call
response = stub.HealthCheck(
    mq_pb2.HealthCheckRequest(message="Hello")
)
print(f"Service alive: {response.alive}")

Generated by bufbuild/buf and the Protocol Buffer compiler.

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

togomq_grpc-0.1.11.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

togomq_grpc-0.1.11-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file togomq_grpc-0.1.11.tar.gz.

File metadata

  • Download URL: togomq_grpc-0.1.11.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for togomq_grpc-0.1.11.tar.gz
Algorithm Hash digest
SHA256 2122b24e27379a97cc4ad75a37694bd3e04993fd6429e5fa071b459d4bb48e57
MD5 993f752f23037fbe2d7c86f4a9f64d06
BLAKE2b-256 4b7f0aee4922e6dd09c5f6165c2213285417b66e66dacf4cf93ebc08dddf99bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for togomq_grpc-0.1.11.tar.gz:

Publisher: release.yml on TogoMQ/togomq-grpc-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file togomq_grpc-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: togomq_grpc-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for togomq_grpc-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 55ec5b7316713b7ee48e36a187de5d17c45b78f8b0f34e6939e1bfc0c1e72cee
MD5 6229c99448071a2ec4dbda912eab01c6
BLAKE2b-256 b722c7349896ba5ce638fbdccb97293b7e70c6ca3007ff468c94ce6a4c4d963f

See more details on using hashes here.

Provenance

The following attestation bundles were made for togomq_grpc-0.1.11-py3-none-any.whl:

Publisher: release.yml on TogoMQ/togomq-grpc-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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