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': '2024 (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 tests.test_all -v   # all tests
python -m unittest tests.test_quick -v # quick tests

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.3.76.tar.gz (31.0 kB view hashes)

Uploaded Source

Built Distribution

analyzr_sdk_python-1.3.76-py3-none-any.whl (38.9 kB view hashes)

Uploaded Python 3

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