docker-volume-toolkit 1.2.2__tar.gz → 1.2.3__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.
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/.gitignore +1 -0
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/PKG-INFO +7 -7
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/README.md +6 -6
- docker_volume_toolkit-1.2.2/migrate_volumes.py → docker_volume_toolkit-1.2.3/docker_volume_toolkit.py +8 -8
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/pyproject.toml +5 -5
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/.resources/1-designer.png +0 -0
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/.resources/2-plan.png +0 -0
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/.resources/3-execution.png +0 -0
- {docker_volume_toolkit-1.2.2 → docker_volume_toolkit-1.2.3}/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docker-volume-toolkit
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: Docker volume toolkit - copy/migrate volumes across a name-prefix change (CLI + interactive TUI)
|
|
5
5
|
Project-URL: Homepage, https://github.com/stellarshenson/docker-volume-toolkit
|
|
6
6
|
Project-URL: Repository, https://github.com/stellarshenson/docker-volume-toolkit
|
|
@@ -73,20 +73,20 @@ rename.
|
|
|
73
73
|
Run with no arguments for the interactive TUI (designer → plan → execution):
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
|
-
./
|
|
76
|
+
./docker_volume_toolkit.py
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
Or drive it entirely from the command line:
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
82
|
# preview the mapping without copying
|
|
83
|
-
./
|
|
83
|
+
./docker_volume_toolkit.py --from myproject_ --to mynewproject_ --dry-run
|
|
84
84
|
|
|
85
85
|
# copy, skipping the prompt
|
|
86
|
-
./
|
|
86
|
+
./docker_volume_toolkit.py --from myproject_ --to mynewproject_ --yes
|
|
87
87
|
|
|
88
88
|
# only the cert volumes, four parallel workers
|
|
89
|
-
./
|
|
89
|
+
./docker_volume_toolkit.py --from myproject_ --to mynewproject_ --filter '_certs$' --workers 4
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
## Options
|
|
@@ -124,14 +124,14 @@ Or skip installation entirely - the script carries an inline dependency block an
|
|
|
124
124
|
`uv run --script` shebang, so it auto-installs its own dependencies on first run:
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
|
-
./
|
|
127
|
+
./docker_volume_toolkit.py
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
Without `uv`, install the dependencies once and run with any Python:
|
|
131
131
|
|
|
132
132
|
```bash
|
|
133
133
|
pip install rich textual
|
|
134
|
-
python
|
|
134
|
+
python docker_volume_toolkit.py --help
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
---
|
|
@@ -45,20 +45,20 @@ rename.
|
|
|
45
45
|
Run with no arguments for the interactive TUI (designer → plan → execution):
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
./
|
|
48
|
+
./docker_volume_toolkit.py
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
Or drive it entirely from the command line:
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
54
|
# preview the mapping without copying
|
|
55
|
-
./
|
|
55
|
+
./docker_volume_toolkit.py --from myproject_ --to mynewproject_ --dry-run
|
|
56
56
|
|
|
57
57
|
# copy, skipping the prompt
|
|
58
|
-
./
|
|
58
|
+
./docker_volume_toolkit.py --from myproject_ --to mynewproject_ --yes
|
|
59
59
|
|
|
60
60
|
# only the cert volumes, four parallel workers
|
|
61
|
-
./
|
|
61
|
+
./docker_volume_toolkit.py --from myproject_ --to mynewproject_ --filter '_certs$' --workers 4
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
## Options
|
|
@@ -96,14 +96,14 @@ Or skip installation entirely - the script carries an inline dependency block an
|
|
|
96
96
|
`uv run --script` shebang, so it auto-installs its own dependencies on first run:
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
|
-
./
|
|
99
|
+
./docker_volume_toolkit.py
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
Without `uv`, install the dependencies once and run with any Python:
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
105
|
pip install rich textual
|
|
106
|
-
python
|
|
106
|
+
python docker_volume_toolkit.py --help
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
---
|
|
@@ -14,10 +14,10 @@ rsync --delete; the source volume is left intact for verification
|
|
|
14
14
|
before manual removal.
|
|
15
15
|
|
|
16
16
|
Usage:
|
|
17
|
-
./
|
|
18
|
-
./
|
|
19
|
-
./
|
|
20
|
-
./
|
|
17
|
+
./docker_volume_toolkit.py --from stellars-tech-ai-lab_ --to stellars-tech-ai-hub_
|
|
18
|
+
./docker_volume_toolkit.py --from stellars-tech-ai-lab_ --to stellars-tech-ai-hub_ --filter '_certs$'
|
|
19
|
+
./docker_volume_toolkit.py --from stellars-tech-ai-lab_ --to stellars-tech-ai-hub_ --dry-run
|
|
20
|
+
./docker_volume_toolkit.py --from stellars-tech-ai-lab_ --to stellars-tech-ai-hub_ --yes
|
|
21
21
|
|
|
22
22
|
Note: Docker encodes '.' in volume names as '-2e' (e.g. 'alice.smith'
|
|
23
23
|
appears as 'alice-2esmith'). The --filter regex matches against the
|
|
@@ -64,11 +64,11 @@ def _preflight() -> None:
|
|
|
64
64
|
missing = [spec for mod, spec in required.items() if not _present(mod)]
|
|
65
65
|
if not missing:
|
|
66
66
|
return
|
|
67
|
-
print("
|
|
67
|
+
print("docker_volume_toolkit.py is missing required packages:", file=sys.stderr)
|
|
68
68
|
for spec in missing:
|
|
69
69
|
print(f" - {spec}", file=sys.stderr)
|
|
70
70
|
print(f"\nInstall with: pip install {' '.join(missing)}", file=sys.stderr)
|
|
71
|
-
print("Or run via uv: ./
|
|
71
|
+
print("Or run via uv: ./docker_volume_toolkit.py (auto-installs)",
|
|
72
72
|
file=sys.stderr)
|
|
73
73
|
sys.exit(1)
|
|
74
74
|
|
|
@@ -162,8 +162,8 @@ PASTEL_THEME = Theme({
|
|
|
162
162
|
|
|
163
163
|
console = Console(theme=PASTEL_THEME)
|
|
164
164
|
|
|
165
|
-
VERSION = "1.2.
|
|
166
|
-
APP_TITLE = "Docker Volume
|
|
165
|
+
VERSION = "1.2.3"
|
|
166
|
+
APP_TITLE = "Docker Volume Toolkit"
|
|
167
167
|
|
|
168
168
|
# Shared top header bar: app name on the left, version pinned to the right
|
|
169
169
|
# corner. Embedded into each screen's CSS via {HEADER_CSS}.
|
|
@@ -25,7 +25,7 @@ classifiers = [
|
|
|
25
25
|
"Topic :: System :: Systems Administration",
|
|
26
26
|
"Topic :: Utilities",
|
|
27
27
|
]
|
|
28
|
-
# Mirrors the inline PEP 723 block in
|
|
28
|
+
# Mirrors the inline PEP 723 block in docker_volume_toolkit.py - keep the two in sync.
|
|
29
29
|
dependencies = ["rich>=13", "textual>=0.80"]
|
|
30
30
|
|
|
31
31
|
[project.urls]
|
|
@@ -34,18 +34,18 @@ Repository = "https://github.com/stellarshenson/docker-volume-toolkit"
|
|
|
34
34
|
Issues = "https://github.com/stellarshenson/docker-volume-toolkit/issues"
|
|
35
35
|
|
|
36
36
|
[project.scripts]
|
|
37
|
-
docker-volume-toolkit = "
|
|
37
|
+
docker-volume-toolkit = "docker_volume_toolkit:main"
|
|
38
38
|
|
|
39
39
|
# Single-source the version from the script's VERSION constant (also shown in the
|
|
40
40
|
# TUI header), so the package and the tool never drift.
|
|
41
41
|
[tool.hatch.version]
|
|
42
|
-
path = "
|
|
42
|
+
path = "docker_volume_toolkit.py"
|
|
43
43
|
pattern = 'VERSION = "(?P<version>[^"]+)"'
|
|
44
44
|
|
|
45
45
|
# Single top-level module whose name differs from the distribution name, so it
|
|
46
46
|
# must be listed explicitly.
|
|
47
47
|
[tool.hatch.build.targets.wheel]
|
|
48
|
-
include = ["
|
|
48
|
+
include = ["docker_volume_toolkit.py"]
|
|
49
49
|
|
|
50
50
|
[tool.hatch.build.targets.sdist]
|
|
51
|
-
include = ["
|
|
51
|
+
include = ["docker_volume_toolkit.py", "README.md", "LICENSE", ".resources"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|