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.
==============
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
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
PyRibbonBridge-0.0.4.tar.gz
(11.0 kB
view details)
File details
Details for the file PyRibbonBridge-0.0.4.tar.gz.
File metadata
- Download URL: PyRibbonBridge-0.0.4.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dc31b6b5b4fc89e4493ba3128a8bb564d41492c34d1b7eed0b1cfaf8bac9ed6
|
|
| MD5 |
d5680be963a045cf8b7ad437e18a01ab
|
|
| BLAKE2b-256 |
de290848755a35a52e1a54f9e1a472ba9b14005cf18732ef7b656eca784745f6
|