diffx-python 0.3.2__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.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffx-python
3
- Version: 0.3.2
3
+ Version: 0.4.0
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-email: kako-jun <kako.jun.42@gmail.com>
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
@@ -4,12 +4,12 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "diffx-python"
7
- version = "0.3.2"
7
+ version = "0.4.0"
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"
11
11
  authors = [
12
- { name = "kako-jun", email = "kako.jun.42@gmail.com" }
12
+ { name = "kako-jun" }
13
13
  ]
14
14
  classifiers = [
15
15
  "Development Status :: 4 - Beta",
@@ -28,7 +28,11 @@ class DiffOptions:
28
28
  epsilon: Optional[float] = None
29
29
  array_id_key: Optional[str] = None
30
30
  optimize: bool = False
31
- batch_size: Optional[int] = None
31
+ context: Optional[int] = None
32
+ ignore_whitespace: bool = False
33
+ ignore_case: bool = False
34
+ quiet: bool = False
35
+ brief: bool = False
32
36
 
33
37
 
34
38
  class DiffResult:
@@ -173,9 +177,25 @@ def diff(
173
177
  if options.optimize:
174
178
  args.append("--optimize")
175
179
 
176
- # Add batch size option
177
- if options.batch_size is not None:
178
- args.extend(["--batch-size", str(options.batch_size)])
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")
179
199
 
180
200
  stdout, stderr = _execute_diffx(args)
181
201
 
File without changes
File without changes