splurge-dsv 2025.1.4__tar.gz → 2025.1.5__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.
- {splurge_dsv-2025.1.4/splurge_dsv.egg-info → splurge_dsv-2025.1.5}/PKG-INFO +6 -1
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/README.md +5 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/pyproject.toml +1 -1
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/__init__.py +1 -1
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/cli.py +9 -3
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5/splurge_dsv.egg-info}/PKG-INFO +6 -1
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/LICENSE +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/setup.cfg +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/__main__.py +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/dsv_helper.py +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/exceptions.py +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/path_validator.py +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/resource_manager.py +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/string_tokenizer.py +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv/text_file_helper.py +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv.egg-info/SOURCES.txt +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv.egg-info/dependency_links.txt +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv.egg-info/requires.txt +0 -0
- {splurge_dsv-2025.1.4 → splurge_dsv-2025.1.5}/splurge_dsv.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: splurge-dsv
|
3
|
-
Version: 2025.1.
|
3
|
+
Version: 2025.1.5
|
4
4
|
Summary: A utility library for working with DSV (Delimited String Values) files
|
5
5
|
Author: Jim Schilling
|
6
6
|
License-Expression: MIT
|
@@ -29,6 +29,11 @@ Dynamic: license-file
|
|
29
29
|
|
30
30
|
# splurge-dsv
|
31
31
|
|
32
|
+
[](https://pypi.org/project/splurge-dsv/)
|
33
|
+
[](https://pypi.org/project/splurge-dsv/)
|
34
|
+
[](https://opensource.org/licenses/MIT)
|
35
|
+
[](https://github.com/jim-schilling/splurge-dsv)
|
36
|
+
|
32
37
|
A robust Python library for parsing and processing delimited-separated value (DSV) files with advanced features for data validation, streaming, and error handling.
|
33
38
|
|
34
39
|
## Features
|
@@ -1,5 +1,10 @@
|
|
1
1
|
# splurge-dsv
|
2
2
|
|
3
|
+
[](https://pypi.org/project/splurge-dsv/)
|
4
|
+
[](https://pypi.org/project/splurge-dsv/)
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
6
|
+
[](https://github.com/jim-schilling/splurge-dsv)
|
7
|
+
|
3
8
|
A robust Python library for parsing and processing delimited-separated value (DSV) files with advanced features for data validation, streaming, and error handling.
|
4
9
|
|
5
10
|
## Features
|
@@ -44,7 +44,7 @@ from splurge_dsv.resource_manager import (
|
|
44
44
|
from splurge_dsv.string_tokenizer import StringTokenizer
|
45
45
|
from splurge_dsv.text_file_helper import TextFileHelper
|
46
46
|
|
47
|
-
__version__ = "2025.1.
|
47
|
+
__version__ = "2025.1.5"
|
48
48
|
__author__ = "Jim Schilling"
|
49
49
|
__license__ = "MIT"
|
50
50
|
|
@@ -60,7 +60,7 @@ Examples:
|
|
60
60
|
|
61
61
|
parser.add_argument(
|
62
62
|
"--output-format",
|
63
|
-
choices=["table", "json"],
|
63
|
+
choices=["table", "json", "ndjson"],
|
64
64
|
default="table",
|
65
65
|
help="Output format for results (default: table)",
|
66
66
|
)
|
@@ -153,15 +153,18 @@ def run_cli() -> int:
|
|
153
153
|
total_rows += len(chunk)
|
154
154
|
if args.output_format == "json":
|
155
155
|
print(json.dumps(chunk, ensure_ascii=False))
|
156
|
+
elif args.output_format == "ndjson":
|
157
|
+
for row in chunk:
|
158
|
+
print(json.dumps(row, ensure_ascii=False))
|
156
159
|
else:
|
157
160
|
print(f"Chunk {chunk_count}: {len(chunk)} rows")
|
158
161
|
print_results(chunk, args.delimiter)
|
159
162
|
print()
|
160
163
|
|
161
|
-
if args.output_format
|
164
|
+
if args.output_format not in ["json", "ndjson"]:
|
162
165
|
print(f"Total: {total_rows} rows in {chunk_count} chunks")
|
163
166
|
else:
|
164
|
-
if args.output_format
|
167
|
+
if args.output_format not in ["json", "ndjson"]:
|
165
168
|
print(f"Parsing file '{args.file_path}' with delimiter '{args.delimiter}'...")
|
166
169
|
rows = DsvHelper.parse_file(
|
167
170
|
file_path,
|
@@ -176,6 +179,9 @@ def run_cli() -> int:
|
|
176
179
|
|
177
180
|
if args.output_format == "json":
|
178
181
|
print(json.dumps(rows, ensure_ascii=False))
|
182
|
+
elif args.output_format == "ndjson":
|
183
|
+
for row in rows:
|
184
|
+
print(json.dumps(row, ensure_ascii=False))
|
179
185
|
else:
|
180
186
|
print(f"Parsed {len(rows)} rows")
|
181
187
|
print_results(rows, args.delimiter)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: splurge-dsv
|
3
|
-
Version: 2025.1.
|
3
|
+
Version: 2025.1.5
|
4
4
|
Summary: A utility library for working with DSV (Delimited String Values) files
|
5
5
|
Author: Jim Schilling
|
6
6
|
License-Expression: MIT
|
@@ -29,6 +29,11 @@ Dynamic: license-file
|
|
29
29
|
|
30
30
|
# splurge-dsv
|
31
31
|
|
32
|
+
[](https://pypi.org/project/splurge-dsv/)
|
33
|
+
[](https://pypi.org/project/splurge-dsv/)
|
34
|
+
[](https://opensource.org/licenses/MIT)
|
35
|
+
[](https://github.com/jim-schilling/splurge-dsv)
|
36
|
+
|
32
37
|
A robust Python library for parsing and processing delimited-separated value (DSV) files with advanced features for data validation, streaming, and error handling.
|
33
38
|
|
34
39
|
## Features
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|