quarchpy 2.2.14__py2.py3-none-any.whl → 2.2.16__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/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/__pycache__/_version.cpython-310.pyc +0 -0
- quarchpy/__pycache__/connection.cpython-310.pyc +0 -0
- quarchpy/__pycache__/install_qps.cpython-310.pyc +0 -0
- quarchpy/_version.py +1 -1
- quarchpy/config_files/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/config_files/__pycache__/quarch_config_parser.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/StreamChannels.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QIS.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_QPS.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_ReST.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_Serial.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_TCP.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/connection_USB.cpython-310.pyc +0 -0
- quarchpy/connection_specific/__pycache__/mDNS.cpython-310.pyc +0 -0
- quarchpy/connection_specific/connection_QIS.py +1510 -1482
- quarchpy/connection_specific/connection_Telnet.py +8 -2
- quarchpy/connection_specific/jdk_jres/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/jdk_jres/__pycache__/fix_permissions.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialposix.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/__pycache__/serialutil.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_common.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_linux.cpython-310.pyc +0 -0
- quarchpy/connection_specific/serial/tools/__pycache__/list_ports_posix.cpython-310.pyc +0 -0
- quarchpy/debug/__pycache__/SystemTest.cpython-310.pyc +0 -0
- quarchpy/debug/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/debug/__pycache__/versionCompare.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device_fixture_idn_info.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device_idn_info.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/device_network_info.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/discovered_device.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/packet_processing.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/quarchArray.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/quarchPPM.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/quarchQPS.cpython-310.pyc +0 -0
- quarchpy/device/__pycache__/scanDevices.cpython-310.pyc +0 -0
- quarchpy/device/quarchArray.py +9 -5
- quarchpy/device/quarchPPM.py +7 -10
- quarchpy/disk_test/__pycache__/AbsDiskFinder.cpython-310.pyc +0 -0
- quarchpy/disk_test/__pycache__/DiskTargetSelection.cpython-310.pyc +0 -0
- quarchpy/disk_test/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/disk_test/__pycache__/iometerDiskFinder.cpython-310.pyc +0 -0
- quarchpy/docs/CHANGES.rst +8 -0
- 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/doctrees/source/quarchpy.connection_specific.doctree +0 -0
- quarchpy/docs/_build/doctrees/source/quarchpy.device.doctree +0 -0
- quarchpy/docs/_build/doctrees/source/quarchpy.qis.doctree +0 -0
- quarchpy/docs/_build/html/CHANGES.html +169 -155
- quarchpy/docs/_build/html/_sources/CHANGES.rst.txt +11 -1
- quarchpy/docs/_build/html/genindex.html +21 -9
- quarchpy/docs/_build/html/index.html +80 -78
- quarchpy/docs/_build/html/objects.inv +0 -0
- quarchpy/docs/_build/html/searchindex.js +1 -1
- quarchpy/docs/_build/html/source/changelog.html +249 -233
- quarchpy/docs/_build/html/source/quarchpy.connection_specific.html +12 -3
- quarchpy/docs/_build/html/source/quarchpy.device.html +82 -28
- quarchpy/docs/_build/html/source/quarchpy.html +8 -2
- quarchpy/docs/_build/html/source/quarchpy.qis.html +12 -3
- quarchpy/fio/__pycache__/FIO_interface.cpython-310.pyc +0 -0
- quarchpy/fio/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/install_qps.py +99 -62
- quarchpy/iometer/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/iometer/__pycache__/gen_iometer_template.cpython-310.pyc +0 -0
- quarchpy/iometer/__pycache__/iometerFuncs.cpython-310.pyc +0 -0
- quarchpy/qis/__pycache__/StreamHeaderInfo.cpython-310.pyc +0 -0
- quarchpy/qis/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/qis/__pycache__/qisFuncs.cpython-310.pyc +0 -0
- quarchpy/qps/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/qps/__pycache__/qpsFuncs.cpython-310.pyc +0 -0
- quarchpy/qps/qpsFuncs.py +4 -0
- quarchpy/user_interface/__pycache__/__init__.cpython-310.pyc +0 -0
- quarchpy/user_interface/__pycache__/user_interface.cpython-310.pyc +0 -0
- quarchpy/utilities/__pycache__/TestCenter.cpython-310.pyc +0 -0
- quarchpy/utilities/__pycache__/TimeValue.cpython-310.pyc +0 -0
- quarchpy/utilities/__pycache__/__init__.cpython-310.pyc +0 -0
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/METADATA +19 -2
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/RECORD +87 -87
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/WHEEL +1 -1
- {quarchpy-2.2.14.dist-info → quarchpy-2.2.16.dist-info}/top_level.txt +0 -0
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
from telnetlib import Telnet
|
|
2
2
|
import time
|
|
3
|
+
#from telnetlib3 import Telnet
|
|
4
|
+
|
|
3
5
|
|
|
4
6
|
class TelnetConn:
|
|
5
7
|
def __init__(self, ConnTarget):
|
|
6
8
|
self.ConnTarget = ConnTarget
|
|
7
|
-
self.Connection =
|
|
9
|
+
self.Connection = Telnet(self.ConnTarget)
|
|
8
10
|
time.sleep(1)
|
|
9
11
|
self.Connection.read_very_eager()
|
|
10
12
|
|
|
11
13
|
def close(self):
|
|
12
14
|
self.Connection.close()
|
|
15
|
+
# The closed device reports as in use if a connection is opened to it within 0.05s.
|
|
16
|
+
# This happens during scanning as rest detects the device and shows it as "in use" Putting a sleep here
|
|
17
|
+
# allows time for the connection to be close,
|
|
18
|
+
time.sleep(0.15)
|
|
13
19
|
return True
|
|
14
20
|
|
|
15
21
|
def sendCommand(self, Command, expectedResponse = True):
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
quarchpy/device/quarchArray.py
CHANGED
|
@@ -14,6 +14,7 @@ class quarchArray(quarchDevice):
|
|
|
14
14
|
|
|
15
15
|
self.ConType=baseDevice.ConType
|
|
16
16
|
self.connectionObj=baseDevice.connectionObj
|
|
17
|
+
self.baseDevice = baseDevice
|
|
17
18
|
pass
|
|
18
19
|
|
|
19
20
|
def getSubDevice(self, port):
|
|
@@ -51,23 +52,23 @@ class quarchArray(quarchDevice):
|
|
|
51
52
|
|
|
52
53
|
return moduleList
|
|
53
54
|
|
|
54
|
-
|
|
55
|
+
def close_connection(self) -> str:
|
|
56
|
+
self.baseDevice.close_connection()
|
|
55
57
|
|
|
56
58
|
|
|
57
59
|
class subDevice(quarchDevice):
|
|
58
60
|
|
|
59
61
|
def __init__(self, baseDevice, port):
|
|
60
|
-
self.port = port
|
|
62
|
+
self.port = str(port)
|
|
61
63
|
self.connectionObj = baseDevice.connectionObj
|
|
62
64
|
self.ConType = baseDevice.ConType
|
|
63
65
|
self.baseDevice = baseDevice
|
|
64
66
|
|
|
65
|
-
def
|
|
66
|
-
portNumb = str(self.port)
|
|
67
|
+
def send_command(self, CommandString, expectedResponse = True):
|
|
67
68
|
returnStr = ''
|
|
68
69
|
|
|
69
70
|
# Run the base device command
|
|
70
|
-
respStr = quarchDevice.send_command(self, CommandString + " <" +
|
|
71
|
+
respStr = quarchDevice.send_command(self, CommandString + " <" + str(self.port) + ">")
|
|
71
72
|
# Split into lines, remove the line number sections then reform the string (removing the wanted 'x.y:' section at the start of each line
|
|
72
73
|
respLines = respStr.split('\n')
|
|
73
74
|
for x in respLines:
|
|
@@ -77,3 +78,6 @@ class subDevice(quarchDevice):
|
|
|
77
78
|
returnStr = returnStr.strip()
|
|
78
79
|
return returnStr
|
|
79
80
|
|
|
81
|
+
def close_connection(self) -> str:
|
|
82
|
+
self.baseDevice.close_connection()
|
|
83
|
+
|
quarchpy/device/quarchPPM.py
CHANGED
|
@@ -61,7 +61,8 @@ class quarchPPM(quarchDevice):
|
|
|
61
61
|
separator: str = ",",
|
|
62
62
|
in_memory_data: Optional[StringIO] = None,
|
|
63
63
|
output_file_handle: Optional[IO] = None,
|
|
64
|
-
use_gzip: Optional[bool] = None
|
|
64
|
+
use_gzip: Optional[bool] = None,
|
|
65
|
+
gzip_compress_level: Optional[int] = 9
|
|
65
66
|
) -> str:
|
|
66
67
|
"""
|
|
67
68
|
Starts a data stream from the device.
|
|
@@ -69,11 +70,8 @@ class quarchPPM(quarchDevice):
|
|
|
69
70
|
Args:
|
|
70
71
|
file_name (str): The name of the file to stream data to.
|
|
71
72
|
file_max_mb (int): The maximum size of the output file in megabytes.
|
|
72
|
-
stream_name (str): A descriptive name for the stream.
|
|
73
73
|
stream_duration (Optional[float]): The duration for the stream to run
|
|
74
74
|
in seconds. Defaults to None (continuous).
|
|
75
|
-
stream_average (Optional[int]): The number of samples to average.
|
|
76
|
-
Defaults to None.
|
|
77
75
|
release_on_data (bool): If True, releases the connection on data
|
|
78
76
|
reception.
|
|
79
77
|
separator (str): The separator character to use in the output file.
|
|
@@ -83,13 +81,14 @@ class quarchPPM(quarchDevice):
|
|
|
83
81
|
stream data to. Defaults to None.
|
|
84
82
|
use_gzip (Optional[bool]): If True, compresses the output file using
|
|
85
83
|
gzip. Defaults to None.
|
|
84
|
+
gzip_compress_level (Optional[int]): The gzip compression level
|
|
86
85
|
|
|
87
86
|
Returns:
|
|
88
87
|
str: The response from the device after starting the stream.
|
|
89
88
|
"""
|
|
90
89
|
return self.connectionObj.qis.startStream(
|
|
91
90
|
self.ConString, file_name, file_max_mb, release_on_data, separator, stream_duration,
|
|
92
|
-
in_memory_data, output_file_handle, use_gzip
|
|
91
|
+
in_memory_data, output_file_handle, use_gzip, gzip_compress_level
|
|
93
92
|
)
|
|
94
93
|
|
|
95
94
|
def stream_running_status(self) -> str:
|
|
@@ -266,7 +265,7 @@ class quarchPPM(quarchDevice):
|
|
|
266
265
|
streamName: str = 'Stream With No Name', streamDuration: Optional[float] = None,
|
|
267
266
|
streamAverage: Optional[int] = None, releaseOnData: bool = False, separator: str = ",",
|
|
268
267
|
inMemoryData: Optional[StringIO] = None, outputFileHandle: Optional[IO] = None,
|
|
269
|
-
useGzip: Optional[bool] = None) -> str:
|
|
268
|
+
useGzip: Optional[bool] = None, gzipCompressLevel: Optional[int] = 9) -> str:
|
|
270
269
|
"""
|
|
271
270
|
DEPRECATED: Use start_stream instead.
|
|
272
271
|
|
|
@@ -275,11 +274,8 @@ class quarchPPM(quarchDevice):
|
|
|
275
274
|
Args:
|
|
276
275
|
fileName (str): The name of the file to stream data to.
|
|
277
276
|
fileMaxMB (int): The maximum size of the output file in megabytes.
|
|
278
|
-
streamName (str): A descriptive name for the stream.
|
|
279
277
|
streamDuration (Optional[float]): The duration for the stream to run
|
|
280
278
|
in seconds. Defaults to None (continuous).
|
|
281
|
-
streamAverage (Optional[int]): The number of samples to average.
|
|
282
|
-
Defaults to None.
|
|
283
279
|
releaseOnData (bool): If True, releases the connection on data
|
|
284
280
|
reception.
|
|
285
281
|
separator (str): The separator character to use in the output file.
|
|
@@ -289,6 +285,7 @@ class quarchPPM(quarchDevice):
|
|
|
289
285
|
stream data to. Defaults to None.
|
|
290
286
|
useGzip (Optional[bool]): If True, compresses the output file using
|
|
291
287
|
gzip. Defaults to None.
|
|
288
|
+
gzipCompressLevel (Optional[int]): The gzip compression level
|
|
292
289
|
|
|
293
290
|
Returns:
|
|
294
291
|
str: The response from the device after starting the stream.
|
|
@@ -298,7 +295,7 @@ class quarchPPM(quarchDevice):
|
|
|
298
295
|
stream_duration=streamDuration,
|
|
299
296
|
release_on_data=releaseOnData, separator=separator,
|
|
300
297
|
in_memory_data=inMemoryData, output_file_handle=outputFileHandle,
|
|
301
|
-
use_gzip=useGzip
|
|
298
|
+
use_gzip=useGzip, gzip_compress_level=gzipCompressLevel
|
|
302
299
|
)
|
|
303
300
|
|
|
304
301
|
def streamRunningStatus(self) -> str:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
quarchpy/docs/CHANGES.rst
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|