router-cli 0.2.0__py3-none-any.whl → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: router-cli
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: CLI tool to manage D-Link DSL-2750U router
5
5
  Keywords: router,cli,dlink,dsl-2750u,network,admin
6
6
  Author: d3vr
@@ -40,7 +40,7 @@ Since the router doesn't provide a formal API, this tool works by authenticating
40
40
 
41
41
  ## Installation
42
42
 
43
- Requires Python 3.11 or higher.
43
+ Requires Python 3.10 or higher.
44
44
 
45
45
  ### Using uv (recommended)
46
46
 
@@ -88,6 +88,24 @@ The tool searches for configuration in the following locations (in order):
88
88
 
89
89
  ## Usage
90
90
 
91
+ ### Global Options
92
+
93
+ All commands support these global options:
94
+
95
+ ```bash
96
+ router --ip 192.168.1.1 --user admin --pass secret status
97
+ router --json clients
98
+ ```
99
+
100
+ | Option | Environment Variable | Description |
101
+ |--------|---------------------|-------------|
102
+ | `--ip ADDRESS` | `ROUTER_IP` | Router IP address |
103
+ | `--user USERNAME` | `ROUTER_USER` | Username for authentication |
104
+ | `--pass PASSWORD` | `ROUTER_PASS` | Password for authentication |
105
+ | `--json` | - | Output in JSON format (for scripting) |
106
+
107
+ **Configuration priority**: CLI flags > environment variables > config file > defaults
108
+
91
109
  ### Quick Overview
92
110
 
93
111
  ```bash
@@ -242,7 +260,7 @@ uv run pytest
242
260
 
243
261
  ## Compatibility
244
262
 
245
- - **Python**: 3.11+
263
+ - **Python**: 3.10+
246
264
  - **Router**: D-Link DSL-2750U (firmware ME_1.00)
247
265
 
248
266
  This tool may work with other D-Link routers that share a similar web interface, but has only been tested with the DSL-2750U.
@@ -0,0 +1,14 @@
1
+ router_cli/__init__.py,sha256=rXtUqxUti4S10Iz4Xttp_qsECHXqv5A7gNYHrh-RsEk,74
2
+ router_cli/client.py,sha256=0T0ZQoC4KkFrhzDDVlCa26P8EV-IK9ooFPsO0LKq9Nk,11811
3
+ router_cli/commands.py,sha256=tg0DVp__j7R5gLG1hydz1FrXTZ0Z9Z00ubSnuVdE-Ew,7009
4
+ router_cli/config.py,sha256=c9RWWKtnKWELtMB_g3I8oFwk0nEqPYs5Tqq5uHaB34s,6240
5
+ router_cli/display.py,sha256=Xt0cr55vVIHrV5gB2WG2LM8I4Qgyuw7i72J1gfXYc7k,5343
6
+ router_cli/formatters.py,sha256=goY_SVXOdaV3c4gvHrq1pvW--RSI6U8Dxtu0P4377H8,12566
7
+ router_cli/main.py,sha256=Qfj0GJPScP1jrJkI9xiP7JhwPyoxmjQtJe0tzblOiy0,3547
8
+ router_cli/models.py,sha256=TDtZqOY_h7jZggZp6xqQREifngWzsJM4WTNBGXRyVLw,3279
9
+ router_cli/parser.py,sha256=khRFClFYQ8tsUmDKIXti3QtTEm9wjWmdBmIInkxYf3U,15575
10
+ router_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ router_cli-0.3.0.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
12
+ router_cli-0.3.0.dist-info/entry_points.txt,sha256=PfkydZeDJvlgvEXYOG1gYvbTM39Cm-OgsPpREH3UNAU,49
13
+ router_cli-0.3.0.dist-info/METADATA,sha256=TvHRQ_2LkPlwwYIrKJzhh_170RwkS47XxYrE1GKgLug,7413
14
+ router_cli-0.3.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- router_cli/__init__.py,sha256=R-j6ZUnvZT4qKwxPGaYBQEOCLsPATLn1qHLHSmdfo2c,74
2
- router_cli/client.py,sha256=DuOqZvsCkcgut2k0LqKcdYD_rN4E1TRtwfqm9bnJTEU,29631
3
- router_cli/config.py,sha256=fn0_Mcy0Py-7k-yZwPEsXl3MhcspkKgzal-JHjBfAD8,4446
4
- router_cli/main.py,sha256=iLCR1VaPrb1PvXpPdNciH7Y2-68zXAQ9YK0TmzepgJ8,22809
5
- router_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- router_cli-0.2.0.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
7
- router_cli-0.2.0.dist-info/entry_points.txt,sha256=PfkydZeDJvlgvEXYOG1gYvbTM39Cm-OgsPpREH3UNAU,49
8
- router_cli-0.2.0.dist-info/METADATA,sha256=8zwKVYYwOP5F7QDRnS-xB-svOE3VTPe-EZM-8D4iO6A,6826
9
- router_cli-0.2.0.dist-info/RECORD,,