Skip to content

Commit 0084858

Browse files
authored
285 ant 1 (#287)
* #285 - Rename SzConfigManager.getConfigs to SzConfigManager.getConfigRegistry * #285 - Rename SzConfigManager.getConfigs to SzConfigManager.getConfigRegistry * #285 - Update requirements
1 parent d015f27 commit 0084858

File tree

12 files changed

+81
-28
lines changed

12 files changed

+81
-28
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.3.15] - 2025-06-18
11+
12+
### Changed in 0.3.15
13+
14+
- szconfigmanager.get_configs changed to szconfigmanager.get_config_registry
15+
16+
### Fixed in 0.3.15
17+
18+
- Example output for preprocess_record updated
19+
1020
## [0.3.14] - 2025-06-12
1121

1222
### Changed in 0.3.14

Migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ These are Python specific not covered in [breaking changes][breaking-changes]. T
448448
| getConfig | create_config_from_config_id |
449449
| | create_config_from_string |
450450
| | create_config_from_template |
451-
| getConfigList | get_configs |
451+
| getConfigList | get_config_registry |
452452
| getDefaultConfigID | get_default_config_id |
453453
| | register_config |
454454
| replaceDefaultConfigID | replace_default_config_id |

documentation-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sphinx-gallery==0.19.0
66
sphinx-jinja2-compat==0.3.0
77
sphinx-prompt==1.9.0
88
sphinx-rtd-theme==3.0.2
9-
sphinx-tabs==3.4.7
9+
sphinx-tabs==3.4.5
1010
sphinx-toolbox==4.0.0
1111
sphinxcontrib-applehelp==2.0.0
1212
sphinxcontrib-devhelp==2.0.0

examples/szconfigmanager/get_configs.py renamed to examples/szconfigmanager/get_config_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
try:
1616
sz_abstract_factory = SzAbstractFactoryCore(instance_name, settings)
1717
sz_configmanager = sz_abstract_factory.create_configmanager()
18-
config_list = sz_configmanager.get_configs()
18+
config_list = sz_configmanager.get_config_registry()
1919
print(f"\n{config_list}\n")
2020
except SzError as err:
2121
print(f"\nERROR: {err}\n")
File renamed without changes.
Lines changed: 59 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,62 @@
1-
// Output has been formatted for easier reading.
2-
31
{
4-
"JSON_DATA": {
5-
"RECORD_TYPE": "PERSON",
6-
"NAME_TYPE": "PRIMARY",
7-
"NAME_LAST": "Smith",
8-
"NAME_FIRST": "Robert",
9-
"DATE_OF_BIRTH": "12/11/1978",
10-
"ADDR_TYPE": "MAILING",
11-
"ADDR_FULL": "123 Main Street, Las Vegas NV 89132",
12-
"PHONE_TYPE": "HOME",
13-
"PHONE_NUMBER": "702-919-1300",
14-
"EMAIL_ADDRESS": "bsmith@work.com",
15-
"DATE": "1/2/18",
16-
"STATUS": "Active",
17-
"AMOUNT": "100"
2+
"FEATURES": {
3+
"NAME": [
4+
{
5+
"LIB_FEAT_ID": -2,
6+
"USAGE_TYPE": "PRIMARY",
7+
"FEAT_DESC": "Robert Smith",
8+
"ATTRIBUTES": {
9+
"PRIMARY_NAME_LAST": "Smith",
10+
"PRIMARY_NAME_FIRST": "Robert"
11+
}
12+
}
13+
],
14+
"DOB": [
15+
{
16+
"LIB_FEAT_ID": -3,
17+
"FEAT_DESC": "12/11/1978",
18+
"ATTRIBUTES": {
19+
"DATE_OF_BIRTH": "12/11/1978"
20+
}
21+
}
22+
],
23+
"ADDRESS": [
24+
{
25+
"LIB_FEAT_ID": -4,
26+
"USAGE_TYPE": "MAILING",
27+
"FEAT_DESC": "123 Main Street, Las Vegas NV 89132",
28+
"ATTRIBUTES": {
29+
"ADDR_LINE1": "123 Main Street, Las Vegas NV 89132"
30+
}
31+
}
32+
],
33+
"PHONE": [
34+
{
35+
"LIB_FEAT_ID": -5,
36+
"USAGE_TYPE": "HOME",
37+
"FEAT_DESC": "702-919-1300",
38+
"ATTRIBUTES": {
39+
"PHONE_NUMBER": "702-919-1300"
40+
}
41+
}
42+
],
43+
"EMAIL": [
44+
{
45+
"LIB_FEAT_ID": -6,
46+
"FEAT_DESC": "bsmith@work.com",
47+
"ATTRIBUTES": {
48+
"EMAIL_ADDRESS": "bsmith@work.com"
49+
}
50+
}
51+
],
52+
"RECORD_TYPE": [
53+
{
54+
"LIB_FEAT_ID": -11,
55+
"FEAT_DESC": "PERSON",
56+
"ATTRIBUTES": {
57+
"RECORD_TYPE": "PERSON"
58+
}
59+
}
60+
]
1861
}
1962
}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
orjson==3.10.18
2-
senzing==0.2.14
2+
senzing==0.2.16

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = senzing_core
3-
version = 0.3.14
3+
version = 0.3.15
44
author = senzing
55
author_email = support@senzing.com
66
description = Senzing Python SDK
@@ -21,7 +21,7 @@ package_dir =
2121
packages = find:
2222
python_requires = >=3.9
2323
install_requires =
24-
senzing >= 0.2.14,<1.0.0
24+
senzing >= 0.2.16,<1.0.0
2525

2626
[options.packages.find]
2727
where = src

src/senzing_core/szconfigmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def create_config_from_template(self) -> SzConfig:
193193
result.import_template()
194194
return result
195195

196-
def get_configs(self) -> str:
196+
def get_config_registry(self) -> str:
197197
result = self.library_handle.SzConfigMgr_getConfigList_helper()
198198
with FreeCResources(self.library_handle, result.response):
199199
self.check_result(result.return_code)

src/senzing_core/szdiagnostic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def reinitialize(self, config_id: int) -> None:
219219
"""
220220
The `reinitialize` method reinitializes the Senzing object using a specific configuration
221221
identifier. A list of available configuration identifiers can be retrieved using
222-
`szconfigmanager.get_configs`.
222+
`szconfigmanager.get_config_registry`.
223223
"""
224224
result = self.library_handle.SzDiagnostic_reinit(config_id)
225225
self.check_result(result)

0 commit comments

Comments
 (0)