diffx-python 0.3.1__tar.gz → 0.3.2__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.
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffx-python
3
- Version: 0.3.1
4
- Summary: Python wrapper for diffx - semantic diff for structured data
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
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "diffx-python"
7
- version = "0.3.1"
8
- description = "Python wrapper for diffx - semantic diff for structured data"
7
+ version = "0.3.2"
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 = [
@@ -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,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
@@ -99,11 +99,11 @@ def main():
99
99
  if platform.system() != "Windows":
100
100
  binary_path.chmod(0o755)
101
101
 
102
- print(f" diffx binary installed successfully at {binary_path}")
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" Failed to download diffx binary: {error}")
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