Skip to main content

A Python Library For Kamibot

Project description

HelloLinker

socketio-python

Sample

from hello_linker.kaminet import KamiNet
import time

def rcv_msg(event, msg):
    if event == 'connect' :
         print(msg)
    elif event == 'message':
        print(msg)
    else:
        print('no event handler:', event)


net = KamiNet("192.168.1.21")
net.connect(rcv_msg)


while True:
    time.sleep(2)
    net.send({'type':'coords', 'coords': [[100, 200], [100, 200]]})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hello_linker-0.5-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

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