Skip to main content

MAVLink2gRPC Python Client Stubs

This package contains the auto-generated gRPC and Protocol Buffer client stubs for communicating with a MAVLink2gRPC bridge server.

Installation

pip install mavlink2grpc-proto

Usage

import grpc
import mavlink_bridge_pb2
import mavlink_bridge_pb2_grpc
from mavlink import common_pb2

# Connect to the gRPC bridge
channel = grpc.insecure_channel('localhost:50051')
stub = mavlink_bridge_pb2_grpc.MavlinkBridgeStub(channel)

# Subscribe to HEARTBEAT messages
stream_filter = mavlink_bridge_pb2.StreamFilter(
    system_id=0,
    component_id=0,
    message_ids=[0] # HEARTBEAT message ID is 0
)

for message in stub.StreamMessages(stream_filter):
    if message.has_heartbeat:
        print(f"Received HEARTBEAT: Type {message.heartbeat.type}")

Release files for mavlink2grpc-proto 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mavlink2grpc-proto 0.1.0
File Size Uploaded
mavlink2grpc_proto-0.1.0.tar.gz 50.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mavlink2grpc-proto 0.1.0
File Interpreter ABI Platform
mavlink2grpc_proto-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 102.5 kB

Release files / mavlink2grpc_proto-0.1.0.tar.gz

Download URL mavlink2grpc_proto-0.1.0.tar.gz
Size 50.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e06bf9c7b9ec92226adeced088805c0d4ba01f0dea63e146ee033dacfda5d98b
BLAKE2b-256 checksum
How to use checksums
6c9b850f9f1abcf588368e08e84bb7fa0f4a7ba4df7c1eb2961e142a05701d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / mavlink2grpc_proto-0.1.0-py3-none-any.whl

Download URL mavlink2grpc_proto-0.1.0-py3-none-any.whl
Size 52.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f779fc9835b630ff888c0f18a4481ae626987061d6704aee6e5fb8c598d98305
BLAKE2b-256 checksum
How to use checksums
79acb1e8719edcde25862295fd0708022f8fbdc51a50c4f17f9ef1ab101a34dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page