tplinkrouterc6u 4.0.2__tar.gz → 4.1.0__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.
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/PKG-INFO +4 -1
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/README.md +3 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/setup.py +1 -1
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/test/test_client_deco.py +2 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u/client.py +6 -2
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u/dataclass.py +2 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u.egg-info/PKG-INFO +4 -1
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/LICENSE +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/setup.cfg +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/test/__init__.py +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/test/test_client.py +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/test/test_client_mr.py +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u/__init__.py +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u/encryption.py +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u/enum.py +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u/exception.py +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u.egg-info/SOURCES.txt +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u.egg-info/dependency_links.txt +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u.egg-info/requires.txt +0 -0
- {tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u.egg-info/top_level.txt +0 -0
|
@@ -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
|
|
@@ -139,6 +139,8 @@ or you have TP-link C1200 V2 or similar router you need to get web encrypted pas
|
|
|
139
139
|
| hostname | client hostname | str |
|
|
140
140
|
| packets_sent | total packets sent | int, None |
|
|
141
141
|
| packets_received | total packets received | int, None |
|
|
142
|
+
| down_speed | download speed | int, None |
|
|
143
|
+
| up_speed | upload speed | int, None |
|
|
142
144
|
|
|
143
145
|
### <a id="IPv4Reservation">IPv4Reservation</a>
|
|
144
146
|
| Field | Description | Type |
|
|
@@ -207,6 +209,7 @@ or you have TP-link C1200 V2 or similar router you need to get web encrypted pas
|
|
|
207
209
|
- Archer AX21 v1.20
|
|
208
210
|
- Archer AX23 v1.0
|
|
209
211
|
- Archer AX50 v1.0
|
|
212
|
+
- Archer AX53 v2
|
|
210
213
|
- Archer AX55 v1.0
|
|
211
214
|
- Archer AX55 V1.60
|
|
212
215
|
- Archer AX72 V1
|
|
@@ -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)
|
|
@@ -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)
|
|
@@ -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
|
|
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
|
{tplinkrouterc6u-4.0.2 → tplinkrouterc6u-4.1.0}/tplinkrouterc6u.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|