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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2122b24e27379a97cc4ad75a37694bd3e04993fd6429e5fa071b459d4bb48e57
|
|
| MD5 |
993f752f23037fbe2d7c86f4a9f64d06
|
|
| BLAKE2b-256 |
4b7f0aee4922e6dd09c5f6165c2213285417b66e66dacf4cf93ebc08dddf99bb
|
Provenance
The following attestation bundles were made for togomq_grpc-0.1.11.tar.gz:
Publisher:
release.yml on TogoMQ/togomq-grpc-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
togomq_grpc-0.1.11.tar.gz -
Subject digest:
2122b24e27379a97cc4ad75a37694bd3e04993fd6429e5fa071b459d4bb48e57 - Sigstore transparency entry: 677286639
- Sigstore integration time:
-
Permalink:
TogoMQ/togomq-grpc-python@9d60d1b88866fd8b225d71299a36d7eab31aba96 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TogoMQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9d60d1b88866fd8b225d71299a36d7eab31aba96 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55ec5b7316713b7ee48e36a187de5d17c45b78f8b0f34e6939e1bfc0c1e72cee
|
|
| MD5 |
6229c99448071a2ec4dbda912eab01c6
|
|
| BLAKE2b-256 |
b722c7349896ba5ce638fbdccb97293b7e70c6ca3007ff468c94ce6a4c4d963f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
togomq_grpc-0.1.11-py3-none-any.whl -
Subject digest:
55ec5b7316713b7ee48e36a187de5d17c45b78f8b0f34e6939e1bfc0c1e72cee - Sigstore transparency entry: 677286644
- Sigstore integration time:
-
Permalink:
TogoMQ/togomq-grpc-python@9d60d1b88866fd8b225d71299a36d7eab31aba96 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TogoMQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9d60d1b88866fd8b225d71299a36d7eab31aba96 -
Trigger Event:
push
-
Statement type: