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.
- For general information please see https://analyzr.ai.
- For help and support see https://help.analyzr.ai.
- For SDK reference documentation see https://analyzr-sdk-python.readthedocs.io.
Installation instructions
Getting the client set up will require the following:
- Install the latest version of the client on your local machine:
pip install analyzr-sdk-python
-
Get an API username and password from your Analyzr admin (you may need SSO credentials from your local admin instead).
-
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
Built Distribution
File details
Details for the file analyzr-sdk-python-1.3.76.tar.gz
.
File metadata
- Download URL: analyzr-sdk-python-1.3.76.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb091fdb2cf739c49c1daa5111c8d653fe44b18d4d0524c64b13945bc5fb0d22 |
|
MD5 | f09cd0f6f60f630a62582ba07e461d8f |
|
BLAKE2b-256 | 2d42ca8d7b6e8fa8be83a5cf75c9cb6d85f2c0a417ce941573c5cb1c70386df8 |
File details
Details for the file analyzr_sdk_python-1.3.76-py3-none-any.whl
.
File metadata
- Download URL: analyzr_sdk_python-1.3.76-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae9361d33a2e7e9ec6342154418bb82dcedaa2a232411fac2ea1efc53fd14380 |
|
MD5 | 87157e8f49c84ea188d4b514952e117b |
|
BLAKE2b-256 | 9bf28950c676395312812694c8508b1a6ddd03c30c8bf33de33428fbbf12cb9f |