quarchpy 2.1.27__py2.py3-none-any.whl → 2.1.27.dev1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quarchpy/_version.py +1 -1
- quarchpy/connection_specific/QPS/qps.jar +0 -0
- quarchpy/connection_specific/mDNS.py +3 -3
- quarchpy/connection_specific/mDNS.py.bak +5 -20
- quarchpy/docs/CHANGES.rst +0 -5
- quarchpy/docs/_build/doctrees/CHANGES.doctree +0 -0
- quarchpy/docs/_build/doctrees/environment.pickle +0 -0
- quarchpy/docs/_build/doctrees/source/changelog.doctree +0 -0
- quarchpy/docs/_build/html/CHANGES.html +125 -132
- quarchpy/docs/_build/html/_sources/CHANGES.rst.txt +0 -5
- quarchpy/docs/_build/html/index.html +63 -64
- quarchpy/docs/_build/html/searchindex.js +1 -1
- quarchpy/docs/_build/html/source/changelog.html +188 -196
- {quarchpy-2.1.27.dist-info → quarchpy-2.1.27.dev1.dist-info}/METADATA +1 -6
- {quarchpy-2.1.27.dist-info → quarchpy-2.1.27.dev1.dist-info}/RECORD +17 -68
- quarchpy/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/__pycache__/_version.cpython-311.pyc +0 -0
- quarchpy/__pycache__/connection.cpython-311.pyc +0 -0
- quarchpy/config_files/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/config_files/__pycache__/quarch_config_parser.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/StreamChannels.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QIS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QPS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_ReST.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_Serial.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_TCP.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_USB.cpython-311.pyc +0 -0
- quarchpy/connection_specific/__pycache__/mDNS.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialutil.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialwin32.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/win32.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_common.cpython-311.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_windows.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/SystemTest.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/debug/__pycache__/versionCompare.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/device.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchArray.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchPPM.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/quarchQPS.cpython-311.pyc +0 -0
- quarchpy/device/__pycache__/scanDevices.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/AbsDiskFinder.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/DiskTargetSelection.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/disk_test/__pycache__/iometerDiskFinder.cpython-311.pyc +0 -0
- quarchpy/fio/__pycache__/FIO_interface.cpython-311.pyc +0 -0
- quarchpy/fio/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/gen_iometer_template.cpython-311.pyc +0 -0
- quarchpy/iometer/__pycache__/iometerFuncs.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/StreamHeaderInfo.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/qis/__pycache__/qisFuncs.cpython-311.pyc +0 -0
- quarchpy/qps/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/qps/__pycache__/qpsFuncs.cpython-311.pyc +0 -0
- quarchpy/user_interface/__pycache__/__init__.cpython-311.pyc +0 -0
- quarchpy/user_interface/__pycache__/user_interface.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/TestCenter.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/TimeValue.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/Version.cpython-311.pyc +0 -0
- quarchpy/utilities/__pycache__/__init__.cpython-311.pyc +0 -0
- {quarchpy-2.1.27.dist-info → quarchpy-2.1.27.dev1.dist-info}/WHEEL +0 -0
- {quarchpy-2.1.27.dist-info → quarchpy-2.1.27.dev1.dist-info}/top_level.txt +0 -0
quarchpy/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.1.27"
|
1
|
+
__version__ = "2.1.27.dev1"
|
Binary file
|
@@ -70,7 +70,7 @@ class MyListener:
|
|
70
70
|
"""
|
71
71
|
Handle service addition event.
|
72
72
|
"""
|
73
|
-
logging.
|
73
|
+
logging.warning("Adding service: " +name)
|
74
74
|
info = zc.get_service_info(type_, name)
|
75
75
|
# Log the service name
|
76
76
|
if "Quarch:" in str(info):
|
@@ -90,7 +90,7 @@ class MyListener:
|
|
90
90
|
"""
|
91
91
|
Add a device to the found devices dictionary.
|
92
92
|
"""
|
93
|
-
logging.
|
93
|
+
logging.warning("Adding device: " +str(ip_address)+"\n"+str(properties_dict))
|
94
94
|
qtl_num = "QTL" + properties_dict['86'] if '86' in properties_dict else None
|
95
95
|
# Check if module contains REST connection
|
96
96
|
if '84' in properties_dict:
|
@@ -129,7 +129,7 @@ class MyListener:
|
|
129
129
|
remove_device = True # or if its of the wrong connection type.
|
130
130
|
if remove_device is True:
|
131
131
|
del self.get_instance().found_devices[key]
|
132
|
-
logging.
|
132
|
+
logging.warning("Returning found devices "+str(self.get_instance().found_devices))
|
133
133
|
return self.get_instance().found_devices
|
134
134
|
|
135
135
|
def get_zeroconf(self):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import platform # For getting the operating system name
|
2
2
|
import subprocess # For executing a shell command
|
3
|
-
|
3
|
+
|
4
4
|
from zeroconf import Zeroconf
|
5
5
|
|
6
6
|
|
@@ -70,27 +70,17 @@ class MyListener:
|
|
70
70
|
"""
|
71
71
|
Handle service addition event.
|
72
72
|
"""
|
73
|
-
logging.warning("Adding service: " +name)
|
74
73
|
info = zc.get_service_info(type_, name)
|
75
|
-
# Log the service name
|
76
74
|
if "Quarch:" in str(info):
|
77
75
|
# decode the incoming properties from mdns
|
78
|
-
decoded_properties ={}
|
79
|
-
for key, value in info.properties.items():
|
80
|
-
decoded_properties[ key.decode('utf-8')]=value.decode('utf-8')
|
81
|
-
pass
|
82
|
-
#decoded_properties = {key.decode('utf-8'): value.decode('utf-8') for key, value in info.properties.items()}
|
76
|
+
decoded_properties = {key.decode('utf-8'): value.decode('utf-8') for key, value in info.properties.items()}
|
83
77
|
decoded_ip = ".".join(str(byte) for byte in info.addresses[0])
|
84
78
|
self.get_instance().add_device(decoded_properties, decoded_ip)
|
85
79
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
80
|
def add_device(self, properties_dict, ip_address):
|
90
81
|
"""
|
91
82
|
Add a device to the found devices dictionary.
|
92
83
|
"""
|
93
|
-
logging.warning("Adding device: " +str(ip_address)+"\n"+str(properties_dict))
|
94
84
|
qtl_num = "QTL" + properties_dict['86'] if '86' in properties_dict else None
|
95
85
|
# Check if module contains REST connection
|
96
86
|
if '84' in properties_dict:
|
@@ -120,16 +110,11 @@ class MyListener:
|
|
120
110
|
Get the found devices and perform ping check.
|
121
111
|
"""
|
122
112
|
temp_dict = self.get_instance().found_devices
|
123
|
-
remove_device = False
|
124
113
|
for key, value in list(temp_dict.items()):
|
125
|
-
|
126
|
-
if
|
127
|
-
remove_device=True # Remove the device if it can't be pinged
|
128
|
-
elif self.get_instance().target_conn not in key.lower() and self.get_instance().target_conn.lower() != "all":
|
129
|
-
remove_device = True # or if its of the wrong connection type.
|
130
|
-
if remove_device is True:
|
114
|
+
result = ping(key[key.index(":") + 1:])
|
115
|
+
if not result or self.get_instance().target_conn not in key.lower():
|
131
116
|
del self.get_instance().found_devices[key]
|
132
|
-
|
117
|
+
print(str(self.get_instance().found_devices))
|
133
118
|
return self.get_instance().found_devices
|
134
119
|
|
135
120
|
def get_zeroconf(self):
|
quarchpy/docs/CHANGES.rst
CHANGED
Binary file
|
Binary file
|
Binary file
|