A Python Library For Kamibot
Project description
HelloLinker
socketio-python
- ref site Quick Socket.IO Tutorial
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
Close
Hashes for hello_linker-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f5d90462c2cbc0e63086114a6919a50682257006b338054892ba8c98e44487 |
|
MD5 | b044bf26eeba416e33da237d1339f582 |
|
BLAKE2b-256 | a8eabf6c9cee3a38d21ac500e1f86dcf0ecbd9b6d22fa9ac6df799391361e993 |