Asyncio KRPC-server
Project description
Asyncio Kademlia RPC-server
Kademlia protocol based RPC-server.
Example
import asyncio
loop = asyncio.get_event_loop()
udp = UDPServer()
udp.run("0.0.0.0", 12346, loop=loop)
app = KRPCServer(server=udp, loop=loop)
@app.callcack(arg_schema={"id": {"type": "integer", "required": True}})
def ping(addr, id):
print(addr, id)
return {"id": id}
if __name__ == '__main__':
loop.run_forever()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aio-krpc-server-0.0.7.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for aio_krpc_server-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30318945af85a4bc189e85720ec2cd7074c99be8bdfe5742c62e821a02bda41b |
|
MD5 | 72a005f21fc0992b99c9c5b1233b8d04 |
|
BLAKE2b-256 | e98e2a640dc1a02c59d7f6c9cbb7c9a469ff4b76d5d22a9867385d29686f6140 |