add py example

This commit is contained in:
Evan
2025-12-24 19:54:48 +00:00
parent 4465ebd176
commit 240db4466b
@@ -0,0 +1,12 @@
from exo_pyo3_bindings import RustNetworkingHandle, Keypair
from asyncio import run
async def main():
nh = await RustNetworkingHandle.create(Keypair.generate_ed25519(), "mdns_example")
recv = await nh.get_connection_receiver()
while True:
print(await recv.receive())
if __name__ == "__main__":
run(main())