tinytoolslib 0.3.2__tar.gz → 0.3.4__tar.gz
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.
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/PKG-INFO +1 -1
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/pyproject.toml +1 -1
- tinytoolslib-0.3.4/tinytoolslib/__version__.py +1 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/models.py +27 -2
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib.egg-info/PKG-INFO +1 -1
- tinytoolslib-0.3.2/tinytoolslib/__version__.py +0 -1
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/README.md +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/setup.cfg +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/__init__.py +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/constants.py +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/discovery.py +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/exceptions.py +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/flash.py +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/parsers.py +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib/requests.py +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib.egg-info/SOURCES.txt +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib.egg-info/dependency_links.txt +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib.egg-info/requires.txt +0 -0
- {tinytoolslib-0.3.2 → tinytoolslib-0.3.4}/tinytoolslib.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinytoolslib
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Set of tools for use with Tinycontrol devices like LK2.X, LK3.X, LK4.X or tcPDU.
|
|
5
5
|
Author-email: Bartek Barszczewski <tinycontrol.software@gmail.com>
|
|
6
6
|
Keywords: tinycontrol,lk,tcpdu
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.3.4'
|
|
@@ -1057,7 +1057,7 @@ class LK_HW_30(DeviceModel):
|
|
|
1057
1057
|
|
|
1058
1058
|
def _restart(self):
|
|
1059
1059
|
"""Prepare command to restart device."""
|
|
1060
|
-
return "/stm.cgi?
|
|
1060
|
+
return "/stm.cgi?lk3restart=1"
|
|
1061
1061
|
|
|
1062
1062
|
def set_analog_input(
|
|
1063
1063
|
self,
|
|
@@ -1137,7 +1137,7 @@ class LK_HW_35(LK_HW_30):
|
|
|
1137
1137
|
cls, hardware_version: Union[str, None], software_version: str
|
|
1138
1138
|
) -> bool:
|
|
1139
1139
|
return (
|
|
1140
|
-
"3.5" <= hardware_version < "
|
|
1140
|
+
"3.5" <= hardware_version < "3.9"
|
|
1141
1141
|
and not software_version.endswith("ps")
|
|
1142
1142
|
and not software_version.endswith("dcdc")
|
|
1143
1143
|
)
|
|
@@ -1164,6 +1164,30 @@ class LK_HW_35(LK_HW_30):
|
|
|
1164
1164
|
return cmd
|
|
1165
1165
|
|
|
1166
1166
|
|
|
1167
|
+
@dataclass
|
|
1168
|
+
class LK_HW_39(LK_HW_35):
|
|
1169
|
+
"""Methods for working with LK3.9."""
|
|
1170
|
+
|
|
1171
|
+
info: ClassVar[Union[DeviceInfo, None]] = DeviceInfo(
|
|
1172
|
+
"LK HW 3.9", # Logically belongs to LK3.5 family
|
|
1173
|
+
DeviceFamily.LK,
|
|
1174
|
+
"lc39",
|
|
1175
|
+
"https://tinycontrol.pl/en/lan-controller-35/firmware/#firmware",
|
|
1176
|
+
fw_update_method=FWUpdateMethod.TFTP,
|
|
1177
|
+
extras={"number_of_outputs": 6},
|
|
1178
|
+
)
|
|
1179
|
+
|
|
1180
|
+
@classmethod
|
|
1181
|
+
def check_version(
|
|
1182
|
+
cls, hardware_version: Union[str, None], software_version: str
|
|
1183
|
+
) -> bool:
|
|
1184
|
+
return (
|
|
1185
|
+
"3.9" <= hardware_version < "4.0"
|
|
1186
|
+
and not software_version.endswith("ps")
|
|
1187
|
+
and not software_version.endswith("dcdc")
|
|
1188
|
+
)
|
|
1189
|
+
|
|
1190
|
+
|
|
1167
1191
|
@dataclass
|
|
1168
1192
|
class LK_HW_35_PS(LK_HW_35):
|
|
1169
1193
|
"""Methods for working with IP Power Socket v2 (LK3.5)."""
|
|
@@ -1475,6 +1499,7 @@ DEVICE_MODELS = [
|
|
|
1475
1499
|
LK_HW_40_mini,
|
|
1476
1500
|
TCPDU,
|
|
1477
1501
|
LK_HW_40,
|
|
1502
|
+
LK_HW_39,
|
|
1478
1503
|
LK_HW_35,
|
|
1479
1504
|
LK_HW_35_PS,
|
|
1480
1505
|
LK_HW_35_DCDC,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinytoolslib
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Set of tools for use with Tinycontrol devices like LK2.X, LK3.X, LK4.X or tcPDU.
|
|
5
5
|
Author-email: Bartek Barszczewski <tinycontrol.software@gmail.com>
|
|
6
6
|
Keywords: tinycontrol,lk,tcpdu
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.3.2'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|