Licentivo Python SDK
Add software license activation and protected features to a Python application without implementing the licensing HTTP protocol yourself.
Features
- Activates a customer license, derives device identity, stores a private device credential and restores it after restart.
- Verifies signed grants with pinned public keys and checks license/feature status before running your business callback.
- Schedules policy heartbeats, supports permitted offline grants and returns floating seats on close.
- Handles metered-feature reservation, commit/cancel and recovery of pending confirmations using a stable job ID.
- Provides explicit refresh/deactivation, offline activation file exchange and structured error details.
Your application supplies the activation interface, business function and durable business results. The SDK handles the authorization workflow; management API keys stay on your server.
Installation
Use Python 3.10+ and a virtual environment. Install the pinned release from PyPI:
python -m pip install "licentivo-sdk==0.10.0"
For an offline release, install local sources with python -m pip install ./sdk/python,
or a downloaded wheel with python -m pip install ./licentivo_sdk-0.10.0-py3-none-any.whl.
The website installation guide shows current release availability and the common installer.
For the full starter, see QUICKSTART.md at the configured ZIP root and run start.ps1 / start.sh.
Keep product.json in application resources. Read the customer's key from your
activation UI; after activation pass an empty string to restore the credential.
from licentivo import Client
from pathlib import Path
with Client.open_with_license('product.json', customer_key, on_error=print) as client:
client.run_feature('export', lambda: Path('report.txt').write_text('Report\n'))
# In your app, keep this context open until the application exits.
For a configured metered feature, pass your business callback to the SDK:
client.run_metered_feature('export', 1, persistent_job_id, export_report)
The SDK reserves, runs, confirms/cancels and stores a private journal. Retain your
job ID and durable business result. Repeating this call after a pending commit,
including after restart, retries only confirmation and never repeats business.
If a process crashes during the callback, inspect its result and call
resolve_metered_feature(job_id, succeeded); the SDK does not guess or rerun it.
One workflow runs per client; different processes need different job IDs.
The lower-level reserve/commit/cancel methods remain available for custom flows.
The counter requires an online connection. consume() immediately charges
usage and is for operations that cannot subsequently fail.
offline_request() returns a dictionary to save as JSON;
import_offline(request_dict, response_dict) verifies an offline activation.
Closing a floating client releases its seat; device bindings are kept.
Accept an ordinary lv_lic_... key or a replacement computer's lv_tmp_...
code through your activation UI. After activation, the SDK saves a machine-scoped
credential beside cache_path. Later starts can use an empty license_key
with the same product, trusted keys and cache path. Keep the credential in the
user's application data directory; never ship it with the software.
With a valid device-bound offline cache, startup restores access immediately
and refreshes online in the background. Online-only and floating licenses wait
for the server. feature_status('export') explains a denial without a network
request. Call close() on exit. Python's synchronous HTTP transport may finish
an in-flight request after close; its timeout bounds that work.
Run python desktop.py product.json for an activation and report-export window.
It retains an export journal for commit recovery. An interrupted output still
requires your application to check whether the business operation completed.
Metadata
Release files for licentivo-sdk 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| licentivo_sdk-0.10.0.tar.gz | 16.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| licentivo_sdk-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.6 kB
Release files / licentivo_sdk-0.10.0.tar.gz
| Download URL | licentivo_sdk-0.10.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a95bf6126fd8b53969343558a8f5b322e54c302ca4c859d83df5b65fa71c4d8b
|
|
BLAKE2b-256 checksum How to use checksums |
dab370dd0fc1ea63b191ac742614c5fa55586b5ed66155923eb0977f02777977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / licentivo_sdk-0.10.0-py3-none-any.whl
| Download URL | licentivo_sdk-0.10.0-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8363b4df027d099611a82e404bc33e9e4b53209a93e753d473fee9a51d7894f2
|
|
BLAKE2b-256 checksum How to use checksums |
8a82ae91c74b2ac8d1761e55944b25144cdd650f87d6deb174a62704a28f04ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logSecurity for licentivo-sdk 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for licentivo_sdk-0.10.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.