Skip to main content

Asyncio KRPC-server

Project description

Asyncio Kademlia RPC-server

Build Status

Kademlia protocol based RPC-server.


import asyncio

loop = asyncio.get_event_loop()

udp = UDPServer()"", 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__':

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)

Uploaded source

Built Distribution

aio_krpc_server-0.0.7-py3-none-any.whl (17.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page