Skip to main content

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.

  1. The following software programs need to be installed:
    1. git
    2. make
    3. pip

Clone repository

For more information on environment variables, see Environment Variables.

  1. 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}"
    
  2. Using the environment variables values just set, follow steps in clone-repository to install the Git repository.

Build python packages

  1. Build pip package using python3 -m build. Example:

    cd ${GIT_REPOSITORY_DIR}
    make package
    

Publish

  1. Publish to https://test.pypi.org. Example:

    cd ${GIT_REPOSITORY_DIR}
    make test-package
    

Install

  1. Install using pip. Example:

    pip3 install --index-url https://test.pypi.org/simple/ --no-deps senzing
    

Test

  1. Run testcases found in tests directory. Example:

    make test
    

Uninstall

  1. Remove senzing. Example:

    pip3 uninstall senzing
    
  2. Verify. Example:

    ls ~/.local/lib/python3.8/site-packages
    
    ls /usr/local/lib/python3.8/dist-packages
    

References

  1. Packaging Python Projects

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

senzing-0.0.3.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

senzing-0.0.3-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

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

Hashes for senzing-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7cba3ef3a4d6db613ebab963500950a62de07cc47618b1118f4798a0aff91df5
MD5 ab8488bebdfbe89095993f1b6de190e9
BLAKE2b-256 a750fe075285ae3c179da27edc5920df63d9c24a55f72cb5080804a7c805ac20

See more details on using hashes here.

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

Hashes for senzing-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 44a268567b136c6e7b37fae64fcbfd4eccb7d6f3bab365c52e52b573b8662527
MD5 5508ca803998e3bd93279c7a9144c2dc
BLAKE2b-256 9e241a076e02041798fca2b7abd9b917942e992ca78a020e3fcfab444d240cdb

See more details on using hashes here.

Supported by

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