Quick Start Instructions
This article contains the following sections:
This article contains a streamlined, quick start set of instructions to get you up and running. For more details and full instructions, consult any of the following:
Quick Start - Installing the SDK
The installation process involves two steps:
- Setting up the SDK (installing from either source or a package).
- Confirming that you installed the SDK and its dependencies properly.
Installing the SDK from source:
pip install -r requirements.txt python setup.py install
Installing the SDK from a package:
pip install <filename>.whl
import sightmachinesdk as sm
Quick Start - Authenticating
Contact your Sight Machine Engagement Team to request credentials. If you are able to log in to your environment with an email address and password, use these credentials with basic mode below. If Single Sign On (SSO) is enabled for your environment, please contact Sight Machine to request an API key.
- Initialize a Client:
- Log in using the method provided by Sight Machine:
cli = sm.Client('<tenantname>', auto_login=False)
cli.login('basic', email='<firstname.lastname@example.org>', password='<password>') cli.login('apikey', key='<apikey>')