Sans I/O wire protocol for Hypercore
Go to file
Luke Murphy d05ac50741
continuous-integration/drone/push Build is failing Details
Spec out basics on send/send_batch once again
2020-08-01 18:53:28 +02:00
simple_message_channels Spec out basics on send/send_batch once again 2020-08-01 18:53:28 +02:00
test Spec out basics on send/send_batch once again 2020-08-01 18:53:28 +02:00
.drone.yml Bootstrap SMC 2020-06-30 01:53:34 +02:00
.gitignore Bootstrap SMC 2020-06-30 01:53:34 +02:00
CHANGELOG.md Migrate to pyproject config 2020-07-07 16:05:55 +02:00
LICENSE Bootstrap SMC 2020-06-30 01:53:34 +02:00
README.md Spoof out an example 2020-08-01 18:53:22 +02:00
poetry.lock Add lock file 2020-07-08 00:19:44 +02:00
pyproject.toml Add pyvarint dependency 2020-07-08 00:20:24 +02:00

README.md

simple-message-channels

Build Status

Sans I/O wire protocol for Hypercore

Install

$ pip install simple-message-channels

Example

from simple_message_channels import SimpleMessageChannel

smc = SimpleMessageChannel()

send = smc.send(1, 2, b"foo")
recv = smc.recv(send_payload)

print(f"send: {send}", f"recv: {recv}, sep="\n")

Output: