
A Python SDK and CLI for the Litmus product APIs, covering Litmus Edge (DeviceHub, Digital Twins, Analytics, Flows, OPC UA, Marketplace, System) and Litmus Edge Manager.
The Litmus SDK is a Python module built on top of the Litmus API portal at https://api.litmus.io. It is written for and tested against Python 3.12 or newer, and supports Litmus Edge 4.0.x (the current LTS, actively tested) with best-effort support for Litmus Edge 3.16.x. It also supports Litmus Edge Manager, both for managing the fleet (device lifecycle, applications, alerts, certificates) and for routing API calls through a LEM bridge to an individual Edge device.
The SDK gives programmatic access across the full Litmus Edge surface: DeviceHub (devices, tags, drivers, asset discovery), Digital Twins, Analytics (processors, instances, AI models), Flows (Node-RED), Integrations (cloud connectors), Marketplace (container images and running apps), OPC UA, and System administration (users, tokens, network, LDAP, certificates, external storage). It also includes a programmatic AirGap template builder for offline deployments.
Import it as a Python library, set a few environment variables (or a named CLI profile) for your connection, and you can drive the product APIs directly. The bundled command-line interface (litmus-sdk-cli) exposes every SDK function without writing Python, which is useful for CI pipelines, AI agents, and interactive exploration.
Check out our documentation at https://docs.litmus.io/sdk on how to use the library.
See https://github.com/litmusautomation/litmus-sdk-releases/releases for previous versions and complete changelogs.
