diffx-python 0.3.2__py3-none-any.whl → 0.4.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 +28 -8
- diffx/installer.py +7 -1
- {diffx_python-0.3.2.dist-info → diffx_python-0.4.2.dist-info}/METADATA +2 -2
- diffx_python-0.4.2.dist-info/RECORD +8 -0
- diffx_python-0.3.2.dist-info/RECORD +0 -8
- {diffx_python-0.3.2.dist-info → diffx_python-0.4.2.dist-info}/WHEEL +0 -0
- {diffx_python-0.3.2.dist-info → diffx_python-0.4.2.dist-info}/entry_points.txt +0 -0
diffx/diffx.py
CHANGED
|
@@ -27,8 +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
|
-
|
|
31
|
-
|
|
30
|
+
context: Optional[int] = None
|
|
31
|
+
ignore_whitespace: bool = False
|
|
32
|
+
ignore_case: bool = False
|
|
33
|
+
quiet: bool = False
|
|
34
|
+
brief: bool = False
|
|
35
|
+
debug: bool = False
|
|
32
36
|
|
|
33
37
|
|
|
34
38
|
class DiffResult:
|
|
@@ -169,13 +173,29 @@ def diff(
|
|
|
169
173
|
if options.array_id_key:
|
|
170
174
|
args.extend(["--array-id-key", options.array_id_key])
|
|
171
175
|
|
|
172
|
-
# Add
|
|
173
|
-
if options.
|
|
174
|
-
args.
|
|
176
|
+
# Add context option
|
|
177
|
+
if options.context is not None:
|
|
178
|
+
args.extend(["--context", str(options.context)])
|
|
175
179
|
|
|
176
|
-
# Add
|
|
177
|
-
if options.
|
|
178
|
-
args.
|
|
180
|
+
# Add ignore whitespace option
|
|
181
|
+
if options.ignore_whitespace:
|
|
182
|
+
args.append("--ignore-whitespace")
|
|
183
|
+
|
|
184
|
+
# Add ignore case option
|
|
185
|
+
if options.ignore_case:
|
|
186
|
+
args.append("--ignore-case")
|
|
187
|
+
|
|
188
|
+
# Add quiet option
|
|
189
|
+
if options.quiet:
|
|
190
|
+
args.append("--quiet")
|
|
191
|
+
|
|
192
|
+
# Add brief option
|
|
193
|
+
if options.brief:
|
|
194
|
+
args.append("--brief")
|
|
195
|
+
|
|
196
|
+
# Add debug option
|
|
197
|
+
if options.debug:
|
|
198
|
+
args.append("--debug")
|
|
179
199
|
|
|
180
200
|
stdout, stderr = _execute_diffx(args)
|
|
181
201
|
|
diffx/installer.py
CHANGED
|
@@ -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.2"
|
|
16
22
|
|
|
17
23
|
|
|
18
24
|
def get_platform_info():
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: diffx-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.2
|
|
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
|
|
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
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
|
|
@@ -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=M0Q6zODOByJkPdASsJxql7w63-z6e1LvN1cJCLGtBUw,7851
|
|
4
|
+
diffx/installer.py,sha256=_7ABu1Y7JnWWZ5MVp5BHcTu9zU_yxNLBbfEfYjfp_ZM,3854
|
|
5
|
+
diffx_python-0.4.2.dist-info/METADATA,sha256=qzgK4_em6w8vaILmo0AKL1JfieoyJNS4JDqPSldtWz0,3632
|
|
6
|
+
diffx_python-0.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
diffx_python-0.4.2.dist-info/entry_points.txt,sha256=GCV84jqJHi-RN2qpPdU-tlN7LvyYJrgLwiR0kOYHwsk,63
|
|
8
|
+
diffx_python-0.4.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=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,,
|
|
File without changes
|
|
File without changes
|