Skip to content

Commit 2500998

Browse files
committed
#10 - Save point
1 parent 4969042 commit 2500998

29 files changed

+91
-53
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,11 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130-
.history
130+
.history
131+
132+
# VSCode
133+
.vscode/
134+
.history
135+
136+
# Output folder used by examples
137+
resources/output/

python/configuration/add_data_sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
from pathlib import Path
66

77
from senzing import SzError
8-
from senzing_core import SzAbstractFactory
8+
from senzing_core import SzAbstractFactoryCore
99

1010
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1111
INSTANCE_NAME = Path(__file__).stem
1212

1313

1414
try:
15-
sz_factory = SzAbstractFactory("add_records", ENGINE_CONFIG_JSON, verbose_logging=False)
15+
sz_factory = SzAbstractFactoryCore("add_records", ENGINE_CONFIG_JSON, verbose_logging=False)
1616
sz_config = sz_factory.create_config()
1717
sz_configmanager = sz_factory.create_configmanager()
1818

python/deleting/delete_futures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pathlib import Path
99

1010
from senzing import SzBadInputError, SzError, SzRetryableError, SzUnrecoverableError
11-
from senzing_core import SzAbstractFactory
11+
from senzing_core import SzAbstractFactoryCore
1212

1313
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1414
INPUT_FILE = Path("../../resources/data/del-500.jsonl").resolve()
@@ -68,7 +68,7 @@ def futures_del(engine, input_file):
6868

6969

7070
try:
71-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
71+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
7272
sz_engine = sz_factory.create_engine()
7373
futures_del(sz_engine, INPUT_FILE)
7474
except SzError as err:

python/deleting/delete_loop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pathlib import Path
77

88
from senzing import SzBadInputError, SzError, SzRetryableError, SzUnrecoverableError
9-
from senzing_core import SzAbstractFactory
9+
from senzing_core import SzAbstractFactoryCore
1010

1111
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1212
INPUT_FILE = Path("../../resources/data/del-500.jsonl").resolve()
@@ -49,7 +49,7 @@ def del_records_from_file(engine, input_file):
4949

5050

5151
try:
52-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
52+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
5353
sz_engine = sz_factory.create_engine()
5454
del_records_from_file(sz_engine, INPUT_FILE)
5555
except SzError as err:

python/deleting/delete_with_info_futures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
SzRetryableError,
1515
SzUnrecoverableError,
1616
)
17-
from senzing_core import SzAbstractFactory
17+
from senzing_core import SzAbstractFactoryCore
1818

1919
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
2020
INPUT_FILE = Path("../../resources/data/del-500.jsonl").resolve()
@@ -79,7 +79,7 @@ def futures_del(engine, input_file, output_file):
7979

8080

8181
try:
82-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
82+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
8383
sz_engine = sz_factory.create_engine()
8484
futures_del(sz_engine, INPUT_FILE, OUTPUT_FILE)
8585
except SzError as err:

python/information/check_datastore_performance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
from pathlib import Path
55

66
from senzing import SzError
7-
from senzing_core import SzAbstractFactory
7+
from senzing_core import SzAbstractFactoryCore
88

99
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1010
INSTANCE_NAME = Path(__file__).stem
1111
SECONDS_TO_RUN = 3
1212

1313
try:
14-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
14+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
1515
sz_diagnostic = sz_factory.create_diagnostic()
1616
print(sz_diagnostic.check_datastore_performance(SECONDS_TO_RUN))
1717
except SzError as err:

python/information/get_datastore_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from pathlib import Path
55

66
from senzing import SzError
7-
from senzing_core import SzAbstractFactory
7+
from senzing_core import SzAbstractFactoryCore
88

99
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1010
INSTANCE_NAME = Path(__file__).stem
1111

1212
try:
13-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
13+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
1414
sz_diagnostic = sz_factory.create_diagnostic()
1515
print(sz_diagnostic.get_datastore_info())
1616
except SzError as err:

python/information/get_license.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from pathlib import Path
55

66
from senzing import SzError
7-
from senzing_core import SzAbstractFactory
7+
from senzing_core import SzAbstractFactoryCore
88

99
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1010
INSTANCE_NAME = Path(__file__).stem
1111

1212
try:
13-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
13+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
1414
sz_product = sz_factory.create_product()
1515
print(sz_product.get_license())
1616
except SzError as err:

python/information/get_stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pathlib import Path
99

1010
from senzing import SzBadInputError, SzError, SzRetryableError, SzUnrecoverableError
11-
from senzing_core import SzAbstractFactory
11+
from senzing_core import SzAbstractFactoryCore
1212

1313
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1414
INPUT_FILE = Path("../../resources/data/load-500.jsonl").resolve()
@@ -81,7 +81,7 @@ def futures_add(engine, input_file):
8181

8282

8383
try:
84-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
84+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
8585
sz_engine = sz_factory.create_engine()
8686
futures_add(sz_engine, INPUT_FILE)
8787
except SzError as err:

python/information/get_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from pathlib import Path
55

66
from senzing import SzError
7-
from senzing_core import SzAbstractFactory
7+
from senzing_core import SzAbstractFactoryCore
88

99
ENGINE_CONFIG_JSON = os.getenv("SENZING_ENGINE_CONFIGURATION_JSON", "{}")
1010
INSTANCE_NAME = Path(__file__).stem
1111

1212
try:
13-
sz_factory = SzAbstractFactory(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
13+
sz_factory = SzAbstractFactoryCore(INSTANCE_NAME, ENGINE_CONFIG_JSON, verbose_logging=False)
1414
sz_product = sz_factory.create_product()
1515
print(sz_product.get_version())
1616
except SzError as err:

0 commit comments

Comments
 (0)