diffx-python 0.3.0__py3-none-any.whl → 0.3.2__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.
- diffx/diffx.py +10 -0
- diffx/installer.py +2 -2
- {diffx_python-0.3.0.dist-info → diffx_python-0.3.2.dist-info}/METADATA +5 -5
- diffx_python-0.3.2.dist-info/RECORD +8 -0
- diffx_python-0.3.0.dist-info/RECORD +0 -8
- {diffx_python-0.3.0.dist-info → diffx_python-0.3.2.dist-info}/WHEEL +0 -0
- {diffx_python-0.3.0.dist-info → diffx_python-0.3.2.dist-info}/entry_points.txt +0 -0
diffx/diffx.py
CHANGED
|
@@ -27,6 +27,8 @@ 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
|
+
batch_size: Optional[int] = None
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
class DiffResult:
|
|
@@ -167,6 +169,14 @@ def diff(
|
|
|
167
169
|
if options.array_id_key:
|
|
168
170
|
args.extend(["--array-id-key", options.array_id_key])
|
|
169
171
|
|
|
172
|
+
# Add optimize option
|
|
173
|
+
if options.optimize:
|
|
174
|
+
args.append("--optimize")
|
|
175
|
+
|
|
176
|
+
# Add batch size option
|
|
177
|
+
if options.batch_size is not None:
|
|
178
|
+
args.extend(["--batch-size", str(options.batch_size)])
|
|
179
|
+
|
|
170
180
|
stdout, stderr = _execute_diffx(args)
|
|
171
181
|
|
|
172
182
|
# If output format is JSON, parse the result
|
diffx/installer.py
CHANGED
|
@@ -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
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffx-python
|
|
3
|
-
Version: 0.3.
|
|
4
|
-
Summary: Python wrapper for diffx - semantic
|
|
3
|
+
Version: 0.3.2
|
|
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
9
|
Author-email: kako-jun <kako.jun.42@gmail.com>
|
|
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
|
|
@@ -32,14 +32,14 @@ Requires-Dist: pytest>=6.0; extra == 'dev'
|
|
|
32
32
|
Requires-Dist: ruff; extra == 'dev'
|
|
33
33
|
Description-Content-Type: text/markdown
|
|
34
34
|
|
|
35
|
-
# diffx
|
|
35
|
+
# diffx-python
|
|
36
36
|
|
|
37
37
|
Python wrapper for the `diffx` CLI tool - semantic diff for structured data.
|
|
38
38
|
|
|
39
39
|
## Installation
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
pip install diffx-
|
|
42
|
+
pip install diffx-python
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
This will automatically download the appropriate `diffx` binary for your system from GitHub Releases.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
diffx/__init__.py,sha256=Vf0QHuGbW2e1DnW_shlcGicfmXk8fpS5O4AY-08y5BU,679
|
|
2
|
+
diffx/compat.py,sha256=LbHJfIlRIAb-m6B0-LulcAayKMZZC7biJsaz4rcRLB0,1751
|
|
3
|
+
diffx/diffx.py,sha256=bcAQMzBr35kG1F6RYCr7w1v2o1Dgj9ADBHFzBTobONg,7386
|
|
4
|
+
diffx/installer.py,sha256=DnXF8aRiD77ZMQJlPpz6zNyAnNbqJn2C17zVcj54UFs,3676
|
|
5
|
+
diffx_python-0.3.2.dist-info/METADATA,sha256=_hcQP5Nq2Ax4ZG-NEoOf4zW2r__UDgv-Ur-sxu4GLH4,3662
|
|
6
|
+
diffx_python-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
diffx_python-0.3.2.dist-info/entry_points.txt,sha256=GCV84jqJHi-RN2qpPdU-tlN7LvyYJrgLwiR0kOYHwsk,63
|
|
8
|
+
diffx_python-0.3.2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
diffx/__init__.py,sha256=Vf0QHuGbW2e1DnW_shlcGicfmXk8fpS5O4AY-08y5BU,679
|
|
2
|
-
diffx/compat.py,sha256=LbHJfIlRIAb-m6B0-LulcAayKMZZC7biJsaz4rcRLB0,1751
|
|
3
|
-
diffx/diffx.py,sha256=J44cxHX1xaIqFFon6HWHoctMbR6awtHbEbyshmKkTOw,7097
|
|
4
|
-
diffx/installer.py,sha256=lB8bgauKJdPb0oZ6bbJau4jI2lSXztyg8cFa773Nits,3668
|
|
5
|
-
diffx_python-0.3.0.dist-info/METADATA,sha256=OnX78bm--FD6ofnkVB6qAsOE4mM28HrcO2aSas1ReEc,3516
|
|
6
|
-
diffx_python-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
diffx_python-0.3.0.dist-info/entry_points.txt,sha256=GCV84jqJHi-RN2qpPdU-tlN7LvyYJrgLwiR0kOYHwsk,63
|
|
8
|
-
diffx_python-0.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|