Skip to content

Commit a00ddb8

Browse files
authored
3.ant.8 (#66)
* 3.ant.8 - Updates * 3.ant.8 - Updates * Update CHANGELOG.md
1 parent 80bae29 commit a00ddb8

File tree

104 files changed

+1340
-1384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1340
-1384
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010

11+
## [0.0.4] - 2024-04-19
12+
13+
### Added to 0.0.4
14+
15+
- Updates
16+
1117
## [0.0.3] - 2024-04-17
1218

1319
### Added to 0.0.3

examples/szconfig/add_data_source.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22

33
from senzing import szconfig, szconfigmanager
4-
from senzing.szexception import SzException
4+
from senzing.szerror import SzError
55

66
CONFIG_COMMENT = "Added new datasource"
77
DATA_SOURCE_CODE = "TEST12"
@@ -12,7 +12,7 @@
1212
"RESOURCEPATH": "/opt/senzing/g2/resources",
1313
"SUPPORTPATH": "/opt/senzing/data",
1414
},
15-
"SQL": {"CONNECTION": "sqlite3://na:na@/var/opt/senzing/G2C.db"},
15+
"SQL": {"CONNECTION": "sqlite3://na:na@/tmp/sqlite/G2C.db"},
1616
}
1717

1818
try:
@@ -31,5 +31,5 @@
3131
sz_configmgr.set_default_config_id(new_config_id)
3232

3333
print(result)
34-
except SzException as err:
34+
except SzError as err:
3535
print(err)

examples/szconfig/create_and_close.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22

33
from senzing import szconfig
4-
from senzing.szexception import SzException
4+
from senzing.szerror import SzError
55

66
INSTANCE_NAME = "Example"
77
SETTINGS = {
@@ -20,5 +20,5 @@
2020
# Do work.
2121

2222
sz_config.close_config(config_handle)
23-
except SzException as err:
23+
except SzError as err:
2424
print(err)

examples/szconfig/create_save_load_close.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22

33
from senzing import szconfig
4-
from senzing.szexception import SzException
4+
from senzing.szerror import SzError
55

66
INSTANCE_NAME = "Example"
77
SETTINGS = {
@@ -16,9 +16,9 @@
1616
try:
1717
sz_config = szconfig.SzConfig(INSTANCE_NAME, SETTINGS)
1818
config_handle_1 = sz_config.create_config() # Create first in-memory.
19-
json_config = sz_config.export_config(config_handle_1) # Save in-memory to string.
20-
config_handle_2 = sz_config.import_config(json_config) # Create second in-memory.
19+
config = sz_config.export_config(config_handle_1) # Save in-memory to string.
20+
config_handle_2 = sz_config.import_config(config) # Create second in-memory.
2121
sz_config.close_config(config_handle_1)
2222
sz_config.close_config(config_handle_2)
23-
except SzException as err:
23+
except SzError as err:
2424
print(err)

examples/szconfig/delete_data_source.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22

33
from senzing import szconfig, szconfigmanager
4-
from senzing.szexception import SzException
4+
from senzing.szerror import SzError
55

66
CONFIG_COMMENT = "Added new datasource"
77
DATA_SOURCE_CODE = "TEST12"
@@ -12,7 +12,7 @@
1212
"RESOURCEPATH": "/opt/senzing/g2/resources",
1313
"SUPPORTPATH": "/opt/senzing/data",
1414
},
15-
"SQL": {"CONNECTION": "sqlite3://na:na@/var/opt/senzing/G2C.db"},
15+
"SQL": {"CONNECTION": "sqlite3://na:na@/tmp/sqlite/G2C.db"},
1616
}
1717

1818
try:
@@ -29,5 +29,5 @@
2929

3030
new_config_id = sz_configmgr.add_config(new_config, CONFIG_COMMENT)
3131
sz_configmgr.set_default_config_id(new_config_id)
32-
except SzException as err:
32+
except SzError as err:
3333
print(err)

examples/szconfig/export_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
from senzing import szconfig
5-
from senzing.szexception import SzException
5+
from senzing.szerror import SzError
66

77
SETTINGS = {
88
"PIPELINE": {
@@ -17,8 +17,8 @@
1717
try:
1818
sz_config = szconfig.SzConfig(MODULE_NAME, SETTINGS)
1919
config_handle = sz_config.create_config() # Create first in-memory.
20-
json_config = sz_config.export_config(config_handle) # Save in-memory to string.
20+
config = sz_config.export_config(config_handle) # Save in-memory to string.
2121
sz_config.close_config(config_handle)
22-
print(json_config)
23-
except SzException as err:
22+
print(config)
23+
except SzError as err:
2424
print(err)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22

33
from senzing import szconfig
4-
from senzing.szexception import SzException
4+
from senzing.szerror import SzError
55

66
INSTANCE_NAME = "Example"
77
SETTINGS = {
@@ -10,14 +10,14 @@
1010
"RESOURCEPATH": "/opt/senzing/g2/resources",
1111
"SUPPORTPATH": "/opt/senzing/data",
1212
},
13-
"SQL": {"CONNECTION": "sqlite3://na:na@/var/opt/senzing/G2C.db"},
13+
"SQL": {"CONNECTION": "sqlite3://na:na@/tmp/sqlite/G2C.db"},
1414
}
1515

1616
# Example 1
1717

1818
try:
1919
sz_config1 = szconfig.SzConfig(INSTANCE_NAME, SETTINGS)
20-
except SzException as err:
20+
except SzError as err:
2121
print(err)
2222

2323
# Example 2
@@ -26,5 +26,5 @@
2626
sz_config2 = szconfig.SzConfig()
2727
sz_config2.initialize(INSTANCE_NAME, SETTINGS)
2828
sz_config2.destroy()
29-
except SzException as err:
29+
except SzError as err:
3030
print(err)

examples/szconfig/get_data_sources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22

33
from senzing import szconfig, szconfigmanager
4-
from senzing.szexception import SzException
4+
from senzing.szerror import SzError
55

66
INSTANCE_NAME = "Example"
77
SETTINGS = {
@@ -10,7 +10,7 @@
1010
"RESOURCEPATH": "/opt/senzing/g2/resources",
1111
"SUPPORTPATH": "/opt/senzing/data",
1212
},
13-
"SQL": {"CONNECTION": "sqlite3://na:na@/var/opt/senzing/G2C.db"},
13+
"SQL": {"CONNECTION": "sqlite3://na:na@/tmp/sqlite/G2C.db"},
1414
}
1515

1616
try:
@@ -24,5 +24,5 @@
2424
result = sz_config.get_data_sources(config_handle)
2525
sz_config.close_config(config_handle)
2626
print(result)
27-
except SzException as err:
27+
except SzError as err:
2828
print(err)

examples/szconfig/import_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Any, Dict
44

55
from senzing import szconfig
6-
from senzing.szexception import SzException
6+
from senzing.szerror import SzError
77

88
INSTANCE_NAME = "Example"
99
SETTINGS = {
@@ -23,5 +23,5 @@
2323
try:
2424
sz_config = szconfig.SzConfig(INSTANCE_NAME, SETTINGS)
2525
config_handle = sz_config.import_config(json_config_dict)
26-
except SzException as err:
26+
except SzError as err:
2727
print(err)

examples/szconfig/initialize_and_destroy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env python3
22

33
from senzing import szconfig
4-
from senzing.szexception import SzException
4+
from senzing.szerror import SzError
55

66
INSTANCE_NAME = "Example"
77
SETTINGS = {
@@ -20,5 +20,5 @@
2020
# Do work.
2121

2222
sz_config.destroy()
23-
except SzException as err:
23+
except SzError as err:
2424
print(err)

0 commit comments

Comments
 (0)