diffx-python 0.3.1__tar.gz → 0.4.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.
- {diffx_python-0.3.1 → diffx_python-0.4.0}/PKG-INFO +4 -4
- {diffx_python-0.3.1 → diffx_python-0.4.0}/pyproject.toml +9 -4
- {diffx_python-0.3.1 → diffx_python-0.4.0}/src/diffx/diffx.py +30 -0
- {diffx_python-0.3.1 → diffx_python-0.4.0}/src/diffx/installer.py +2 -2
- {diffx_python-0.3.1 → diffx_python-0.4.0}/.gitignore +0 -0
- {diffx_python-0.3.1 → diffx_python-0.4.0}/README.md +0 -0
- {diffx_python-0.3.1 → diffx_python-0.4.0}/src/diffx/__init__.py +0 -0
- {diffx_python-0.3.1 → diffx_python-0.4.0}/src/diffx/compat.py +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffx-python
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Python wrapper for diffx - semantic
|
|
3
|
+
Version: 0.4.0
|
|
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
|
|
7
7
|
Project-URL: Issues, https://github.com/kako-jun/diffx/issues
|
|
8
8
|
Project-URL: Documentation, https://github.com/kako-jun/diffx/tree/main/docs
|
|
9
|
-
Author
|
|
9
|
+
Author: kako-jun
|
|
10
10
|
License-Expression: MIT
|
|
11
|
-
Keywords: comparison,csv,diff,ini,json,semantic,structured-data,toml,xml,yaml
|
|
11
|
+
Keywords: automation,ci-cd,comparison,configuration,csv,data-analysis,devops,diff,ini,json,semantic,structured-data,toml,xml,yaml
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "diffx-python"
|
|
7
|
-
version = "0.
|
|
8
|
-
description = "Python wrapper for diffx - semantic
|
|
7
|
+
version = "0.4.0"
|
|
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"
|
|
11
11
|
authors = [
|
|
12
|
-
{ name = "kako-jun"
|
|
12
|
+
{ name = "kako-jun" }
|
|
13
13
|
]
|
|
14
14
|
classifiers = [
|
|
15
15
|
"Development Status :: 4 - Beta",
|
|
@@ -36,7 +36,12 @@ keywords = [
|
|
|
36
36
|
"ini",
|
|
37
37
|
"csv",
|
|
38
38
|
"structured-data",
|
|
39
|
-
"comparison"
|
|
39
|
+
"comparison",
|
|
40
|
+
"devops",
|
|
41
|
+
"ci-cd",
|
|
42
|
+
"automation",
|
|
43
|
+
"data-analysis",
|
|
44
|
+
"configuration"
|
|
40
45
|
]
|
|
41
46
|
requires-python = ">=3.8"
|
|
42
47
|
dependencies = []
|
|
@@ -27,6 +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
|
+
context: Optional[int] = None
|
|
32
|
+
ignore_whitespace: bool = False
|
|
33
|
+
ignore_case: bool = False
|
|
34
|
+
quiet: bool = False
|
|
35
|
+
brief: bool = False
|
|
30
36
|
|
|
31
37
|
|
|
32
38
|
class DiffResult:
|
|
@@ -167,6 +173,30 @@ def diff(
|
|
|
167
173
|
if options.array_id_key:
|
|
168
174
|
args.extend(["--array-id-key", options.array_id_key])
|
|
169
175
|
|
|
176
|
+
# Add optimize option
|
|
177
|
+
if options.optimize:
|
|
178
|
+
args.append("--optimize")
|
|
179
|
+
|
|
180
|
+
# Add context option
|
|
181
|
+
if options.context is not None:
|
|
182
|
+
args.extend(["--context", str(options.context)])
|
|
183
|
+
|
|
184
|
+
# Add ignore whitespace option
|
|
185
|
+
if options.ignore_whitespace:
|
|
186
|
+
args.append("--ignore-whitespace")
|
|
187
|
+
|
|
188
|
+
# Add ignore case option
|
|
189
|
+
if options.ignore_case:
|
|
190
|
+
args.append("--ignore-case")
|
|
191
|
+
|
|
192
|
+
# Add quiet option
|
|
193
|
+
if options.quiet:
|
|
194
|
+
args.append("--quiet")
|
|
195
|
+
|
|
196
|
+
# Add brief option
|
|
197
|
+
if options.brief:
|
|
198
|
+
args.append("--brief")
|
|
199
|
+
|
|
170
200
|
stdout, stderr = _execute_diffx(args)
|
|
171
201
|
|
|
172
202
|
# If output format is JSON, parse the result
|
|
@@ -99,11 +99,11 @@ def main():
|
|
|
99
99
|
if platform.system() != "Windows":
|
|
100
100
|
binary_path.chmod(0o755)
|
|
101
101
|
|
|
102
|
-
print(f"
|
|
102
|
+
print(f"SUCCESS: diffx binary installed successfully at {binary_path}")
|
|
103
103
|
return 0
|
|
104
104
|
|
|
105
105
|
except Exception as error:
|
|
106
|
-
print(f"
|
|
106
|
+
print(f"ERROR: Failed to download diffx binary: {error}")
|
|
107
107
|
print("You may need to install diffx manually from: https://github.com/kako-jun/diffx/releases")
|
|
108
108
|
# Don't fail the installation, just warn
|
|
109
109
|
return 0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|