Python SDK to Senzing API
Project description
g2-sdk-python
Develop
The 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.
Clone repository
For more information on environment variables, see Environment Variables.
-
Set these environment variable values:
export GIT_ACCOUNT=senzing export GIT_REPOSITORY=g2-sdk-python export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
-
Using the environment variables values just set, follow steps in clone-repository to install the Git repository.
Build python packages
-
Build pip package using
python3 -m build
. Example:cd ${GIT_REPOSITORY_DIR} make package
Publish
-
Publish to https://test.pypi.org. Example:
cd ${GIT_REPOSITORY_DIR} make test-package
Install
-
Install using
pip
. Example:pip3 install --index-url https://test.pypi.org/simple/ --no-deps senzing
Test
-
Run testcases found in
tests
directory. Example:make test
Uninstall
-
Remove senzing. Example:
pip3 uninstall senzing
-
Verify. Example:
ls ~/.local/lib/python3.8/site-packages
ls /usr/local/lib/python3.8/dist-packages
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.