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.
Source Distribution
Built Distribution
File details
Details for the file senzing-0.0.3.tar.gz
.
File metadata
- Download URL: senzing-0.0.3.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cba3ef3a4d6db613ebab963500950a62de07cc47618b1118f4798a0aff91df5 |
|
MD5 | ab8488bebdfbe89095993f1b6de190e9 |
|
BLAKE2b-256 | a750fe075285ae3c179da27edc5920df63d9c24a55f72cb5080804a7c805ac20 |
File details
Details for the file senzing-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: senzing-0.0.3-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44a268567b136c6e7b37fae64fcbfd4eccb7d6f3bab365c52e52b573b8662527 |
|
MD5 | 5508ca803998e3bd93279c7a9144c2dc |
|
BLAKE2b-256 | 9e241a076e02041798fca2b7abd9b917942e992ca78a020e3fcfab444d240cdb |