Add simple lib, utility to check mhz.
This commit is contained in:
9
python/adsblib.py
Normal file
9
python/adsblib.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import json
|
||||
import socket
|
||||
|
||||
|
||||
def GetEvents(host, port):
|
||||
with socket.create_connection((host, port)) as sock:
|
||||
fh = sock.makefile()
|
||||
for line in fh:
|
||||
yield json.loads(line)
|
||||
Reference in New Issue
Block a user