Skip to content

Commit

Permalink
#192 Move to Grpc suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Jan 16, 2025
1 parent c54639b commit 6c47ab4
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 34 deletions.
8 changes: 4 additions & 4 deletions src/senzing_grpc/szabstractfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@

__all__ = ["SzAbstractFactoryGrpc", "SzAbstractFactoryParametersGrpc"]
__version__ = "0.0.1" # See https://www.python.org/dev/peps/pep-0396/
__date__ = "2023-11-27"
__updated__ = "2025-01-10"
__date__ = "2025-01-10"
__updated__ = "2025-01-16"


# -----------------------------------------------------------------------------
# SzAbstractFactoryParameters class
# SzAbstractFactoryParametersGrpc class
# -----------------------------------------------------------------------------


Expand All @@ -47,7 +47,7 @@ class SzAbstractFactoryParametersGrpc(TypedDict, total=False):


# -----------------------------------------------------------------------------
# SzAbstractFactory class
# SzAbstractFactoryGrpc class
# -----------------------------------------------------------------------------


Expand Down
10 changes: 5 additions & 5 deletions src/senzing_grpc/szconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, Dict, Type, Union

import grpc
from senzing import SzConfig as SzConfigAbstract
from senzing import SzConfig

from .pb2_grpc import szconfig_pb2, szconfig_pb2_grpc
from .szhelpers import as_str, new_exception
Expand All @@ -19,19 +19,19 @@

__all__ = ["SzConfigGrpc"]
__version__ = "0.0.1" # See https://www.python.org/dev/peps/pep-0396/
__date__ = "2023-11-27"
__updated__ = "2025-01-10"
__date__ = "2025-01-10"
__updated__ = "2025-01-16"

SENZING_PRODUCT_ID = (
"5050" # See https://github.com/senzing-garage/knowledge-base/blob/main/lists/senzing-component-ids.md
)

# -----------------------------------------------------------------------------
# SzConfig class
# SzConfigGrpc class
# -----------------------------------------------------------------------------


class SzConfigGrpc(SzConfigAbstract):
class SzConfigGrpc(SzConfig):
"""
SzConfig module access library over gRPC.
"""
Expand Down
12 changes: 5 additions & 7 deletions src/senzing_grpc/szconfigmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,28 @@
from typing import Any, Dict, Type, Union

import grpc
from senzing import SzConfigManager as SzConfigManagerAbstract
from senzing import SzConfigManager

from .pb2_grpc import szconfigmanager_pb2, szconfigmanager_pb2_grpc

# from .szexception import translate_exception
from .szhelpers import as_str, new_exception

# Metadata

__all__ = ["SzConfigManagerGrpc"]
__version__ = "0.0.1" # See https://www.python.org/dev/peps/pep-0396/
__date__ = "2023-11-27"
__updated__ = "2025-01-10"
__date__ = "2025-01-10"
__updated__ = "2025-01-16"

SENZING_PRODUCT_ID = (
"5051" # See https://github.com/senzing-garage/knowledge-base/blob/main/lists/senzing-component-ids.md
)

# -----------------------------------------------------------------------------
# SzConfigManager class
# SzConfigManagerGrpc class
# -----------------------------------------------------------------------------


class SzConfigManagerGrpc(SzConfigManagerAbstract):
class SzConfigManagerGrpc(SzConfigManager):
"""
SzConfigManager module access library over gRPC.
"""
Expand Down
10 changes: 5 additions & 5 deletions src/senzing_grpc/szdiagnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, Dict, Optional, Type, Union

import grpc
from senzing import SzDiagnostic as SzDiagnosticAbstract
from senzing import SzDiagnostic

from .pb2_grpc import szdiagnostic_pb2, szdiagnostic_pb2_grpc
from .szhelpers import new_exception
Expand All @@ -19,19 +19,19 @@

__all__ = ["SzDiagnosticGrpc"]
__version__ = "0.0.1" # See https://www.python.org/dev/peps/pep-0396/
__date__ = "2023-11-27"
__updated__ = "2025-01-10"
__date__ = "2025-01-10"
__updated__ = "2025-01-16"

SENZING_PRODUCT_ID = (
"5052" # See https://github.com/senzing-garage/knowledge-base/blob/main/lists/senzing-component-ids.md
)

# -----------------------------------------------------------------------------
# SzDiagnostic class
# SzDiagnosticGrpc class
# -----------------------------------------------------------------------------


class SzDiagnosticGrpc(SzDiagnosticAbstract):
class SzDiagnosticGrpc(SzDiagnostic):
"""
SzDiagnostic module access library over gRPC.
"""
Expand Down
11 changes: 5 additions & 6 deletions src/senzing_grpc/szengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
from typing import Any, Dict, Iterable, List, Optional, Tuple, Type, Union

import grpc
from senzing import SzEngine as SzEngineAbstract
from senzing import SzEngineFlags
from senzing import SzEngine, SzEngineFlags

from .pb2_grpc import szengine_pb2, szengine_pb2_grpc
from .szhelpers import as_str, new_exception
Expand All @@ -21,19 +20,19 @@

__all__ = ["SzEngineGrpc"]
__version__ = "0.0.1" # See https://www.python.org/dev/peps/pep-0396/
__date__ = "2023-11-27"
__updated__ = "2025-01-10"
__date__ = "2025-01-10"
__updated__ = "2025-01-16"

SENZING_PRODUCT_ID = (
"5053" # See https://github.com/senzing-garage/knowledge-base/blob/main/lists/senzing-component-ids.md
)

# -----------------------------------------------------------------------------
# SzEngine class
# SzEngineGrpc class
# -----------------------------------------------------------------------------


class SzEngineGrpc(SzEngineAbstract):
class SzEngineGrpc(SzEngine):
"""
Sz engine module access library over gRPC.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/senzing_grpc/szhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# Metadata

__version__ = "0.0.1" # See https://www.python.org/dev/peps/pep-0396/
__date__ = "2023-11-27"
__updated__ = "2025-01-10"
__date__ = "2025-01-10"
__updated__ = "2025-01-16"

# -----------------------------------------------------------------------------
# Helpers for working with parameters
Expand Down
10 changes: 5 additions & 5 deletions src/senzing_grpc/szproduct.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, Dict, Type, Union

import grpc
from senzing import SzProduct as SzProductAbstract
from senzing import SzProduct

from .pb2_grpc import szproduct_pb2, szproduct_pb2_grpc
from .szhelpers import new_exception
Expand All @@ -19,19 +19,19 @@

__all__ = ["SzProductGrpc"]
__version__ = "0.0.1" # See https://www.python.org/dev/peps/pep-0396/
__date__ = "2023-11-27"
__updated__ = "2025-01-10"
__date__ = "2025-01-10"
__updated__ = "2025-01-16"

SENZING_PRODUCT_ID = (
"5056" # See https://github.com/senzing-garage/knowledge-base/blob/main/lists/senzing-component-ids.md
)

# -----------------------------------------------------------------------------
# SzProduct class
# SzProductGrpc class
# -----------------------------------------------------------------------------


class SzProductGrpc(SzProductAbstract):
class SzProductGrpc(SzProduct):
"""
SzProduct module access library over gRPC.
"""
Expand Down

0 comments on commit 6c47ab4

Please sign in to comment.