Package: senzing-ce
g2-sdk-pythonSynopsisSenzing Software Development Kit (SDK) for Python.
This SDK provide python access to thesenzingapiWarning:Usingpip install senzing-cewill install a version of the Senzing Python SDK
thatis notcovered by Senzing's Service Level Agreement (SLA).
To obtain a version of the Senzing Python SDK thatiscovered, seeInstall Senzing API.More information atgithub.com/Senzing/g2-sdk-pythonOverviewThe git repository atgithub.com/Senzing/g2-sdk-pythoncontains the Senzing SDK for Python files insrc/senzing.It also contains:Tooling to create Python "wheel" packagesTest suitesInstructions for publishing toPyPi.ContentsInstallDevelopPrerequisites for developmentClone repositoryInstall dependenciesBuild python packagesLocal testPublishTestUninstallVerify UninstalReferencesInstallUse thepip installcommand to install theSenzing SDK for Pythoncommunity edition.
Example:pip install senzing-ceMore information atgithub.com/Senzing/g2-sdk-pythonDevelopThe following instructions are used when modifying and building the Docker image.Prerequisites for development:thinking: The following tasks need to be complete before proceeding.
These are "one-time tasks" which may already have been completed.The following software programs need to be installed:gitmakepip:pencil2: Make a~/.pypircfile.
Example:[pypi]username = __token__password = pypi-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa[testpypi]username = __token__password = pypi-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbClone repositoryFor more information on environment variables,
seeEnvironment Variables.Set these environment variable values:export GIT_ACCOUNT=senzingexport GIT_REPOSITORY=g2-sdk-pythonexport GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.gitexport GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"Using the environment variables values just set, follow steps inclone-repositoryto install the Git repository.Install dependenciesInstall python tools viaMakefile.
Example:cd ${GIT_REPOSITORY_DIR}make install-dependenciesBuild python packagesBuild pip package usingpython3 -m buildviaMakefile.
Example:cd ${GIT_REPOSITORY_DIR}make packageOutput will be in thedistdirectory.Local testInstall from fileInstall usingpipviaMakefile.
Example:cd ${GIT_REPOSITORY_DIR}make install-fileTest local packageRun testcases found intestsdirectory.
Example:cd ${GIT_REPOSITORY_DIR}make testUninstall local packageRemove senzing.
Example:cd ${GIT_REPOSITORY_DIR}make uninstallPublish:warning:  OnPyPiandtest.pypi,
pip package versions are immmutable.
They cannot be deleted nor updated.
Since only one instance of a version can be published,
be careful on what is published.Publish to test.pypi.orgPublish tohttps://test.pypi.org.
This is a test PyPi server.
Example:cd ${GIT_REPOSITORY_DIR}make publish-testPublish to pypi.orgPublish tohttps://pypi.org.
:warning: This requires that the workstation hasgpgenabled with
the signing key for "Senzing, Inc."
Example:cd ${GIT_REPOSITORY_DIR}make publish-signedTestInstall from test.pypi.orgInstall usingpipviaMakefile.
Example:cd ${GIT_REPOSITORY_DIR}make install-testInstall from pypi.orgInstall usingpipviaMakefile.
Example:cd ${GIT_REPOSITORY_DIR}make installUnit testsRun testcases found intestsdirectory.
Example:cd ${GIT_REPOSITORY_DIR}make testUninstallRemove Senzing SDK for Python.
Example:cd ${GIT_REPOSITORY_DIR}make uninstallVerify Uninstall:pencil2: Identify python version.
Example:export SENZING_PYTHON_VERSION=3.8Verify deletion in user python repository.
Example:ls ~/.local/lib/python${SENZING_PYTHON_VERSION}/site-packages | grep senzingShould return nothing.Verify deletion in system repository.
Example:ls /usr/local/lib/python${SENZING_PYTHON_VERSION}/dist-packages | grep senzingShould return nothing.ReferencesPackaging Python Projects