Pre-release
This release is a pre-release and may not be stable for production use.
simple-message-channels
Sans I/O wire protocol for Hypercore
Install
$ pip install simple-message-channels
Example
from simple_message_channels import SimpleMessageChannel
smc1 = SimpleMessageChannel()
smc2 = SimpleMessageChannel()
payload = smc1.send(0, 1, b"foo")
print(f"sent: {payload}")
for idx in range(0, len(payload)):
smc2.recv(payload[idx : idx + 1])
print(f"received: {smc2.messages}")
Output:
sent: b'\x04\x01foo'
received: [(0, 1, b'foo')]
Metadata
Release files for simple-message-channels 0.0.1a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple-message-channels-0.0.1a2.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_message_channels-0.0.1a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.7 kB
Release files / simple-message-channels-0.0.1a2.tar.gz
| Download URL | simple-message-channels-0.0.1a2.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ecb84594500dec42e984399720e38092dc8ad93645ed097b4575da9350b4098
|
|
BLAKE2b-256 checksum How to use checksums |
40e83a2eeb8bfb78724259e5d6106e89714b8049b124e28262598eed465a81cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.0 Linux/4.9.0-13-amd64
|
Release files / simple_message_channels-0.0.1a2-py3-none-any.whl
| Download URL | simple_message_channels-0.0.1a2-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2c5d85c2f4ad777f291a0fd85e804211abb46d6e7a6bf6174cba474b66efa93
|
|
BLAKE2b-256 checksum How to use checksums |
085985d83d7225b72bd7b8258678e1ffbcc8c94c570bf202d54b4fede8bae82b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.0 Linux/4.9.0-13-amd64
|