tplinkrouterc6u 4.0.2__py3-none-any.whl → 4.1.0__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.
- test/test_client_deco.py +2 -0
- tplinkrouterc6u/client.py +6 -2
- tplinkrouterc6u/dataclass.py +2 -0
- {tplinkrouterc6u-4.0.2.dist-info → tplinkrouterc6u-4.1.0.dist-info}/METADATA +4 -1
- {tplinkrouterc6u-4.0.2.dist-info → tplinkrouterc6u-4.1.0.dist-info}/RECORD +8 -8
- {tplinkrouterc6u-4.0.2.dist-info → tplinkrouterc6u-4.1.0.dist-info}/LICENSE +0 -0
- {tplinkrouterc6u-4.0.2.dist-info → tplinkrouterc6u-4.1.0.dist-info}/WHEEL +0 -0
- {tplinkrouterc6u-4.0.2.dist-info → tplinkrouterc6u-4.1.0.dist-info}/top_level.txt +0 -0
test/test_client_deco.py
CHANGED
|
@@ -246,6 +246,8 @@ class TestTPLinkDecoClient(unittest.TestCase):
|
|
|
246
246
|
self.assertIsInstance(status.devices[0], Device)
|
|
247
247
|
self.assertEqual(status.devices[0].type, Connection.HOST_5G)
|
|
248
248
|
self.assertEqual(status.devices[0].macaddr, 'CF-51-C9-04-E1-02')
|
|
249
|
+
self.assertEqual(status.devices[0].down_speed, 3)
|
|
250
|
+
self.assertEqual(status.devices[0].up_speed, 17)
|
|
249
251
|
self.assertIsInstance(status.devices[0].macaddress, macaddress.EUI48)
|
|
250
252
|
self.assertIsInstance(status.devices[1], Device)
|
|
251
253
|
self.assertEqual(status.devices[1].type, Connection.IOT_2G)
|
tplinkrouterc6u/client.py
CHANGED
|
@@ -575,10 +575,13 @@ class TPLinkDecoClient(TplinkEncryption, AbstractRouter):
|
|
|
575
575
|
status.iot_clients_total += 1
|
|
576
576
|
|
|
577
577
|
ip = item['ip'] if item.get('ip') else '0.0.0.0'
|
|
578
|
-
|
|
578
|
+
device = Device(conn,
|
|
579
579
|
macaddress.EUI48(item['mac']),
|
|
580
580
|
ipaddress.IPv4Address(ip),
|
|
581
|
-
base64.b64decode(item['name']).decode())
|
|
581
|
+
base64.b64decode(item['name']).decode())
|
|
582
|
+
device.down_speed = item.get('down_speed')
|
|
583
|
+
device.up_speed = item.get('up_speed')
|
|
584
|
+
devices.append(device)
|
|
582
585
|
|
|
583
586
|
status.clients_total = (status.wired_total + status.wifi_clients_total + status.guest_clients_total
|
|
584
587
|
+ (0 if status.iot_clients_total is None else status.iot_clients_total))
|
|
@@ -695,6 +698,7 @@ class TplinkC1200Router(TplinkBaseRouter):
|
|
|
695
698
|
regex_result = re.search('sysauth=(.*);', response.headers['set-cookie'])
|
|
696
699
|
self._sysauth = regex_result.group(1)
|
|
697
700
|
self._logged = True
|
|
701
|
+
self._smart_network = False
|
|
698
702
|
|
|
699
703
|
except Exception as e:
|
|
700
704
|
error = "TplinkRouter - C1200 - Cannot authorize! Error - {}; Response - {}".format(e, response.text)
|
tplinkrouterc6u/dataclass.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tplinkrouterc6u
|
|
3
|
-
Version: 4.0
|
|
3
|
+
Version: 4.1.0
|
|
4
4
|
Summary: TP-Link Router API
|
|
5
5
|
Home-page: https://github.com/AlexandrErohin/TP-Link-Archer-C6U
|
|
6
6
|
Author: Alex Erohin
|
|
@@ -160,6 +160,8 @@ or you have TP-link C1200 V2 or similar router you need to get web encrypted pas
|
|
|
160
160
|
| hostname | client hostname | str |
|
|
161
161
|
| packets_sent | total packets sent | int, None |
|
|
162
162
|
| packets_received | total packets received | int, None |
|
|
163
|
+
| down_speed | download speed | int, None |
|
|
164
|
+
| up_speed | upload speed | int, None |
|
|
163
165
|
|
|
164
166
|
### <a id="IPv4Reservation">IPv4Reservation</a>
|
|
165
167
|
| Field | Description | Type |
|
|
@@ -228,6 +230,7 @@ or you have TP-link C1200 V2 or similar router you need to get web encrypted pas
|
|
|
228
230
|
- Archer AX21 v1.20
|
|
229
231
|
- Archer AX23 v1.0
|
|
230
232
|
- Archer AX50 v1.0
|
|
233
|
+
- Archer AX53 v2
|
|
231
234
|
- Archer AX55 v1.0
|
|
232
235
|
- Archer AX55 V1.60
|
|
233
236
|
- Archer AX72 V1
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
test/__init__.py,sha256=McQmUjeN3AwmwdS6QNfwGXXE77OKoPK852I2BM9XsrU,210
|
|
2
2
|
test/test_client.py,sha256=0RzxjlLGyr3VUHFesntfm_7uh80rWSnr36VJZhaH-x8,30136
|
|
3
|
-
test/test_client_deco.py,sha256=
|
|
3
|
+
test/test_client_deco.py,sha256=3y8ibOBdOrKX2fxX62C8Z-NMOqQRm8D3tu2Ng5TFbrg,30588
|
|
4
4
|
test/test_client_mr.py,sha256=DzPMpKm6e2_CDHqatWrOmMgaIGBqY0iOeEYLf6JL7uQ,23145
|
|
5
5
|
tplinkrouterc6u/__init__.py,sha256=CECjWGaoM8ABX3-95GUa4Xg9DCKzX2k8IprPg1fvnYw,402
|
|
6
|
-
tplinkrouterc6u/client.py,sha256=
|
|
7
|
-
tplinkrouterc6u/dataclass.py,sha256=
|
|
6
|
+
tplinkrouterc6u/client.py,sha256=HFGs5KQOOxa9ArGfc-k4hTPYFkkliJBVxoIANbjKEjs,48906
|
|
7
|
+
tplinkrouterc6u/dataclass.py,sha256=e2H49Yik3Fls4dAoyIxD4e4TmFK0vWDDdJA2A_1T-N8,6716
|
|
8
8
|
tplinkrouterc6u/encryption.py,sha256=jNhCrrzK2sb1TmFacaJ9mZR2A07p2emPWAgdLTfbHzA,5558
|
|
9
9
|
tplinkrouterc6u/enum.py,sha256=bqmnu4gQMEntMCgsya2R7dRcrSJIDPWMj8vNN6JxeME,1382
|
|
10
10
|
tplinkrouterc6u/exception.py,sha256=PUTPsadxiylQhIRUMfkN1RWXh07cHmdav9Pdgxs3Lmw,90
|
|
11
|
-
tplinkrouterc6u-4.0.
|
|
12
|
-
tplinkrouterc6u-4.0.
|
|
13
|
-
tplinkrouterc6u-4.0.
|
|
14
|
-
tplinkrouterc6u-4.0.
|
|
15
|
-
tplinkrouterc6u-4.0.
|
|
11
|
+
tplinkrouterc6u-4.1.0.dist-info/LICENSE,sha256=YF6QR6Vjxcg5b_sYIyqkME7FZYau5TfEUGTG-0JeRK0,35129
|
|
12
|
+
tplinkrouterc6u-4.1.0.dist-info/METADATA,sha256=lvrkwD022bOjcmfKmNNZgaJkDEOD9zpSEPvsVadIdwQ,12825
|
|
13
|
+
tplinkrouterc6u-4.1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
14
|
+
tplinkrouterc6u-4.1.0.dist-info/top_level.txt,sha256=1iSCCIueqgEkrTxtQ-jiHe99jAB10zqrVdBcwvNfe_M,21
|
|
15
|
+
tplinkrouterc6u-4.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|