dhis2w-cli 0.6.0__tar.gz → 0.7.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.
- dhis2w_cli-0.7.0/PKG-INFO +82 -0
- dhis2w_cli-0.7.0/README.md +68 -0
- {dhis2w_cli-0.6.0 → dhis2w_cli-0.7.0}/pyproject.toml +3 -3
- dhis2w_cli-0.6.0/PKG-INFO +0 -14
- dhis2w_cli-0.6.0/README.md +0 -0
- {dhis2w_cli-0.6.0 → dhis2w_cli-0.7.0}/src/dhis2w_cli/__init__.py +0 -0
- {dhis2w_cli-0.6.0 → dhis2w_cli-0.7.0}/src/dhis2w_cli/main.py +0 -0
- {dhis2w_cli-0.6.0 → dhis2w_cli-0.7.0}/src/dhis2w_cli/py.typed +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: dhis2w-cli
|
|
3
|
+
Version: 0.7.0
|
|
4
|
+
Summary: dhis2 command-line interface (Typer) — mounts plugins from dhis2w-core.
|
|
5
|
+
Author: Morten Hansen
|
|
6
|
+
Author-email: Morten Hansen <morten@winterop.com>
|
|
7
|
+
Requires-Dist: dhis2w-core>=0.7.0,<0.8
|
|
8
|
+
Requires-Dist: typer>=0.24
|
|
9
|
+
Requires-Dist: rich>=15
|
|
10
|
+
Requires-Dist: dhis2w-browser>=0.7.0,<0.8 ; extra == 'browser'
|
|
11
|
+
Requires-Python: >=3.13
|
|
12
|
+
Provides-Extra: browser
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# dhis2w-cli
|
|
16
|
+
|
|
17
|
+
Typer console script `dhis2` for working with DHIS2 instances from the shell. Discovers plugins from `dhis2w-core` — sixteen top-level domains covering metadata, data, analytics, tracker, users, routes, files, messaging, apps, doctor, and developer tools.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Drops `dhis2` on $PATH
|
|
23
|
+
uv tool install dhis2w-cli
|
|
24
|
+
|
|
25
|
+
# With Playwright UI automation (browser screenshots, OIDC login, PAT minting)
|
|
26
|
+
uv tool install 'dhis2w-cli[browser]'
|
|
27
|
+
playwright install chromium # one-time, after the install above
|
|
28
|
+
|
|
29
|
+
# Update later
|
|
30
|
+
uv tool upgrade dhis2w-cli
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Or run on demand without installing:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
uvx --from dhis2w-cli dhis2 --help
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Configure
|
|
40
|
+
|
|
41
|
+
The CLI reads a profile from `.dhis2/profiles.toml` (project) or `~/.config/dhis2/profiles.toml` (user). One-shot bootstrap:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
dhis2 profile bootstrap mywork
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Or set env vars and skip the profile system entirely:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
export DHIS2_URL=https://dhis2.example.org
|
|
51
|
+
export DHIS2_PAT=d2p_...
|
|
52
|
+
dhis2 system info
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Surface
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
dhis2 analytics DHIS2 analytics queries.
|
|
59
|
+
dhis2 apps DHIS2 apps — /api/apps + /api/appHub.
|
|
60
|
+
dhis2 browser Playwright UI automation (only with [browser] extra).
|
|
61
|
+
dhis2 data DHIS2 data values (aggregate + tracker).
|
|
62
|
+
dhis2 dev Developer/operator tools.
|
|
63
|
+
dhis2 doctor Probe a DHIS2 instance for known gotchas + requirements.
|
|
64
|
+
dhis2 files Manage DHIS2 documents + file resources.
|
|
65
|
+
dhis2 maintenance DHIS2 maintenance (tasks, cache, integrity, cleanup, refresh).
|
|
66
|
+
dhis2 messaging DHIS2 internal messaging.
|
|
67
|
+
dhis2 metadata DHIS2 metadata inspection.
|
|
68
|
+
dhis2 profile Manage DHIS2 profiles.
|
|
69
|
+
dhis2 route DHIS2 integration routes.
|
|
70
|
+
dhis2 system DHIS2 system info.
|
|
71
|
+
dhis2 user DHIS2 user administration.
|
|
72
|
+
dhis2 user-group DHIS2 user-group administration.
|
|
73
|
+
dhis2 user-role DHIS2 user-role administration.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`dhis2 --help` for the full tree; `dhis2 <group> --help` for each.
|
|
77
|
+
|
|
78
|
+
## Documentation
|
|
79
|
+
|
|
80
|
+
Full CLI reference: https://winterop-com.github.io/dhis2w-utils/cli-reference/.
|
|
81
|
+
|
|
82
|
+
`dhis2w-cli` is one member of the [`dhis2w-utils`](https://github.com/winterop-com/dhis2w-utils) workspace. The MCP server (`dhis2w-mcp`) exposes the same plugin surface as MCP tools.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# dhis2w-cli
|
|
2
|
+
|
|
3
|
+
Typer console script `dhis2` for working with DHIS2 instances from the shell. Discovers plugins from `dhis2w-core` — sixteen top-level domains covering metadata, data, analytics, tracker, users, routes, files, messaging, apps, doctor, and developer tools.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Drops `dhis2` on $PATH
|
|
9
|
+
uv tool install dhis2w-cli
|
|
10
|
+
|
|
11
|
+
# With Playwright UI automation (browser screenshots, OIDC login, PAT minting)
|
|
12
|
+
uv tool install 'dhis2w-cli[browser]'
|
|
13
|
+
playwright install chromium # one-time, after the install above
|
|
14
|
+
|
|
15
|
+
# Update later
|
|
16
|
+
uv tool upgrade dhis2w-cli
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or run on demand without installing:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
uvx --from dhis2w-cli dhis2 --help
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Configure
|
|
26
|
+
|
|
27
|
+
The CLI reads a profile from `.dhis2/profiles.toml` (project) or `~/.config/dhis2/profiles.toml` (user). One-shot bootstrap:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
dhis2 profile bootstrap mywork
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Or set env vars and skip the profile system entirely:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
export DHIS2_URL=https://dhis2.example.org
|
|
37
|
+
export DHIS2_PAT=d2p_...
|
|
38
|
+
dhis2 system info
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Surface
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
dhis2 analytics DHIS2 analytics queries.
|
|
45
|
+
dhis2 apps DHIS2 apps — /api/apps + /api/appHub.
|
|
46
|
+
dhis2 browser Playwright UI automation (only with [browser] extra).
|
|
47
|
+
dhis2 data DHIS2 data values (aggregate + tracker).
|
|
48
|
+
dhis2 dev Developer/operator tools.
|
|
49
|
+
dhis2 doctor Probe a DHIS2 instance for known gotchas + requirements.
|
|
50
|
+
dhis2 files Manage DHIS2 documents + file resources.
|
|
51
|
+
dhis2 maintenance DHIS2 maintenance (tasks, cache, integrity, cleanup, refresh).
|
|
52
|
+
dhis2 messaging DHIS2 internal messaging.
|
|
53
|
+
dhis2 metadata DHIS2 metadata inspection.
|
|
54
|
+
dhis2 profile Manage DHIS2 profiles.
|
|
55
|
+
dhis2 route DHIS2 integration routes.
|
|
56
|
+
dhis2 system DHIS2 system info.
|
|
57
|
+
dhis2 user DHIS2 user administration.
|
|
58
|
+
dhis2 user-group DHIS2 user-group administration.
|
|
59
|
+
dhis2 user-role DHIS2 user-role administration.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`dhis2 --help` for the full tree; `dhis2 <group> --help` for each.
|
|
63
|
+
|
|
64
|
+
## Documentation
|
|
65
|
+
|
|
66
|
+
Full CLI reference: https://winterop-com.github.io/dhis2w-utils/cli-reference/.
|
|
67
|
+
|
|
68
|
+
`dhis2w-cli` is one member of the [`dhis2w-utils`](https://github.com/winterop-com/dhis2w-utils) workspace. The MCP server (`dhis2w-mcp`) exposes the same plugin surface as MCP tools.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dhis2w-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.7.0"
|
|
4
4
|
description = "dhis2 command-line interface (Typer) — mounts plugins from dhis2w-core."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Morten Hansen", email = "morten@winterop.com" }]
|
|
7
7
|
requires-python = ">=3.13"
|
|
8
8
|
dependencies = [
|
|
9
|
-
"dhis2w-core>=0.
|
|
9
|
+
"dhis2w-core>=0.7.0,<0.8",
|
|
10
10
|
"typer>=0.24",
|
|
11
11
|
"rich>=15",
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
[project.optional-dependencies]
|
|
15
|
-
browser = ["dhis2w-browser>=0.
|
|
15
|
+
browser = ["dhis2w-browser>=0.7.0,<0.8"]
|
|
16
16
|
|
|
17
17
|
[project.scripts]
|
|
18
18
|
dhis2 = "dhis2w_cli.main:main"
|
dhis2w_cli-0.6.0/PKG-INFO
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: dhis2w-cli
|
|
3
|
-
Version: 0.6.0
|
|
4
|
-
Summary: dhis2 command-line interface (Typer) — mounts plugins from dhis2w-core.
|
|
5
|
-
Author: Morten Hansen
|
|
6
|
-
Author-email: Morten Hansen <morten@winterop.com>
|
|
7
|
-
Requires-Dist: dhis2w-core>=0.6.0,<0.7
|
|
8
|
-
Requires-Dist: typer>=0.24
|
|
9
|
-
Requires-Dist: rich>=15
|
|
10
|
-
Requires-Dist: dhis2w-browser>=0.6.0,<0.7 ; extra == 'browser'
|
|
11
|
-
Requires-Python: >=3.13
|
|
12
|
-
Provides-Extra: browser
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
|
dhis2w_cli-0.6.0/README.md
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|