Add simple lib, utility to check mhz.

This commit is contained in:
Ian Gulliver
2016-02-18 10:10:47 -08:00
parent 4ca9fbeb4a
commit 2024bdc880
3 changed files with 110 additions and 0 deletions

9
python/adsblib.py Normal file
View 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)