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.12.tar.gz (7.3 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.12-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: togomq_grpc-0.1.12.tar.gz
  • Upload date:
  • Size: 7.3 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.12.tar.gz
Algorithm Hash digest
SHA256 909fe77d7f2d2fdfab8a8b8d64004c17c55239f2ebeb36ca9da5f9d65170c74f
MD5 9971b19be91cbbed4491e955b3134be1
BLAKE2b-256 16e01bf718ced69dc91ecbfe8a6d1558e18fb5af01f76afcadbec13450f648a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for togomq_grpc-0.1.12.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.12-py3-none-any.whl.

File metadata

  • Download URL: togomq_grpc-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 64e570bbbc4cec2f88adb861054bc2ca1f2512f1a38f4f25701cc4d216a68b25
MD5 ab5f1882f63a8d1a974c4c96477794cc
BLAKE2b-256 aa8231a68a064d7933803e9cf2139b4eb38952f1a1a433d4122ad25ccd52c91d

See more details on using hashes here.

Provenance

The following attestation bundles were made for togomq_grpc-0.1.12-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