Setup Markov SDK

Setup Markov SDK in your local system.

Now that you have set up your conda python environment , follow the steps below to install and setup the Markov SDK / CLI toolkit.

Install Markov SDK in your Conda Environment

Run the following command in your conda environment or python environment to install the Markov SDK.

pip install --index-url https://markovml:[email protected]/simple markovml

Authenticate / Initialize Markov SDK

Authenticating your device with the Markov SDK is a very important step to access your MarkovML UI application and register your local Markov SDK data to your MarkovML account. There are two ways of initializing and authenticating your device with Markov SDK.

1. Directly after Installation

Run the below command to initialize and run the Markov SDK. This will ask you to log in to your MarkovML account and authenticate your device. Thus connecting your Markov SDK with your MarkovML account.

markov init

2. Authentication Via API Tokens

You can authenticate the MarkovML client on the headless client using API tokens. In your MarkovML UI, you can find api-token in the left nav bar under Docs & Support > Settings > Tokens. Copy and run the command to initialize MarkovML with your API token.

1. Using CLI

markov init --api-token="YOUR_API_TOKEN"

2. Using SDK

import markov
markov.init(api_token="YOUR_API_TOKEN")