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.

Source Distribution

aio-krpc-server-0.0.7.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file aio-krpc-server-0.0.7.tar.gz.

File metadata

  • Download URL: aio-krpc-server-0.0.7.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1

File hashes

Hashes for aio-krpc-server-0.0.7.tar.gz
Algorithm Hash digest
SHA256 eb37eccfe3ddf1e62bae9cf805f24fa7eff2cf46c2910db66ee6a1dacf718945
MD5 557ee149556898c4731ddea565cca6dc
BLAKE2b-256 d6b1124a84b9396c44aa3960260df954c7adb6e983e780745fc17a3e169d223d

See more details on using hashes here.

File details

Details for the file aio_krpc_server-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: aio_krpc_server-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.1

File hashes

Hashes for aio_krpc_server-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 30318945af85a4bc189e85720ec2cd7074c99be8bdfe5742c62e821a02bda41b
MD5 72a005f21fc0992b99c9c5b1233b8d04
BLAKE2b-256 e98e2a640dc1a02c59d7f6c9cbb7c9a469ff4b76d5d22a9867385d29686f6140

See more details on using hashes here.

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