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_sdk import License

Class Methods

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