Sans I/O wire protocol for Hypercore
simple_message_channels | ||
test | ||
.drone.yml | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
simple-message-channels
Sans I/O wire protocol for Hypercore
Work In Progress
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: