The LicenseSpring Python SDK lets you implement license activation, entitlement enforcement, and usage tracking directly inside your Python application or service with no external licensing infrastructure to build or maintain.
Built for Python developers shipping commercial software, the SDK covers backend services, automation pipelines, data platforms, AI/ML applications, and developer tools from a single lightweight integration.
ISO 27001 Certified
ISO 9001 Certified
Trusted by Software Vendors WorldwideThe Python SDK installs as a lightweight client library and connects your application directly to the LicenseSpring licensing platform. Once installed, you have full access to LicenseSpring's licensing infrastructure.
With the SDK, you can:
Activate and validate licenses at runtime: online, offline, or in air-gapped environments
Enforce node-locked, floating, subscription, and consumption-based licensing: using the model that fits your product
Gate features by entitlement: control access to functionality at the SDK level, across any Python application type
Run local license checks with configurable grace periods: define how long the SDK honors a cached license before requiring revalidation, so connectivity loss never interrupts active users
Bind licenses to hardware: generate persistent hardware IDs using multiple device fingerprinting algorithms suited to the deployment environment
Track usage and activations: feed license telemetry back to the LicenseSpring platform in real time
The Python SDK is designed for developers building and distributing commercial Python software.
| Use Case | Description |
|---|---|
Backed Services | Integrating licensing validation into Python APIs and services |
Automation Tools | Managing licensing workflows in internal tools or scripts |
Data & Analytics Platforms | Protecting proprietary analytics or processing tools |
AI / ML Applications | Licensing machine learning or AI-based software built with Python |
Developer Utilities | Enforcing licensing in developer tools or Python packages |
The LicenseSpring Python SDK can be installed directly from PyPI using pip.
Install the package with:
pip install licensespring
Minimum requirements:
Python 3.10 or higher
The Python SDK includes hardware fingerprinting support for node-locked licensing and device-bound activation. Multiple algorithms are available for computing a unique, persistent hardware identifier, selecting the approach appropriate for the deployment environment, whether a physical workstation, a virtual machine, or a cloud-hosted server instance.
Generated hardware IDs are used for:
Node-locked license binding
Device identification and activation tracking
Consistent hardware fingerprinting across multi-SDK product deployments
Products that pair a Python component with other parts of their stack, such as a C++ core engine, a Java backend, or a Node.js interface, can use multiple LicenseSpring SDKs simultaneously.
All LicenseSpring SDKs share a common license file format and compute hardware identifiers using the same underlying logic. A license issued to a device is recognized consistently across every component of your product, regardless of which SDK each part uses.
The Python SDK fully supports deployments with limited or no internet connectivity with two distinct activation paths:
Offline activation: uses a file-exchange flow for environments with occasional or restricted connectivity
Air-gapped activation: uses a code-exchange flow for environments where no external data transfer is permitted
The SDK download package includes a demo application to help you get started quickly. The demo covers connecting to the LicenseSpring API, validating licenses, and retrieving licensing data with example code, required configuration files, and setup instructions included.
Our developer support team can help you implement licensing quickly and correctly.