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
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: