diffx-python 0.4.0__tar.gz → 0.4.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.
- {diffx_python-0.4.0 → diffx_python-0.4.3}/.gitignore +28 -0
- {diffx_python-0.4.0 → diffx_python-0.4.3}/PKG-INFO +1 -17
- {diffx_python-0.4.0 → diffx_python-0.4.3}/README.md +0 -16
- {diffx_python-0.4.0 → diffx_python-0.4.3}/pyproject.toml +1 -1
- {diffx_python-0.4.0 → diffx_python-0.4.3}/src/diffx/diffx.py +5 -5
- {diffx_python-0.4.0 → diffx_python-0.4.3}/src/diffx/installer.py +7 -1
- {diffx_python-0.4.0 → diffx_python-0.4.3}/src/diffx/__init__.py +0 -0
- {diffx_python-0.4.0 → diffx_python-0.4.3}/src/diffx/compat.py +0 -0
|
@@ -48,3 +48,31 @@ htmlcov/
|
|
|
48
48
|
# Binary downloads
|
|
49
49
|
**/packages/*/bin/
|
|
50
50
|
**/packages/*/temp/
|
|
51
|
+
|
|
52
|
+
# Configuration files with sensitive data
|
|
53
|
+
.config/
|
|
54
|
+
**/claude_desktop_config.json
|
|
55
|
+
**/.config/claude-desktop/
|
|
56
|
+
|
|
57
|
+
# Claude CLI cache and logs
|
|
58
|
+
~/.cache/claude-cli-nodejs/
|
|
59
|
+
**/.cache/claude-cli-nodejs/
|
|
60
|
+
**/mcp-logs-ide/
|
|
61
|
+
**/*mcp-logs-ide*
|
|
62
|
+
|
|
63
|
+
# Temporary files
|
|
64
|
+
*.tmp
|
|
65
|
+
*.temp
|
|
66
|
+
*.swp
|
|
67
|
+
*.swo
|
|
68
|
+
*~
|
|
69
|
+
|
|
70
|
+
# Local development files
|
|
71
|
+
.env.local
|
|
72
|
+
.env.development.local
|
|
73
|
+
.env.test.local
|
|
74
|
+
.env.production.local
|
|
75
|
+
|
|
76
|
+
# Documentation consistency check outputs
|
|
77
|
+
docs-consistency-*.log
|
|
78
|
+
docs-consistency-*.json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffx-python
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: Python wrapper for diffx - semantic diffing of JSON, YAML, TOML, XML, INI, and CSV files. Focuses on structural meaning rather than formatting.
|
|
5
5
|
Project-URL: Homepage, https://github.com/kako-jun/diffx
|
|
6
6
|
Project-URL: Repository, https://github.com/kako-jun/diffx
|
|
@@ -46,8 +46,6 @@ This will automatically download the appropriate `diffx` binary for your system
|
|
|
46
46
|
|
|
47
47
|
## Usage
|
|
48
48
|
|
|
49
|
-
### Modern API (Recommended)
|
|
50
|
-
|
|
51
49
|
```python
|
|
52
50
|
import diffx
|
|
53
51
|
|
|
@@ -84,20 +82,6 @@ string_result = diffx.diff_string(
|
|
|
84
82
|
)
|
|
85
83
|
```
|
|
86
84
|
|
|
87
|
-
### Legacy API (Backward Compatibility)
|
|
88
|
-
|
|
89
|
-
```python
|
|
90
|
-
from diffx import run_diffx
|
|
91
|
-
|
|
92
|
-
# Compare two JSON files (legacy)
|
|
93
|
-
result = run_diffx(["file1.json", "file2.json"])
|
|
94
|
-
|
|
95
|
-
if result.returncode == 0:
|
|
96
|
-
print("No differences found.")
|
|
97
|
-
else:
|
|
98
|
-
print("Differences found:")
|
|
99
|
-
print(result.stdout)
|
|
100
|
-
```
|
|
101
85
|
|
|
102
86
|
## Features
|
|
103
87
|
|
|
@@ -12,8 +12,6 @@ This will automatically download the appropriate `diffx` binary for your system
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
### Modern API (Recommended)
|
|
16
|
-
|
|
17
15
|
```python
|
|
18
16
|
import diffx
|
|
19
17
|
|
|
@@ -50,20 +48,6 @@ string_result = diffx.diff_string(
|
|
|
50
48
|
)
|
|
51
49
|
```
|
|
52
50
|
|
|
53
|
-
### Legacy API (Backward Compatibility)
|
|
54
|
-
|
|
55
|
-
```python
|
|
56
|
-
from diffx import run_diffx
|
|
57
|
-
|
|
58
|
-
# Compare two JSON files (legacy)
|
|
59
|
-
result = run_diffx(["file1.json", "file2.json"])
|
|
60
|
-
|
|
61
|
-
if result.returncode == 0:
|
|
62
|
-
print("No differences found.")
|
|
63
|
-
else:
|
|
64
|
-
print("Differences found:")
|
|
65
|
-
print(result.stdout)
|
|
66
|
-
```
|
|
67
51
|
|
|
68
52
|
## Features
|
|
69
53
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "diffx-python"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.3"
|
|
8
8
|
description = "Python wrapper for diffx - semantic diffing of JSON, YAML, TOML, XML, INI, and CSV files. Focuses on structural meaning rather than formatting."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -27,12 +27,12 @@ class DiffOptions:
|
|
|
27
27
|
ignore_keys_regex: Optional[str] = None
|
|
28
28
|
epsilon: Optional[float] = None
|
|
29
29
|
array_id_key: Optional[str] = None
|
|
30
|
-
optimize: bool = False
|
|
31
30
|
context: Optional[int] = None
|
|
32
31
|
ignore_whitespace: bool = False
|
|
33
32
|
ignore_case: bool = False
|
|
34
33
|
quiet: bool = False
|
|
35
34
|
brief: bool = False
|
|
35
|
+
debug: bool = False
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
class DiffResult:
|
|
@@ -173,10 +173,6 @@ def diff(
|
|
|
173
173
|
if options.array_id_key:
|
|
174
174
|
args.extend(["--array-id-key", options.array_id_key])
|
|
175
175
|
|
|
176
|
-
# Add optimize option
|
|
177
|
-
if options.optimize:
|
|
178
|
-
args.append("--optimize")
|
|
179
|
-
|
|
180
176
|
# Add context option
|
|
181
177
|
if options.context is not None:
|
|
182
178
|
args.extend(["--context", str(options.context)])
|
|
@@ -197,6 +193,10 @@ def diff(
|
|
|
197
193
|
if options.brief:
|
|
198
194
|
args.append("--brief")
|
|
199
195
|
|
|
196
|
+
# Add debug option
|
|
197
|
+
if options.debug:
|
|
198
|
+
args.append("--debug")
|
|
199
|
+
|
|
200
200
|
stdout, stderr = _execute_diffx(args)
|
|
201
201
|
|
|
202
202
|
# If output format is JSON, parse the result
|
|
@@ -12,7 +12,13 @@ import urllib.request
|
|
|
12
12
|
import zipfile
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
import importlib.metadata
|
|
16
|
+
|
|
17
|
+
try:
|
|
18
|
+
DIFFX_VERSION = importlib.metadata.version("diffx-python")
|
|
19
|
+
except importlib.metadata.PackageNotFoundError:
|
|
20
|
+
# Fallback for development
|
|
21
|
+
DIFFX_VERSION = "0.4.3"
|
|
16
22
|
|
|
17
23
|
|
|
18
24
|
def get_platform_info():
|
|
File without changes
|
|
File without changes
|