Manages licensing for the Nutrient Native SDK. Provides methods to register license keys and trace licensed features in evaluation mode (without registering a key).

from nutrient import License

Class Methods

initialize_license

@classmethod
def initialize_license(cls, sdk_id: int, sdk_version: str) -> None

Internal Use Only

Parameters:

NameTypeDescription
sdk_idintInternal Use Only
sdk_versionstrInternal Use Only

register_key

@classmethod
def register_key(cls, key: str) -> None

Unlocks the SDK with a commercial or a demo license key. You can subsequently use this method to unlock the underlying implementation.

Parameters:

NameTypeDescription
keystrThe license key to register.

trace_features

@classmethod
def trace_features(cls) -> str

When the SDK is in trial mode, this method returns a string that lists the features that have been evaluated during the session.

Returns: str