from .discovery import advertise, unadvertise, discover
from .messenger import (
    send_command, wait_for_command, 
    send_request, wait_for_request, send_reply, 
    publish_news, wait_for_news
)
from .core import address
@@ -1,12 +1,838 @@
+# -*- coding: utf-8 -*-%0A%22%22%22networkzero - easy network discovery & messaging%0A%0AAimed at a classrom or club situation, networkzero makes it simpler to%0Ahave several machines or several processes on one machine discovering%0Aeach other and talking across a network. Typical examples would include:%0A%0A* Sending commands to a robot%0A* Sending scores to a scoreboard%0A* Having a remote sensor ping a central controller%0A* A peer-to-peer chat / instant messenger%0A%0AExample code:%0A%0A%5BComputer 1%5D:%0Aimport networkzero as nw0%0A%0Aecho_address = nw0.advertise(%22echo%22)%0Awhile True:%0A    name = nw0.wait_for_request(echo_address)%0A    nw0.send_reply(echo_address, %22Hello %22 + name)%0A%0A%5BComputer 2%5D:%0Aimport networkzero as nw0%0A%0Aecho_address = nw0.discover(%22echo%22)%0Aprint(nw0.send_request(echo_address, %22Alice%22))%0Aprint(nw0.send_request(echo_address, %22Bob%22))%0A%0A%22%22%22%0A%0A
 from .discov

Put some high-level module docs together, including a simple example