Skip to main content

Digitea Licensing Python SDK

Official Python client for the Digitea Runtime Licensing API.

The public facade is DigiteaLicensing. The OpenAPI-generated transport under generated/ is an implementation detail.

Installation

pip install digitea-licensing

Quick start

from digitea_licensing import DigiteaLicensing

client = DigiteaLicensing(
    product_id="prd_example123",
    timeout=10.0,
    retries=2,
)

activation = client.activate(
    license_key="dgt_lic_example",
    instance_id="stable-installation-id",
    instance_name="Customer workstation",
)

if activation.valid and activation.status == "ACTIVE":
    start_application()

The SDK persists an installation identity by default. Pass an explicit instance_id or provide an InstanceIdStore implementation when the application owns its secure storage.

Complete lifecycle

validation = client.validate(
    license_key,
    instance_id="stable-installation-id",
)

if validation.valid and validation.status == "ACTIVE":
    enable_licensed_features()

deactivation = client.deactivate(
    license_key,
    instance_id="stable-installation-id",
)

Renewal session and idempotency

renewal = client.create_renewal_session(
    license_key,
    instance_id="stable-installation-id",
    idempotency_key="renewal-operation-123",
)

open_in_browser(renewal.checkout_url)

Reuse the same idempotency_key when retrying the same logical renewal operation. If omitted, the SDK generates a valid key and reuses it across HTTP retries.

Configuration

client = DigiteaLicensing(
    product_id="prd_example123",
    base_url="https://api.getdigitea.com",
    timeout=10.0,
    retries=2,
)

Runtime calls use only product_id, license_key and instance_id. No Developer API key is accepted or required.

Errors

from digitea_licensing import DigiteaError

try:
    result = client.validate(license_key)
except DigiteaError as error:
    print(error.code, error.status)
    if error.code == "LICENSE_EXPIRED":
        show_renewal_screen()
    elif error.code in {"NETWORK_ERROR", "TEMPORARILY_UNAVAILABLE"}:
        show_temporary_connection_error()

Digitea error codes are preserved. Temporary network, rate-limit and server failures are retried; definitive licensing decisions are not.

Security

Never embed a Developer API key, webhook secret or server credential in distributed Python software. Never log a license key. Use HTTPS in production.

The same four operations are available in every Runtime SDK:

  • activate()
  • validate()
  • deactivate()
  • create_renewal_session()

Repository: https://github.com/Juste-Nick/Digitea

Metadata

Release files for digitea-licensing 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for digitea-licensing 1.1.2
File Size Uploaded Provenance Actions
digitea_licensing-1.1.2.tar.gz 27.6 kB Without provenance Details for digitea_licensing-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for digitea-licensing 1.1.2
File Interpreter ABI Platform Actions
digitea_licensing-1.1.2-py3-none-any.whl Python 3 none any Details for digitea_licensing-1.1.2-py3-none-any.whl

Total release size: 70.8 kB

Release files / digitea_licensing-1.1.2.tar.gz

Download URL digitea_licensing-1.1.2.tar.gz
Size 27.6 kB
Tags Source
SHA-256 checksum
How to use checksums
63ad744a9fb8b312c99a9a991467faf8fa47bf0df8902af435f4589733320b94
BLAKE2b-256 checksum
How to use checksums
5697512662e097a0efab83dfd87738e95b7cbd9e6b4db546e1dfca6b1610dbe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / digitea_licensing-1.1.2-py3-none-any.whl

Download URL digitea_licensing-1.1.2-py3-none-any.whl
Size 43.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
947548401a5f6af46c0ff5569ea9aa7dbf273baa2c836c81ac932414b062252f
BLAKE2b-256 checksum
How to use checksums
1186992984e074ea44c05fda47d34ecf47880bee39b5f0ae604d632f0982d3ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for digitea-licensing 1.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page