Skip to main content

Asyncio KRPC-server

Project description

Asyncio Kademlia RPC-server

Build Status

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.

Files for aio-krpc-server, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size aio_krpc_server-0.0.7-py3-none-any.whl (17.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aio-krpc-server-0.0.7.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page