docker-diff 0.0.7__py3-none-any.whl → 0.0.8__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.
@@ -0,0 +1,120 @@
1
+ Metadata-Version: 2.4
2
+ Name: docker-diff
3
+ Version: 0.0.8
4
+ Summary: Docker Image Comparison Database Manager
5
+ License: This is free and unencumbered software released into the public domain.
6
+
7
+ Anyone is free to copy, modify, publish, use, compile, sell, or
8
+ distribute this software, either in source code form or as a compiled
9
+ binary, for any purpose, commercial or non-commercial, and by any
10
+ means.
11
+
12
+ In jurisdictions that recognize copyright laws, the author or authors
13
+ of this software dedicate any and all copyright interest in the
14
+ software to the public domain. We make this dedication for the benefit
15
+ of the public at large and to the detriment of our heirs and
16
+ successors. We intend this dedication to be an overt act of
17
+ relinquishment in perpetuity of all present and future rights to this
18
+ software under copyright law.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26
+ OTHER DEALINGS IN THE SOFTWARE.
27
+
28
+ For more information, please refer to <https://unlicense.org>
29
+
30
+ Project-URL: Repository, https://github.com/eapolinario/docker-diff
31
+ Requires-Python: >=3.10
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: libsql-client>=0.3
35
+ Dynamic: license-file
36
+
37
+ docker-diff
38
+ ===========
39
+
40
+ Docker Image Comparison Database Manager. Scans Docker images, stores file listings and comparisons in SQLite, and provides a simple CLI to query results.
41
+
42
+ Quick Start
43
+ -----------
44
+
45
+ - Install dependencies and project env (uv):
46
+ - `uv sync`
47
+ - Run the CLI:
48
+ - Local: `uv run docker_diff_pkg/cli.py list images`
49
+ - After install: `docker-diff list images`
50
+
51
+ Database Backends
52
+ -----------------
53
+
54
+ This project supports two SQLite-compatible backends:
55
+
56
+ - Local SQLite file via Python `sqlite3` (default) at `docker_images.db`.
57
+ - Remote Turso via `libsql` Python client.
58
+
59
+ The database schema initializes automatically on first run from `docker_diff_pkg/schema.sql`.
60
+
61
+ Using Turso (libsql)
62
+ --------------------
63
+
64
+ 1) Ensure dependency is installed
65
+ - The project declares `libsql-client` in `pyproject.toml`. If you updated sources, run `uv sync`.
66
+
67
+ 2) Set environment variables
68
+ - URL: `TURSO_DATABASE_URL` (preferred) or `LIBSQL_URL`
69
+ - Token: `TURSO_AUTH_TOKEN` or `LIBSQL_AUTH_TOKEN`
70
+
71
+ Examples (macOS/Linux):
72
+ - Prefer HTTPS (avoids WebSocket restrictions):
73
+ - `export TURSO_DATABASE_URL="https://<your-db>.turso.io"`
74
+ - `export TURSO_AUTH_TOKEN="<your-token>"`
75
+ - WebSocket (Hrana) alternative:
76
+ - `export TURSO_DATABASE_URL="libsql://<your-db>.turso.io"`
77
+ - `export TURSO_AUTH_TOKEN="<your-token>"`
78
+
79
+ 3) Run a command
80
+ - `uv run docker_diff_pkg/cli.py list images`
81
+ - or: `python -m docker_diff_pkg.cli list images`
82
+
83
+ Troubleshooting
84
+ ---------------
85
+
86
+ - WebSocket handshake errors (e.g., `WsServerHandshakeError`):
87
+ - Cause: `libsql://` uses WebSockets (Hrana). Corporate proxies/firewalls often block `wss`.
88
+ - Fix: Switch to HTTPS: set `TURSO_DATABASE_URL="https://<db>.turso.io"` and keep the same token.
89
+ - Optional: adjust proxies: unset `HTTP(S)_PROXY`, or set `NO_PROXY="*.turso.io,localhost,127.0.0.1"`.
90
+
91
+ - Command hangs and does not exit:
92
+ - The libsql client runs a background event loop thread. The CLI now closes the client on exit. If embedding `DockerImageDB` in your own code, call `db.close()` when done.
93
+
94
+ - Auth failures (401/403):
95
+ - Ensure the token belongs to the target DB and hasn’t expired.
96
+
97
+ CLI Overview
98
+ ------------
99
+
100
+ - Scan images: `docker-diff scan <image...>`
101
+ - Compare images: `docker-diff compare <image...> [--name NAME]`
102
+ - List images: `docker-diff list images`
103
+ - List comparisons: `docker-diff list comparisons`
104
+ - Summary: `docker-diff summary <id>`
105
+ - Unique files: `docker-diff unique <id> [--limit N]`
106
+
107
+ Development
108
+ -----------
109
+
110
+ - Build: `make build`
111
+ - Clean: `make clean`
112
+ - Integration Test: `make integration-test`
113
+ - Add dev dep: `uv add --group dev <package>`
114
+
115
+ Notes
116
+ -----
117
+
118
+ - Python 3.10+ with type hints.
119
+ - SQLite with proper FKs and indexes; schema in `docker_diff_pkg/schema.sql`.
120
+ - DB access is abstracted to support both backends without changing CLI usage.
@@ -0,0 +1,10 @@
1
+ docker_diff-0.0.8.dist-info/licenses/LICENSE,sha256=awOCsWJ58m_2kBQwBUGWejVqZm6wuRtCL2hi9rfa0X4,1211
2
+ docker_diff_pkg/__init__.py,sha256=aG5WUO74Z5ax04A5iwh6thCpHcFXBsdH5v-ph-uUJuI,321
3
+ docker_diff_pkg/_version.py,sha256=j-ar4gJGiWIawqKXhvv9hGJWLfwu0tISl-0GV97B7a0,704
4
+ docker_diff_pkg/cli.py,sha256=C6LYpgFGmiZsBZ8MO4TJKmtKMvg1EqB6qYlpilbq6pI,21549
5
+ docker_diff_pkg/schema.sql,sha256=xI3kOohbUEzwFhmIGQs2_abN_tJn1BBdAya7tVbw6n8,5477
6
+ docker_diff-0.0.8.dist-info/METADATA,sha256=7B6M1QDA_F4YtmzjQduM7KTbmP4_6_P0ii-4QklOqNs,4549
7
+ docker_diff-0.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ docker_diff-0.0.8.dist-info/entry_points.txt,sha256=nEDTWZsgB5fRJgeXHJbXJyaHKMmKyN9Qypf3X78tosw,57
9
+ docker_diff-0.0.8.dist-info/top_level.txt,sha256=GB5Qrc3AH1pk0543cQz9SRNr5Fatrj-c0Cdp3rCvTM8,16
10
+ docker_diff-0.0.8.dist-info/RECORD,,
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.0.7'
32
- __version_tuple__ = version_tuple = (0, 0, 7)
31
+ __version__ = version = '0.0.8'
32
+ __version_tuple__ = version_tuple = (0, 0, 8)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -1,34 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: docker-diff
3
- Version: 0.0.7
4
- Summary: Docker Image Comparison Database Manager
5
- License: This is free and unencumbered software released into the public domain.
6
-
7
- Anyone is free to copy, modify, publish, use, compile, sell, or
8
- distribute this software, either in source code form or as a compiled
9
- binary, for any purpose, commercial or non-commercial, and by any
10
- means.
11
-
12
- In jurisdictions that recognize copyright laws, the author or authors
13
- of this software dedicate any and all copyright interest in the
14
- software to the public domain. We make this dedication for the benefit
15
- of the public at large and to the detriment of our heirs and
16
- successors. We intend this dedication to be an overt act of
17
- relinquishment in perpetuity of all present and future rights to this
18
- software under copyright law.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23
- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24
- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26
- OTHER DEALINGS IN THE SOFTWARE.
27
-
28
- For more information, please refer to <https://unlicense.org>
29
-
30
- Project-URL: Repository, https://github.com/eapolinario/docker-diff
31
- Requires-Python: >=3.10
32
- License-File: LICENSE
33
- Requires-Dist: libsql-client>=0.3
34
- Dynamic: license-file
@@ -1,10 +0,0 @@
1
- docker_diff-0.0.7.dist-info/licenses/LICENSE,sha256=awOCsWJ58m_2kBQwBUGWejVqZm6wuRtCL2hi9rfa0X4,1211
2
- docker_diff_pkg/__init__.py,sha256=aG5WUO74Z5ax04A5iwh6thCpHcFXBsdH5v-ph-uUJuI,321
3
- docker_diff_pkg/_version.py,sha256=AV58KqMkBGaCvmPdbd3g9huyNXfIVxjw8QbCMdaeivU,704
4
- docker_diff_pkg/cli.py,sha256=C6LYpgFGmiZsBZ8MO4TJKmtKMvg1EqB6qYlpilbq6pI,21549
5
- docker_diff_pkg/schema.sql,sha256=xI3kOohbUEzwFhmIGQs2_abN_tJn1BBdAya7tVbw6n8,5477
6
- docker_diff-0.0.7.dist-info/METADATA,sha256=na6gAxdT1d2_cZeuQMqfFEu9k7gqUKhPPm-wGGRBr8c,1688
7
- docker_diff-0.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- docker_diff-0.0.7.dist-info/entry_points.txt,sha256=nEDTWZsgB5fRJgeXHJbXJyaHKMmKyN9Qypf3X78tosw,57
9
- docker_diff-0.0.7.dist-info/top_level.txt,sha256=GB5Qrc3AH1pk0543cQz9SRNr5Fatrj-c0Cdp3rCvTM8,16
10
- docker_diff-0.0.7.dist-info/RECORD,,