Skip to content

Commit ae971d3

Browse files
committed
Merge branch 'main' into 188-ant-1
2 parents 801ab2f + 3ff4a31 commit ae971d3

6 files changed

Lines changed: 27 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning].
77

88
## [Unreleased]
99

10+
## [0.0.23] - 2025-06-12
11+
12+
### Fixed in 0.0.23
13+
14+
- Support for all versions of prettytable
15+
- Update for default flags
16+
- Multi_source_summary renamed to entity_source_summary
17+
18+
### Added in 0.0.23
19+
20+
- New search_feature command
21+
1022
## [0.0.22] - 2025-06-06
1123

1224
### Fixed in 0.0.22

development-requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
bandit==1.8.3
1+
bandit==1.8.5
22
black==25.1.0
33
build==1.2.2.post1
4-
coverage==7.8.2
4+
coverage==7.9.1
55
flake8==7.2.0
66
fpvs==0.3.0
77
isort==6.0.1
8-
mypy==1.16.0
8+
mypy==1.16.1
99
psutil==7.0.0
1010
pylint==3.3.7
11-
pytest-cov==6.1.1
11+
pytest-cov==6.2.1
1212
pytest-schema==0.1.2
13-
pytest==8.4.0
13+
pytest==8.4.1
1414
sphinx-autodoc-typehints==3.1.0
1515
sphinx-gallery==0.19.0
1616
sphinx-jinja2-compat==0.3.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
senzing==0.2.2
2-
senzing-core==0.3.12
2+
senzing-core==0.3.15

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = python-tools
3-
version = 0.0.22
3+
version = 0.0.23
44
author = senzing
55
author_email = support@senzing.com
66
description = Python Tools

sz_tools/sz_configtool

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6129,7 +6129,9 @@ class SzCfgShell(cmd.Cmd):
61296129
table_object.add_row(tblRow)
61306130

61316131
table_object.align = "l"
6132-
if hasattr(prettytable, "SINGLE_BORDER"):
6132+
if hasattr(prettytable, "TableStyle"):
6133+
table_object.set_style(prettytable.TableStyle.SINGLE_BORDER)
6134+
else:
61336135
table_object.set_style(prettytable.SINGLE_BORDER)
61346136
table_object.hrules = 1
61356137
render_string = table_object.get_string()

sz_tools/sz_snapshot

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class SnapshotWriter:
369369
"TOTALS": {"ENTITY_COUNT": 0, "RECORD_COUNT": 0},
370370
"DATA_SOURCES": {},
371371
"CROSS_SOURCES": {},
372-
"MULTI_SOURCES": {},
372+
"ENTITY_SOURCES": {},
373373
"ENTITY_SIZES": {},
374374
}
375375
self.initialize_match_levels(["TOTALS"])
@@ -482,7 +482,7 @@ class SnapshotWriter:
482482
# if len(entity0_sources) > 1:
483483
# include single source so can find non-matches, ie customers not on watch list or in reference file
484484
multi_source_key = "||".join(sorted(entity0_sources.keys()))
485-
self.update_stat_pack(["MULTI_SOURCES", multi_source_key], {"ENTITY_COUNT": 1, "SAMPLE": [entity_id]})
485+
self.update_stat_pack(["ENTITY_SOURCES", multi_source_key], {"ENTITY_COUNT": 1, "SAMPLE": [entity_id]})
486486
elif related_id > entity_id:
487487
sample = f"{entity_id} {related_id}"
488488
principle_matchkey = list(resume_data[related_id]["PRINCIPLES"].keys())[0]
@@ -510,10 +510,11 @@ def check_stat_pack(stats_file_name, csv_file_name, args):
510510
abort = False
511511
stat_pack = json.load(open(stats_file_name))
512512
prior_status = "unknown"
513-
entity_count = 0
513+
entity_count = "?"
514514
if stat_pack.get("PROCESS"):
515515
prior_status = stat_pack["PROCESS"]["STATUS"]
516-
entity_count = stat_pack["TOTALS"]["ENTITY_COUNT"]
516+
if stat_pack.get("TOTALS"):
517+
entity_count = stat_pack["TOTALS"].get("ENTITY_COUNT", "?")
517518
print(f"\n{prior_status} snapshot file exists with {entity_count} entities processed!")
518519
if args.quiet:
519520
print("PRIOR FILES WILL BE OVERWRITTEN")

0 commit comments

Comments
 (0)