Skip to content

Commit

Permalink
#134 Sync with sz-sdk-python-grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Dec 3, 2024
1 parent cf34142 commit f94979f
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 32 deletions.
6 changes: 3 additions & 3 deletions docs/source/modules.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
senzing
=======
senzing_core
============

.. toctree::
:maxdepth: 4

senzing
senzing_core
32 changes: 16 additions & 16 deletions docs/source/senzing.rst → docs/source/senzing_core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,46 @@ senzing package
Submodules
----------

senzing.szconfig module
-----------------------
senzing_core.szconfig module
----------------------------

.. automodule:: senzing.szconfig
.. automodule:: senzing_core.szconfig
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

senzing.szconfigmanager module
------------------------------
senzing_core.szconfigmanager module
-----------------------------------

.. automodule:: senzing.szconfigmanager
.. automodule:: senzing_core.szconfigmanager
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

senzing.szdiagnostic module
---------------------------
senzing_core.szdiagnostic module
--------------------------------

.. automodule:: senzing.szdiagnostic
.. automodule:: senzing_core.szdiagnostic
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

senzing.szengine module
-----------------------
senzing_core.szengine module
----------------------------

.. automodule:: senzing.szengine
.. automodule:: senzing_core.szengine
:members:
:undoc-members:
:show-inheritance:
:inherited-members:

senzing.szproduct module
------------------------
senzing_core.szproduct module
-----------------------------

.. automodule:: senzing.szproduct
.. automodule:: senzing_core.szproduct
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -52,7 +52,7 @@ senzing.szproduct module
Module contents
---------------

.. automodule:: senzing
.. automodule:: senzing_core
:members:
:undoc-members:
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion examples/misc/add_truthset_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
SZ_WITHOUT_INFO,
)
except SzError as err:
print(f"\nError in {__file__}:\n{err}\n")
print(f"\nFile {__file__}:\nError:\n{err}\n")
2 changes: 1 addition & 1 deletion examples/misc/add_truthset_datasources.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
sz_configmanager.replace_default_config_id(current_default_config_id, new_default_config_id)
sz_abstract_factory.reinitialize(new_default_config_id)
except SzError as err:
print(f"\nError in {__file__}:\n{err}\n")
print(f"\nFile {__file__}:\nError:\n{err}\n")
2 changes: 1 addition & 1 deletion examples/misc/individual_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def try_sz_product(sz_product_local: SzProduct) -> None:
try_sz_product(sz_product)

except SzError as err:
print(f"\nError in {__file__}:\n{err}\n")
print(f"\nFile {__file__}:\nError:\n{err}\n")
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from senzing_core import SzAbstractFactory, SzAbstractFactoryParameters, SzError

DATA_SOURCE_CODE = "NAME_OF_DATASOURCE"
FACTORY_PARAMETERS: SzAbstractFactoryParameters = {
"instance_name": "Example",
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from senzing_core import SzAbstractFactory, SzAbstractFactoryParameters, SzError

DATA_SOURCE_CODE = "NAME_OF_DATASOURCE"
FACTORY_PARAMETERS: SzAbstractFactoryParameters = {
"instance_name": "Example",
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from senzing_core import SzAbstractFactory, SzAbstractFactoryParameters, SzError

DATA_SOURCE_CODE = "NAME_OF_DATASOURCE"
FACTORY_PARAMETERS: SzAbstractFactoryParameters = {
"instance_name": "Example",
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from senzing_core import SzAbstractFactory, SzAbstractFactoryParameters, SzError

DATA_SOURCE_CODE = "NAME_OF_DATASOURCE"
FACTORY_PARAMETERS: SzAbstractFactoryParameters = {
"instance_name": "Example",
"settings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from senzing_core import SzAbstractFactory, SzAbstractFactoryParameters, SzError

DATA_SOURCE_CODE = "NAME_OF_DATASOURCE"
FACTORY_PARAMETERS: SzAbstractFactoryParameters = {
"instance_name": "Example",
"settings": {
Expand Down
4 changes: 2 additions & 2 deletions examples/szengine/find_network_by_entity_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
SzError,
)

BUILD_OUT_DEGREE = 1
BUILD_OUT_DEGREES = 1
ENTITY_LIST = [1, 4]
FACTORY_PARAMETERS: SzAbstractFactoryParameters = {
"instance_name": "Example",
Expand All @@ -27,7 +27,7 @@
try:
sz_abstract_factory = SzAbstractFactory(**FACTORY_PARAMETERS)
sz_engine = sz_abstract_factory.create_engine()
RESULT = sz_engine.find_network_by_entity_id(ENTITY_LIST, MAX_DEGREES, BUILD_OUT_DEGREE, MAX_ENTITIES, FLAGS)
RESULT = sz_engine.find_network_by_entity_id(ENTITY_LIST, MAX_DEGREES, BUILD_OUT_DEGREES, MAX_ENTITIES, FLAGS)
print(f"\nFile {__file__}:\n{RESULT}\n")
except SzError as err:
print(f"\nFile {__file__}:\nError:\n{err}\n")
4 changes: 2 additions & 2 deletions examples/szengine/find_network_by_record_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
SzError,
)

BUILD_OUT_DEGREE = 1
BUILD_OUT_DEGREES = 1
FACTORY_PARAMETERS: SzAbstractFactoryParameters = {
"instance_name": "Example",
"settings": {
Expand All @@ -27,7 +27,7 @@
try:
sz_abstract_factory = SzAbstractFactory(**FACTORY_PARAMETERS)
sz_engine = sz_abstract_factory.create_engine()
RESULT = sz_engine.find_network_by_record_id(RECORD_LIST, MAX_DEGREES, BUILD_OUT_DEGREE, MAX_ENTITIES, FLAGS)
RESULT = sz_engine.find_network_by_record_id(RECORD_LIST, MAX_DEGREES, BUILD_OUT_DEGREES, MAX_ENTITIES, FLAGS)
print(f"\nFile {__file__}:\n{RESULT}\n")
except SzError as err:
print(f"\nFile {__file__}:\nError:\n{err}\n")
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module = "pytest_schema.*"
ignore_missing_imports = "true"

[tool.pylint]
ignored-argument-names = "args|kwargs"
disable = [
"duplicate-code",
"line-too-long",
Expand Down

0 comments on commit f94979f

Please sign in to comment.