Skip to main content

This is a pure Python implementation of ribbon-bridge: An RPC Framework http://github.com/BaroboRobotics/ribbon-bridge

Project description

PyRibbonBridge
==============

A pure Python implementation of ribbon-bridge, an RPC framework. Read more about
ribbon-bridge at http://github.com/BaroboRobotics/ribbon-bridge .

Requirements
------------

Ribbon bridge uses asyncio for asynchronous remote procedure calls, and thus
requires Python 3.5 or above.

Internally, it uses Google Protocol Buffers for data serialization, and thus
requires protobuf-v3.0.0b2 or later.

Usage
-----
The basic strategy is:
1. Design the procedure call interface with Google Protobuf. Each callable
remote procedure is represented by a nested protobuf message. In order to
be a valid callable remote procedure, the message must have sub-messages
named "In" and "Result". For instance, to implement a remote procedure
called "foo" which takes a float and returns and integer, you would
have the following entry in a .proto file.

message foo {
message In {
float input = 1;
}
message Result {
int32 output = 1;
}
}

2. Use protoc to generate python files from the .proto files.

3. Create a Proxy object. The Proxy object will need a path to the Python
interface file generated by protoc and an asyncio event loop.

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

PyRibbonBridge-0.1.2.tar.gz (12.0 kB view details)

Uploaded Source

File details

Details for the file PyRibbonBridge-0.1.2.tar.gz.

File metadata

File hashes

Hashes for PyRibbonBridge-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6159c18756761598fc8a0564cd08311b87f6b76ca4e1411d3b00d5712e6705aa
MD5 a2f85c817bebdba16752dbefa0a8e814
BLAKE2b-256 4767f3c1f2c23b6da74b316eb0a6a2fb1d5492b97d985946a8a3a2f7de7c9b7a

See more details on using hashes here.

Supported by

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