Commander SDK for Python

Setup instructions for the Commander SDK for Python

Overview

The new Python SDK enables full integration with the Keeper platform, including Enterprise, Vault, and Admin operations, through the keepersdk library available on PyPI.

This SDK provides fully executable functions that can be accessed directly from Python, eliminating the need for any command-line wrappers or the Commander CLI itself.

Installation and Setup

Requirements

The system should have Python version 3.10 or newer

Create and Activate Virtual Environment

python3 -m venv venv
source venv/bin/activate

Install with PyPi

pip install keepersdk

Install from Source Code

Source Code - Clone the source code from the Github repository

The "master" branch will mirror the production release. The "release" branch references the upcoming release. To optionally switch to the release branch:

Install Dependencies


Requirement for Client

If you are accessing keepersdk from a new device, you need to ensure that there is a config.json file present. This ensures that the client source doesn't contain any hardcoded credentials.

Create the config.json file in the .keeper folder of the current user.

A sample showing the structure of the config.json needed is shown below:


Create an Application

Create a .py file to act as a client to access the keepersdk and execute the vault and admin functions.

Sample code to list records has been shown below:

Documentation

The full Commander SDK documentation and references are below:

Last updated

Was this helpful?