tplinkrouterc6u 5.10.3__py3-none-any.whl → 5.12.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_re330.py +296 -0
- tplinkrouterc6u/__init__.py +3 -2
- tplinkrouterc6u/client/c80.py +7 -28
- tplinkrouterc6u/client/ex.py +38 -1
- tplinkrouterc6u/client/mr.py +76 -5
- tplinkrouterc6u/client/mr200.py +113 -5
- tplinkrouterc6u/client/re330.py +393 -0
- tplinkrouterc6u/client/xdr.py +2 -0
- tplinkrouterc6u/common/dataclass.py +1 -0
- tplinkrouterc6u/common/encryption.py +113 -0
- tplinkrouterc6u/common/package_enum.py +1 -0
- tplinkrouterc6u/provider.py +9 -5
- {tplinkrouterc6u-5.10.3.dist-info → tplinkrouterc6u-5.12.0.dist-info}/METADATA +16 -5
- {tplinkrouterc6u-5.10.3.dist-info → tplinkrouterc6u-5.12.0.dist-info}/RECORD +17 -15
- {tplinkrouterc6u-5.10.3.dist-info → tplinkrouterc6u-5.12.0.dist-info}/WHEEL +0 -0
- {tplinkrouterc6u-5.10.3.dist-info → tplinkrouterc6u-5.12.0.dist-info}/licenses/LICENSE +0 -0
- {tplinkrouterc6u-5.10.3.dist-info → tplinkrouterc6u-5.12.0.dist-info}/top_level.txt +0 -0
tplinkrouterc6u/provider.py
CHANGED
|
@@ -5,26 +5,30 @@ from tplinkrouterc6u.common.exception import ClientException
|
|
|
5
5
|
from tplinkrouterc6u.client.c6u import TplinkRouter
|
|
6
6
|
from tplinkrouterc6u.client.deco import TPLinkDecoClient
|
|
7
7
|
from tplinkrouterc6u.client_abstract import AbstractRouter
|
|
8
|
-
from tplinkrouterc6u.client.mr import TPLinkMRClient
|
|
9
|
-
from tplinkrouterc6u.client.
|
|
8
|
+
from tplinkrouterc6u.client.mr import TPLinkMRClient, TPLinkMRClientGCM
|
|
9
|
+
from tplinkrouterc6u.client.mr200 import TPLinkMR200Client
|
|
10
|
+
from tplinkrouterc6u.client.ex import TPLinkEXClient, TPLinkEXClientGCM
|
|
10
11
|
from tplinkrouterc6u.client.c5400x import TplinkC5400XRouter
|
|
11
12
|
from tplinkrouterc6u.client.c1200 import TplinkC1200Router
|
|
12
13
|
from tplinkrouterc6u.client.c80 import TplinkC80Router
|
|
13
14
|
from tplinkrouterc6u.client.vr import TPLinkVRClient
|
|
14
15
|
from tplinkrouterc6u.client.wdr import TplinkWDRRouter
|
|
16
|
+
from tplinkrouterc6u.client.re330 import TplinkRE330Router
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
class TplinkRouterProvider:
|
|
18
20
|
@staticmethod
|
|
19
21
|
def get_client(host: str, password: str, username: str = 'admin', logger: Logger = None,
|
|
20
22
|
verify_ssl: bool = True, timeout: int = 30) -> AbstractRouter:
|
|
21
|
-
for client in [TplinkC5400XRouter, TPLinkVRClient,
|
|
22
|
-
|
|
23
|
+
for client in [TplinkC5400XRouter, TPLinkVRClient, TPLinkEXClientGCM, TPLinkEXClient, TPLinkMRClientGCM,
|
|
24
|
+
TPLinkMRClient, TPLinkMR200Client, TPLinkDecoClient, TPLinkXDRClient, TplinkRouter,
|
|
25
|
+
TplinkC80Router, TplinkWDRRouter, TplinkRE330Router]:
|
|
23
26
|
router = client(host, password, username, logger, verify_ssl, timeout)
|
|
24
27
|
if router.supports():
|
|
25
28
|
return router
|
|
26
29
|
|
|
27
|
-
message = ('Login failed! Please check if your router local password is correct
|
|
30
|
+
message = ('Login failed! Please check if your router local password is correct,'
|
|
31
|
+
'check if the default router username is correct or '
|
|
28
32
|
'try to use web encrypted password instead. Check the documentation!')
|
|
29
33
|
router = TplinkC1200Router(host, password, username, logger, verify_ssl, timeout)
|
|
30
34
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tplinkrouterc6u
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.12.0
|
|
4
4
|
Summary: TP-Link Router API (supports also Mercusys Router)
|
|
5
5
|
Home-page: https://github.com/AlexandrErohin/TP-Link-Archer-C6U
|
|
6
6
|
Author: Alex Erohin
|
|
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
16
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
16
17
|
Requires-Python: >=3.10
|
|
17
18
|
Description-Content-Type: text/markdown
|
|
@@ -48,7 +49,7 @@ Python package for API access and management for TP-Link and Mercusys Routers. S
|
|
|
48
49
|
- [pycryptodome](https://pypi.org/project/pycryptodome/)
|
|
49
50
|
|
|
50
51
|
## Usage
|
|
51
|
-
Enter the host & credentials used to log in to your router management page. Username is admin by default. But you may pass username as third parameter
|
|
52
|
+
Enter the host & credentials used to log in to your router management page. Username is `admin` by default. But you may pass username as third parameter. Some routers have default username - `user`
|
|
52
53
|
|
|
53
54
|
```python
|
|
54
55
|
from tplinkrouterc6u import (
|
|
@@ -56,13 +57,17 @@ from tplinkrouterc6u import (
|
|
|
56
57
|
TplinkRouter,
|
|
57
58
|
TplinkC1200Router,
|
|
58
59
|
TplinkC5400XRouter,
|
|
59
|
-
TPLinkMRClient,
|
|
60
|
+
TPLinkMRClient, # Class for MR series routers which supports old firmwares with AES cipher CBC mode
|
|
61
|
+
TPLinkMRClientGCM, # Class for MR series routers which supports AES cipher GCM mode
|
|
62
|
+
TPLinkMR200Client,
|
|
60
63
|
TPLinkVRClient,
|
|
61
|
-
TPLinkEXClient,
|
|
64
|
+
TPLinkEXClient, # Class for EX series routers which supports old firmwares with AES cipher CBC mode
|
|
65
|
+
TPLinkEXClientGCM, # Class for EX series routers which supports AES cipher GCM mode
|
|
62
66
|
TPLinkXDRClient,
|
|
63
67
|
TPLinkDecoClient,
|
|
64
68
|
TplinkC80Router,
|
|
65
69
|
TplinkWDRRouter,
|
|
70
|
+
TplinkRE330Router,
|
|
66
71
|
Connection
|
|
67
72
|
)
|
|
68
73
|
from logging import Logger
|
|
@@ -243,6 +248,7 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
|
|
|
243
248
|
| --- |---|---|
|
|
244
249
|
| openvpn_enable | OpenVPN is enabled | bool |
|
|
245
250
|
| pptpvpn_enable | PPTPVPN is enabled | bool |
|
|
251
|
+
| ipsecvpn_enable | IPSEC is enabled | bool |
|
|
246
252
|
| openvpn_clients_total | OpenVPN clients connected | int |
|
|
247
253
|
| pptpvpn_clients_total | PPTPVPN clients connected | int |
|
|
248
254
|
|
|
@@ -292,6 +298,7 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
|
|
|
292
298
|
### <a id="vpn">VPN</a>
|
|
293
299
|
- VPN.OPEN_VPN
|
|
294
300
|
- VPN.PPTP_VPN
|
|
301
|
+
- VPN.IPSEC
|
|
295
302
|
|
|
296
303
|
## <a id="supports">Supported routers</a>
|
|
297
304
|
- [TP-LINK routers](#tplink)
|
|
@@ -340,7 +347,7 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
|
|
|
340
347
|
- Archer C80 (1.0, 2.20)
|
|
341
348
|
- Archer C5400X V1
|
|
342
349
|
- Archer GX90 v1.0
|
|
343
|
-
- Archer MR200 (v5, v5.3, v6.0)
|
|
350
|
+
- Archer MR200 (v2, v5, v5.3, v6.0)
|
|
344
351
|
- Archer MR550 v1
|
|
345
352
|
- Archer MR600 (v1, v2, v3)
|
|
346
353
|
- Archer NX200 v2.0
|
|
@@ -349,6 +356,7 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
|
|
|
349
356
|
- Archer VR900v
|
|
350
357
|
- Archer VR1200v v1
|
|
351
358
|
- Archer VR2100v v1
|
|
359
|
+
- Archer VX231v v1.0
|
|
352
360
|
- Archer VX1800v v1.0
|
|
353
361
|
- BE11000 2.0
|
|
354
362
|
- Deco M4 2.0
|
|
@@ -379,10 +387,13 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
|
|
|
379
387
|
- TL-WA3001 v1.0
|
|
380
388
|
- TL-XDR3010 V2
|
|
381
389
|
- TL-WDR3600 V1
|
|
390
|
+
- TL-XDR6088 v1.0.30
|
|
382
391
|
- VX420-G2h v1.1
|
|
383
392
|
- VX800v v1
|
|
384
393
|
- XC220-G3v v2.30
|
|
394
|
+
- RE330 v1
|
|
385
395
|
### <a id="mercusys">MERCUSYS routers</a>
|
|
396
|
+
- AC10 1.20
|
|
386
397
|
- MR47BE v1.0
|
|
387
398
|
- MR50G 1.0
|
|
388
399
|
- H60XR 1.0
|
|
@@ -5,31 +5,33 @@ test/test_client_c80.py,sha256=RY_1SgRVcQQdN9h0_IXA0YW4_0flEB_uel05QvDDfws,42359
|
|
|
5
5
|
test/test_client_deco.py,sha256=YPLKRD8GoyDYHfRgdXvCk8iVNw8zdMJW-AHVnNbpdTM,31719
|
|
6
6
|
test/test_client_ex.py,sha256=Kg6svEKtyGAfyF9yrLh2qZa2tK1mlEBJJwXRsq1MAjo,26591
|
|
7
7
|
test/test_client_mr.py,sha256=lePxkmjcPzcrSFcaT8bT67L154cVJIOWrFlXMDOa8oY,33423
|
|
8
|
+
test/test_client_re330.py,sha256=MgefuvOzfZtZOujrcOsjiTDiGEAujfeFXshcq7gn32Q,17044
|
|
8
9
|
test/test_client_wdr.py,sha256=0ZnRNP57MbuMv2cxFS8iIoVyv8Q6gtY0Q03gtHp9AWY,13492
|
|
9
10
|
test/test_client_xdr.py,sha256=mgn-xL5mD5sHD8DjTz9vpY7jeh4Ob6Um6Y8v5Qgx2jA,23374
|
|
10
|
-
tplinkrouterc6u/__init__.py,sha256=
|
|
11
|
+
tplinkrouterc6u/__init__.py,sha256=33L1bT4g8pVn6XpM3nebdYRtz0DXTapRtFROd3uFjmg,1162
|
|
11
12
|
tplinkrouterc6u/client_abstract.py,sha256=3UYzmll774S_Gb5E0FTVO_rI3-XFM7PSklg1-V-2jls,1419
|
|
12
|
-
tplinkrouterc6u/provider.py,sha256=
|
|
13
|
+
tplinkrouterc6u/provider.py,sha256=lqxw_pQ4VBYKS3jKrG1zVd4zVnlA6T8MaIRcqq3JAtM,2477
|
|
13
14
|
tplinkrouterc6u/client/__init__.py,sha256=KBy3fmtA9wgyFrb0Urh2x4CkKtWVnESdp-vxmuOvq0k,27
|
|
14
15
|
tplinkrouterc6u/client/c1200.py,sha256=4XEYidEGmVIJk0YQLvmTnd0Gqa7glH2gUWvjreHpWrk,3178
|
|
15
16
|
tplinkrouterc6u/client/c5400x.py,sha256=9E0omBSbWY_ljrs5MTCMu5brmrLtzsDB5O62Db8lP8Q,4329
|
|
16
17
|
tplinkrouterc6u/client/c6u.py,sha256=n4OMAxg0NXChYaVpWCvx3ZFUxVfynTMy-pyd1CTj9s4,19694
|
|
17
|
-
tplinkrouterc6u/client/c80.py,sha256=
|
|
18
|
+
tplinkrouterc6u/client/c80.py,sha256=efE0DEjEfzRFr35fjKA_hsv9YaWy_2dgLAaurDM-WQk,17665
|
|
18
19
|
tplinkrouterc6u/client/deco.py,sha256=cpKRggKD2RvSmMZuD6tzsZmehAUCU9oLiTTHcZBW81Y,8898
|
|
19
|
-
tplinkrouterc6u/client/ex.py,sha256=
|
|
20
|
-
tplinkrouterc6u/client/mr.py,sha256=
|
|
21
|
-
tplinkrouterc6u/client/mr200.py,sha256
|
|
20
|
+
tplinkrouterc6u/client/ex.py,sha256=tOcMugCViAcISULg8otp3NjdkPyuUXihcoe_0lql3AQ,14886
|
|
21
|
+
tplinkrouterc6u/client/mr.py,sha256=7MtnKqmtbggWBx6RIiJzlGuSyVDbC8MFynPrc34bSd0,28948
|
|
22
|
+
tplinkrouterc6u/client/mr200.py,sha256=-5CjqK8rbCAyiP7XPLlSJO3xqSPnQ8DeQ6S1jo4XKnc,5786
|
|
23
|
+
tplinkrouterc6u/client/re330.py,sha256=9Wj4VpYJbVwZJUh9s3magdeL3Jl-B7qyrWfrVBxRk4A,17465
|
|
22
24
|
tplinkrouterc6u/client/vr.py,sha256=7Tbu0IrWtr4HHtyrnLFXEJi1QctzhilciL7agtwQ0R8,5025
|
|
23
25
|
tplinkrouterc6u/client/wdr.py,sha256=i54PEifjhfOScDpgNBXygw9U4bfsVtle846_YjnDoBs,21679
|
|
24
|
-
tplinkrouterc6u/client/xdr.py,sha256=
|
|
26
|
+
tplinkrouterc6u/client/xdr.py,sha256=jdDhQZgJjReN3wMWKch4VHEun2OzUFyzmOWyY5-1IP8,10490
|
|
25
27
|
tplinkrouterc6u/common/__init__.py,sha256=pCTvVZ9CAwgb7MxRnLx0y1rI0sTKSwT24FfxWfQXeTM,33
|
|
26
|
-
tplinkrouterc6u/common/dataclass.py,sha256=
|
|
27
|
-
tplinkrouterc6u/common/encryption.py,sha256=
|
|
28
|
+
tplinkrouterc6u/common/dataclass.py,sha256=NmwN6Iqpd9Ne7Zr-R0J1OZQz28NRp5Qzh6NjVFZV_DA,7749
|
|
29
|
+
tplinkrouterc6u/common/encryption.py,sha256=EWfgGafOz0YgPilBndVaupnjw6JrzhVBdZkBy3oWhj0,10229
|
|
28
30
|
tplinkrouterc6u/common/exception.py,sha256=_0G8ZvW5__CsGifHrsZeULdl8c6EUD071sDCQsQgrHY,140
|
|
29
31
|
tplinkrouterc6u/common/helper.py,sha256=23b04fk9HuVinrZXMCS5R1rmF8uZ7eM-Cdnp7Br9NR0,572
|
|
30
|
-
tplinkrouterc6u/common/package_enum.py,sha256=
|
|
31
|
-
tplinkrouterc6u-5.
|
|
32
|
-
tplinkrouterc6u-5.
|
|
33
|
-
tplinkrouterc6u-5.
|
|
34
|
-
tplinkrouterc6u-5.
|
|
35
|
-
tplinkrouterc6u-5.
|
|
32
|
+
tplinkrouterc6u/common/package_enum.py,sha256=CMHVSgk4RSZyFoPi3499-sJDYg-nfnyJbz1iArFU9Hw,1644
|
|
33
|
+
tplinkrouterc6u-5.12.0.dist-info/licenses/LICENSE,sha256=YF6QR6Vjxcg5b_sYIyqkME7FZYau5TfEUGTG-0JeRK0,35129
|
|
34
|
+
tplinkrouterc6u-5.12.0.dist-info/METADATA,sha256=ZyKhYdvdTxEjUCuFKwlbj8E5nssESZZFRmtGs65pKsk,17267
|
|
35
|
+
tplinkrouterc6u-5.12.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
36
|
+
tplinkrouterc6u-5.12.0.dist-info/top_level.txt,sha256=1iSCCIueqgEkrTxtQ-jiHe99jAB10zqrVdBcwvNfe_M,21
|
|
37
|
+
tplinkrouterc6u-5.12.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|