Skip to main content

Python SDK for Analyzr API

Project description

Python SDK for the Analyzr API

Overview

This Python client will give you access to the Analyzr API. See files in the examples folder for examples showing how to use the client. Note that a client_id should always be provided when querying the API; it is used for reporting purposes.

Installation instructions

Getting the client set up will require the following:

  1. Install the latest version of the client on your local machine:
pip install analyzr-sdk-python
  1. Get an API username and password from your Analyzr admin (you may need SSO credentials from your local admin instead).

  2. Confirm you are able to connect to the API, and check the API version as follows from a Python session:

>>> from analyzrclient import Analyzer
>>> analyzer = Analyzer(host="<your host>")
>>> analyzer.login()
Login successful
>>> Analyzer().version()
{'status': 200, 'response': {'version': 'x.x.xxx', 'tenant': <your tenant name>, 'copyright': '2023 (c) Go2Market Insights Inc. All rights reserved.'}}

Testing instructions

If you are developing the SDK and would like to test the repo, clone it locally using git then run the following from the root directory:

python -m unittest -v

Make sure you update the config.json file first to include the name of your API tenant. To run a single test case do:

python -m unittest tests.test_all.PropensityTest.test_logistic_regression_classifier -v

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

analyzr-sdk-python-1.2.49.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

analyzr_sdk_python-1.2.49-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file analyzr-sdk-python-1.2.49.tar.gz.

File metadata

  • Download URL: analyzr-sdk-python-1.2.49.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for analyzr-sdk-python-1.2.49.tar.gz
Algorithm Hash digest
SHA256 2113b47f9b890f755a3a48025ff37b770c4d9f5377db706b73deca7c5431ef7b
MD5 61127629e2105333c35486b366c626c1
BLAKE2b-256 9a3e6f4f5449b16ff3f926535d7aee7b7e092bd66742d95494c944e750d1d8fa

See more details on using hashes here.

File details

Details for the file analyzr_sdk_python-1.2.49-py3-none-any.whl.

File metadata

  • Download URL: analyzr_sdk_python-1.2.49-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for analyzr_sdk_python-1.2.49-py3-none-any.whl
Algorithm Hash digest
SHA256 57b23d3646b9a34f840c5248e01c6f8e8a3d7a26046452ebfcd41bdce6fe597b
MD5 9caf38e31f5d7d37da0faa6ffe5d2eee
BLAKE2b-256 2a962da2914b6c99024ea901d56ebe5cf8acac656f3698e490dc511272eafe0a

See more details on using hashes here.

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