Spec out first steps, nothing works yet
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Luke Murphy
2020-06-30 15:09:04 +02:00
parent 18fae5a233
commit 1c67ca74e4
7 changed files with 40 additions and 3 deletions

View File

@ -1,5 +1,7 @@
"""simple-message-channels module."""
from simple_message_channels.smc import SimpleMessageChannel # noqa
try:
import pkg_resources
except ImportError:
@ -7,6 +9,6 @@ except ImportError:
try:
__version__ = pkg_resources.get_distribution('simple-message-channels').version
__version__ = pkg_resources.get_distribution('simple_message_channels').version
except Exception:
__version__ = 'unknown'

View File

@ -0,0 +1,12 @@
"""Sans I/O wire protocol for Hypercore"""
__all__ = ["SimpleMessageChannel"]
class SimpleMessageChannel:
"""A simple message channel."""
async def send(self, channel: int, type: int, message: bytes) -> bytes:
pass
# TODO(decentral1se): spec out the context manager API of recv