Skip to main content

Senzing Python SDK over gRPC

Project description

sz-sdk-python-grpc

If you are beginning your journey with Senzing, please start with Senzing Quick Start guides.

You are in the Senzing Garage where projects are "tinkered" on. Although this GitHub repository may help you understand an approach to using Senzing, it's not considered to be "production ready" and is not considered to be part of the Senzing product. Heck, it may not even be appropriate for your application of Senzing!

:warning: WARNING: sz-sdk-python-grpc is still in development :warning: _

At the moment, this is "work-in-progress" with Semantic Versions of 0.n.x. Although it can be reviewed and commented on, the recommendation is not to use it yet.

Synopsis

The Senzing sz-sdk-python-grpc package provides a Python Software Development Kit adhering to the abstract classes of sz-sdk-python that communicates with a Senzing gRPC server.

Python 3.11 Badge PEP8 Badge PyPI version Badge Downloads Badge License Badge Coverage Badge

Overview

The Senzing sz-sdk-python-grpc packages enable Python programs to call Senzing library functions across a network to a Senzing gRPC server.

The sz-sdk-python-grpc package implements the following sz-sdk-python interfaces:

  1. SzConfig
  2. SzConfigMgr
  3. SzDiagnostic
  4. SzEngine
  5. SzProduct

Other implementations of the sz-sdk-python interface include:

Use

The following example shows how to start a Senzing gRPC server Docker container and access it using the senzing_grpc Python package.

  1. Run a Senzing gRPC service using Docker.

    docker run -it --name senzing-serve-grpc -p 8261:8261 --pull always --read-only --rm senzing/serve-grpc
    
  2. In a separate window, install the senzing-grpc Python package.

    python3 -m pip install --upgrade senzing-grpc
    
  3. Start an interactive Python session.

    python3
    
  4. Paste the following into the interactive Python session.

    import grpc
    from senzing_grpc import SzAbstractFactoryGrpc
    sz_abstract_factory = SzAbstractFactoryGrpc(grpc_channel=grpc.insecure_channel("localhost:8261"))
    sz_product = sz_abstract_factory.create_product()
    print(sz_product.get_version())
    

More can be seen in Examples.

References

  1. Development
  2. Errors
  3. Examples
  4. Related artifacts:
    1. DockerHub
  5. sz-sdk-python package reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

senzing_grpc-0.4.1.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

senzing_grpc-0.4.1-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file senzing_grpc-0.4.1.tar.gz.

File metadata

  • Download URL: senzing_grpc-0.4.1.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for senzing_grpc-0.4.1.tar.gz
Algorithm Hash digest
SHA256 0b6fae313936ba4b6613cb23e6af4ece356bfda13084ba1ff0e2d5b91c02c1cd
MD5 8a83fc1dee5e24ec44460bb04d44ab73
BLAKE2b-256 756b45dec77e764a639a9cc037b3f020ec131e36a165c856ea974925e0634d1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for senzing_grpc-0.4.1.tar.gz:

Publisher: publish-to-pypi.yaml on senzing-garage/sz-sdk-python-grpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file senzing_grpc-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: senzing_grpc-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for senzing_grpc-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04022b1399a2eb0d6ec5c514beb3915e7518471fe2ab172a10b9ed6ae0e8eedc
MD5 9fb98f85a5b815c1b805e195b70ccb4d
BLAKE2b-256 11e92050066fda451c12dd9a02c9fd239328680593beff37eaaad6a3f9b9e93f

See more details on using hashes here.

Provenance

The following attestation bundles were made for senzing_grpc-0.4.1-py3-none-any.whl:

Publisher: publish-to-pypi.yaml on senzing-garage/sz-sdk-python-grpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page