For the complete documentation index, see llms.txt. This page is also available as Markdown.

Python SDK

The LicenseSpring Python Library provides convenient access to the LicenseSpring API from applications written in the Python language.

Installation

Install licensespring library:

pip install licensespring

Requires: Python >=3.9

Set app version

import licensespring

licensespring.app_version = "MyApp 1.0.0"

Hardware (Device) IDs

This library provides preconfigured hardware identity providers:

  • HardwareIdProvider (default)

  • PlatformIdProvider

  • HardwareIdProviderSource (recommended)

You can set the desired hardware identity provider when initializing the Configuration:

It also supports their customization and creation of your own hardware ID provider.

HardwareIdProvider

Uses uuid.getnode() to generate unique ID per device as described:

Get the hardware address as a 48-bit positive integer. The first time this runs, it may launch a separate program, which could be quite slow. If all attempts to obtain the hardware address fail, we choose a random 48-bit number with the multicast bit (least significant bit of the first octet) set to 1 as recommended in RFC 4122. “Hardware address” means the MAC address of a network interface. On a machine with multiple network interfaces, universally administered MAC addresses (i.e. where the second least significant bit of the first octet is unset) will be preferred over locally administered MAC addresses, but with no other ordering guarantees.

All of the methods exposed by HardwareIdProvider:

HardwareIdProviderSource

Utilizes a proprietary in-house algorithm for our SDKs (recommended algorithm) Hardware ID Algorithm.

PlatformIdProvider

Uses sys.platform and OS queries to find the raw GUID of the device.

Extends the HardwareIdProvider and overwrites only the get_id method:

Customization

Extend any of the preconfigured hardware identity providers, overwrite the methods you want and provide it when initializing the Configuration:

Licensefile

Licensefile setup

The licensefile is encrypted (AES-256-GCM) automatically; no manual key/IV setup is required. The encryption password is derived from your shared_key (API keys) or client_secret (OAuth). file_key/file_iv on Configuration are optional overrides, only needed if you're migrating a licensefile created with a custom key/IV on an older SDK version.

Configuration Setup

  • product (str): product short code.

  • api_key (str,optional): Your unique API key used for authentication with the licensing server.

  • shared_key (str,optional): A shared secret key used alongside the API key for enhanced security during the license verification process.

  • file_key (str, optional): Only needed when migrating a licensefile created with a custom key on an older SDK version; otherwise the password is derived automatically from shared_key/client_secret. See Licensefile setup.

  • file_iv (str, optional): Used alongside file_key for the same migration case.

  • hardware_id_provider (object, optional): The provider class used for generating a unique hardware ID. This ID helps in binding the license to specific hardware. Defaults to HardwareIdProviderSource.

  • verify_license_signature (bool, optional): A boolean flag indicating whether the license's digital signature should be verified. Defaults to True for enhanced security.

  • signature_verifier (object, optional): The class responsible for verifying the digital signature of licenses. Defaults to SignatureVerifier.

  • api_domain (str, optional): The domain name of the API server with which the licensing operations are performed. Defaults to "api.licensespring.com".

  • api_version (str, optional): The version of the API to use for requests. This allows for compatibility with different versions of the licensing API. Defaults to "v4".

  • filename (str, optional): The default filename for saved license files. This can be customized as needed. Defaults to "License".

  • file_path (str, optional): The path where license files should be saved on the client system. If not specified, a default location is used.

  • file_extension (str, optional): The extension used for the saved license file, without the leading dot. Defaults to "key" (e.g. "License.key"). The lock file used for cross-process safety is derived from this too (e.g. "License.key.lock").

  • grace_period_conf (int, optional): The number of hours to allow as a grace period for Defaults to 24 hours.

  • air_gap_public_key (str, optional): Air gap public key from platform check here for more

  • client_id (str, optional): Client ID for OAuth authorization purposes

  • client_secret (str, optional): Client Secret for OAuth authorization purposes

  • certificate_chain_path (str, optional): Used for singature verification for Floating Server v2 (e.g "path_to_cert_chain/chain.pem"). This file is provided by the platform.

  • enable_airgapped_skip_time_check (bool, optional): When set to True, SDK would skip checking date time with airgap licenses, until turned on again.

  • enable_process_safety (bool, optional): Opt-in flag for cross-process-safe licensefile writes (advisory OS-level file locking). Defaults to False: the SDK does not acquire or wait on any lock.

  • tpm_enabled (bool, optional): Opt-in flag to bind the license to this device's TPM/Secure Enclave key pair in addition to the hardware ID. Defaults to False.

LicenseID

  • from_key(cls, key): Class method to create a LicenseID instance for key-based activation

  • from_user(cls, username, password): Class method to create a LicenseID instance for user-based activation.

Key-based setup

User-based setup

LicenseManager

Configuration parameters

conf (Configuration): A configuration object

Activation methods

Methods for activating a license, grouped by whether they require a live connection to the license server (Online) or not (Offline).

Online

activate_license

Activates a license with the license server and updates local license data. When activating user based license we advise that unique_license_id is set which represent "id" field within the license check.

Parameters:

  • license_id (LicenseID): An instance containing the license key or user credentials.

  • bundle_code (str, optional): specify unique bundle_code of a bundle

  • hardware_id (str, optional): A unique identifier for the hardware.

  • unique_license_id (int, optional): A unique identifier for the license.

  • customer_account_code (str, optional): An account code for the customer.

  • redirect_uri (str, optional): redirect_uri. Defaults to None.

  • id_token (str, optional): Token for identity verification.

  • code (str, optional): An additional code for license verification.

  • app_ver (str, optional): The version of the application requesting activation.

  • os_ver (str, optional): The operating system version of the host.

  • hostname (str, optional): The hostname of the device requesting activation.

  • ip (str, optional): The IP address of the device.

  • is_vm (bool, optional): Indicates whether the application is running on a virtual machine.

  • vm_info (str, optional): Information about the virtual machine, if applicable.

  • mac_address (str, optional): The MAC address of the device.

Return: License object representing the activated license.

Offline

create_offline_activation_file

Creates .req file for offline activation, including various optional parameters related to the device and software environment.

Parameters:

  • license_id (LicenseID): An instance containing the license key or user credentials.

  • req_path (str): Specify the path where to create .req file.

Return (str): Path of the .req file created for activation.

activate_license_offline

Activates a license offline using a .lic file provided via the specified path.

Parameters:

  • ls_activation_path (str): Path to the activation file.

Raises:

  • LicenseActivationException: Activation data is not valid.

  • LicenseActivationException: Response file ID mismatch.

  • LicenseActivationException: License does not belong to this device.

Return (License): Returns a License object representing the activated license.

get_air_gap_activation_code

Get activation code for air gap license.

Parameters:

  • initialization_code (str): initialization code

  • license_key (str): license key

Return (str): activation code

activate_air_gap_license

Activate air gap license.

Parameters:

  • confirmation_code (str): confirmation code

  • policy_path (str): policy path (file or folder)

  • license_key (str): license_key

  • policy_id (str): policy id

Raises:

  • LicenseActivationException: Signature verification failed

Return (License): License

load_license

Loads the license file and sets attributes for the LicenseData instance. Returns an instance of the License class reflecting the loaded license.

Return: License object representing the activated license.

reconfigure

Change the current configuration.

Parameters:

  • conf (Configuration): Configuration object

LicenseManager getters and utilities

Accessor and utility methods on the LicenseManager object, grouped by whether they read purely local data (Offline) or make a network call to the license server (Online). Used the same way as manager.current_config().

Offline

  • current_config() -> dict: Get current configuration

  • is_license_file_corrupted() -> bool: Checks if the licensefile is corrupted

  • clear_local_storage(): Clear all data from the current product

  • data_location() -> str: Get licensefile location

  • set_data_location(path: str): Set data location

  • license_file_name() -> str: Get licensefile name

  • set_license_file_name(name: str): Set licensefile name

Online

  • is_online(throw_e: bool = True) -> bool: Checks if the licensing server is accessible

  • get_version_list(license_id: LicenseID, channel: str = None, unique_license_id: int = None, env: str = None) -> list: Get the list of available versions for a license

  • get_product_details(include_latest_version: bool = False, include_custom_fields: bool = False, env: str = None) -> dict: Get product details from the server

  • get_installation_file(license_id: LicenseID, unique_license_id: int = None, env: str = None, version: str = None, channel: str = None) -> dict: Get the installation file for a version

  • get_customer_license_users(customer: Customer) -> dict: Get the license users belonging to a customer

  • get_user_licenses(license_id: LicenseID = None, customer_account_code: str = None, id_token: str = None, code: str = None, redirect_uri: str = None) -> list: Get the licenses belonging to a user

  • get_sso_url(account_code: str, use_auth_code: bool = True) -> dict: Get the SSO url for a customer account

get_trial_license

Creates LicenseID for trial licenses.

Parameters:

  • customer (Customer): Customer object

  • license_policy (str,optional): license policy code. Defaults to None.

Return (LicenseID): Returns a LicenseID object.

Bundle Manager

Object responsible for Bundle operations.

Online

Methods that make a network call to the license server.

activate_bundle

Activates the bundle.

Parameters:

  • license_id (LicenseID): An instance containing the license key or user credentials.

  • hardware_id(str, optional): A unique identifier for the hardware.

  • unique_license_id (int, optional): A unique identifier for the license.

  • customer_account_code (str, optional): An account code for the customer.

  • id_token (str, optional): Token for identity verification.

  • code (str, optional): An additional code for license verification.

  • redirect_uri (str, optional): redirect_uri. Defaults to None.

  • app_ver (str, optional): The version of the application requesting activation.

  • os_ver (str, optional): The operating system version of the host.

  • hostname (str, optional): The hostname of the device requesting activation.

  • ip (str, optional): The IP address of the device.

  • is_vm (bool, optional): Indicates whether the application is running on a virtual machine.

  • vm_info (str, optional): Information about the virtual machine, if applicable.

  • mac_address (str, optional): The MAC address of the device.

Return (dict[str, License]): A dictionary where the keys are product short codes and the values are License objects.

check_bundle

Check bundle and update the licensefile.

Parameters:

  • license_id (LicenseID): license_id

  • hardware_id(str, optional): A unique identifier for the hardware. Defaults to None.

  • unique_license_id (int, optional): A unique identifier for the license. Defaults to None.

  • include_expired_features (bool, optional): If True, includes expired license features in the check. Defaults to False.

  • env (str, optional): optional param takes "win", "win32", "win64", "mac", "linux", "linux32" or "linux64". Defaults to None.

Returns (dict[str, License]): A dictionary where the keys are product short codes and the values are License objects.

deactivate_bundle

Deactivate bundle.

Parameters:

  • license_id (LicenseID): license_id

  • hardware_id (str, optional): hardware id. Defaults to None.

  • unique_license_id (int, optional): A unique identifier for the license. Defaults to None.

  • remove_local_data (bool, optional): remove licensefile from storage. Defaults to False.

Offline

Methods that operate on local licensefile/cache data or offline activation files, without contacting the license server.

get_current_bundle

Get current bundle from cache or licensefile.

Return (dict[str, License]): A dictionary where the keys are product short codes and the values are License objects.

create_offline_activation_file

Creates .req file for activation.

Parameters:

  • license_id (LicenseID): An instance containing the license key or user credentials.

  • req_path (str): Specify place where to create .req file

  • hardware_id (str, optional): A unique identifier for the hardware.

  • app_ver (str, optional): The version of the application requesting activation.

  • os_ver (str, optional): The operating system version of the host.

  • hostname (str, optional): The hostname of the device requesting activation.

  • ip (str, optional): The IP address of the device.

  • is_vm (bool, optional): Indicates whether the application is running on a virtual machine.

  • vm_info (str, optional): Information about the virtual machine.

  • mac_address (str, optional): The MAC address of the device.

  • device_variables (dict, optional): device variables.

Return(str): path of the .req file

activate_bundle_offline

Activate offline bundle licenses.

Parameters:

  • ls_activation_path (str): path to a .lic file

Return (dict[str, License]): dictionary of licenses in a bundle

deactivate_bundle_offline

Generates .req file for the offline deactivation.

Parameters:

  • license_id (LicenseID): license_id

  • offline_path (str): path of the .req file

  • unique_license_id (int): unique license id

Return(str): path of the deactivation file

License object

Object responsible for license operations.

License getters

Read-only accessors on the License object that return cached license data (no network calls or side effects), most taking no arguments, used the same way as license.is_expired():

  • is_floating_expired() -> bool: Determines whether the license's floating period has expired

  • floating_timeout() -> int: Retrieve the license floating timeout

  • is_floating() -> bool: Check if license is floating (Floating Server or Floating Cloud)

  • floating_client_id() -> str: Get floating client id

  • is_controlled_by_floating_server() -> bool: Check if license is controlled by Floating Server

  • floating_in_use_devices() -> int: Number of floating devices in use

  • floating_end_date() -> datetime: Datetime when the floating license will be released

  • max_floating_users() -> int: Number of max floating users

  • is_validity_period_expired() -> bool: Determines whether the license's validity period has expired

  • validity_period() -> datetime: Gets validity period of the license

  • validity_with_grace_period() -> datetime: Gets the validity period with grace period of the license

  • license_user() -> dict: Gets the license user

  • maintenance_days_remaining() -> int: Gets how many days are left until the maintenance ends

  • days_remaining() -> int: Gets how many days are left until the validity period ends

  • customer_information() -> dict: Gets customer information

  • id() -> int: Gets license id

  • max_transfers() -> int: Get the max transfers

  • transfer_count() -> int: Get the transfer count

  • is_device_transfer_allowed() -> bool: Get if the device transfer is allowed

  • is_device_transfer_limited() -> bool: Get if the device transfer is limited

  • days_since_last_check() -> int: Get how many days passed since last check

  • start_date() -> datetime: Get the start date of the license

  • maintenance_period() -> datetime: Get the maintenance period of the license

  • is_maintenance_period_expired() -> bool: Checks if the maintenance period has expired

  • last_check() -> datetime: Gets when the last check was performed

  • last_usage() -> datetime: Gets when the license was last used

  • activation_date() -> datetime: Gets when the license was last used

  • license_type() -> str: Gets the license type

  • max_activations() -> int: Gets the license max activations

  • metadata() -> dict: Gets the license metadata

  • allow_unlimited_activations() -> bool: Check if unlimited activations are allowed

  • allow_grace_subscription_period() -> bool: Check if grace subscription period is allowed

  • is_subscription_grace_period_started() -> bool: Check if grace subscription period has started

  • is_grace_period_started() -> bool: Check if license is in grace period

  • grace_period_hours_remaining() -> int: Get remain hours of grace period

  • get_grace_period() -> int: Get grace period

  • subscription_grace_period() -> int: Get subscription grace period

  • is_expired() -> bool: Checks if the license validity has expired

  • license_enabled() -> bool: Checks if the license is enabled

  • license_active() -> bool: Checks if the license is active

  • is_valid() -> bool: Checks if the license is valid (license is active, enabled and didn't expired)

  • prevent_vm() -> bool: Checks if the license prevents virtual machines

  • is_trial() -> bool: Checks if the license is trial

  • expiry_date() -> datetime: Get expiry date of floating license

  • borrow_until() -> datetime: Get the date until a license is borrowed

  • is_borrowed() -> bool: Check if a license is borrowed

  • local_consumptions() -> int: Get local consumptions

  • max_consumptions() -> int: Get max consumptions

  • total_consumptions() -> int: Get total consumptions

  • max_overages() -> int: Get max overages

  • allow_unlimited_consumptions() -> int: Check if unlimited consumptions is allowed

  • consumption_reset() -> bool: Check if there is consumption reset

  • allow_overages() -> bool: Check if overages are allowed

  • consumption_period() -> str: Get consumption period

  • features() -> list: Get feature list

  • get_product_details() -> dict: Get product details from licensefile (offline)

  • custom_fields() -> list: Get custom fields from licensefile -> [{name, value},..]

  • get_custom_field(field_name) -> dict: Get a single custom field by name from licensefile -> {name, value}

  • is_tpm_auth() -> bool: Check if license is bound to a TPM/Secure Enclave key pair

  • tpm_signing_public_key() -> str: Get the TPM/Secure Enclave signing public key enrolled with the license

  • get_feature_data(feature_code) -> dict: Get feature data

  • is_grace_period(ex) -> bool: Determines if the current license state is within its grace period following a specific exception

  • get_device_variable(variable_name) -> dict: Get device variable if exists

check_license_status

Verifies the current status of the license. It raises exceptions if the license is not enabled, not active, or expired.

Raises: LicenseStateException: Raised if the license fails one of the following checks:

  • License is not enabled.

  • License is not active.

  • License validity period has expired.

Return: None

check

Performs an online check to synchronize the license data with the backend. This includes syncing consumptions for consumption-based licenses.

Parameters:

  • include_expired_features (bool, optional): Includes expired license features in the check.

  • env (str, optional): "win", "win32", "win64", "mac", "linux", "linux32" or "linux64"

Raises:

  • ClientError: Raised if there's an issue with the API client's request, such as invalid credentials or unauthorized access.

  • RequestException: Raised if there's a problem with the request to the licensing server, such as network issues or server unavailability.

Return (dict): The updated license cache.

deactivate

Deactivates the license and optionally deletes the local license file.

Parameters:

  • delete_license (bool, optional): If True, deletes the local license file upon deactivation.

Return: None

local_check

This method ensures the integrity and consistency of the licensing information by comparing the data stored in the local license file with the predefined configurations in the Configuration object.

Raises:

  • ConfigurationMismatch: Raised if the product code or hardware ID in the license file does not match the expected values provided in the Configuration

  • VMIsNotAllowedException: Raised if the license is used in a VM environment when the license explicitly disallows it.

  • TimeoutExpiredException: Raised if a floating license has expired. This is more relevant if is_floating_expired is later implemented to perform actual checks.

  • ClockTamperedException: Raised if there is evidence of tampering with the system's clock, detected by comparing the system's current time with the last usage time recorded in the license file.

Return: None

add_local_consumption

Adds local consumption records for consumption-based licenses.

Parameters:

  • consumptions (bool, optional): The number of consumptions to add locally

Raises:

  • LicenseSpringTypeError: Raised if the license type does not support consumption (i.e., not a consumption-based license).

  • ConsumptionError: Raised if adding the specified number of consumptions would exceed the allowed maximum for the license.

Return: None

sync_consumption

Synchronizes local consumption data with the server, adjusting for overages if specified.

Parameters:

  • req_overages (int, optional): Specifies behavior for consumption overages.

Raises:

  • RequestException: Raised if the request to synchronize consumption data with the server fails, for instance, due to network issues or server unavailability.

Return (bool): True if the consumption data was successfully synchronized; False otherwise.

change_password

Changes password of a user.

Parameters:

  • password (str): Old password of license user

  • new_password(str): New password of license user

Return (str): "password_changed"

setup_license_watch_dog

Initializes and starts the license watchdog with the specified callback and timeout settings.

Parameters:

  • callback (Callable): A callable to be executed by the watchdog in response to specific events or conditions.

  • timeout (int): The period in minutes after which the watchdog should perform its checks.

  • deamon (bool, optional): Run thread as deamon. Defaults to False.

  • run_immediately (bool,optional): run license check immediately, if False wait for timeout first.

Return: None

stop_license_watch_dog

Stops the license watchdog if it is currently running, effectively halting its monitoring and callback activities.

Return: None

setup_feature_watch_dog

Initializes and starts the feature watchdog with the specified callback and timeout.

Parameters:

  • callback (Callable): A callable to be executed by the watchdog in response to specific events or conditions.

  • timeout (int): The period in minutes after which the watchdog should perform its checks.

  • deamon (bool, optional): Run thread as deamon. Defaults to False.

Return: None

stop_feature_watch_dog

Stops the feature watchdog if it is currently running.

Return: None

add_local_feature_consumption

Adds local consumption to the feature.

Parameters:

  • feature (str): feature code.

  • consumptions (int,optional): Number of consumptions.

Raises:

  • ItemNotFoundError: If the feature specified by feature_code does not exist.

  • LicenseSpringTypeError: If the identified feature is not of the "consumption" type.

  • ConsumptionError: If adding the specified number of consumptions would exceed the feature's consumption limits.

Return: None

sync_feature_consumption

Synchronizes local consumption data with the server.

Parameters:

  • feature (str): feature code.

Return (bool): True if the consumption data was successfully synchronized; False otherwise.

floating_borrow

Attempts to borrow a floating license until the specified date, updating the system status based on the outcome of the borrow attempt.

Parameters:

  • borrow_until (str): A string representing the date until which the license should be borrowed.

  • password (str,optional): Password for the license if required.

  • id_token (str, optional): id_token. Defaults to None.

  • code (str, optional): code. Defaults to None.

  • customer_account_code (str, optional): customer account code. Defaults to None.

  • redirect_uri (str,optinal): redirect uri. Defaults to None.

Return: None

floating_release

Releases a borrowed floating license and updates the license status accordingly.

Parameters:

  • throw_e(bool): A boolean indicating whether to raise an exception on failure.

Return: None

check_feature

Checks for a specific license feature and updates the license cache accordingly.

Parameters:

  • feature(str): feature code.

Return: None

release_feature

Releases a borrowed license feature and updates the license cache accordingly.

Parameters:

  • feature(str): feature code.

Return: None

borrow_feature

Borrow license feature.

Parameters:

  • feature (str): feature code

  • borrow_until (str): borrow until e.g "2029-05-06T00:00:00Z"

  • password(str, optional): password. Defaults to None.

  • id_token (str, optional): id_token. Defaults to None.

  • code (str, optional): code. Defaults to None.

  • customer_account_code (str, optional): customer account code. Defaults to None.

Return: None

update_offline

Updates license via refresh file.

Parameters:

  • path (str): path of the refresh file

  • reset_consumption (bool): True resets consumption otherwise False

Raises:

  • ConfigurationMismatch: The update file does not belong to this device

  • ConfigurationMismatch: The update file does not belong to this product

Return(bool): True if license was successfully updated otherwise False

get_deactivation_code

Get deactivation code for air gap licenses.

Parameters:

  • initialization_code (str): initialization_code

Return (str): deactivation code

deactivate_air_gap

Deactivate air gap license and clear storage.

Parameters:

  • confirmation_code (str): confirmation_code

Raises:

  • LicenseActivationException: VerificationError

Return: None

deactivate_offline

Generates .req file for the offline deactivation.

Parameters:

  • offline_path(str): path of the .req file

  • device_variables (dict): device variables

Raises:

  • ConfigurationMismatch: The update file does not belong to this device

  • ConfigurationMismatch: The update file does not belong to this product

Return(bool): True if license was successfully updated otherwise False

product_details

Update product details from LicenseSpring server.

Parameters:

  • include_custom_fields (bool, optional): custom fields information. Defaults to False.

  • include_latest_version (bool, optional): Lateset version information. Defaults to False.

  • env (str, optional): "win", "win32", "win64", "mac", "linux", "linux32" or "linux64"

Return(dict): response

set_device_variables

Set device variables locally.

Parameters:

  • variables (dict): variables dict

  • save (bool, optional): Save cache to licensefile. Defaults to True.

Return: None

get_device_variables

Get device variables from server or locally.

Parameters:

  • get_from_be (bool, optional): If True collects data from LicenseSpring server. Defaults to True.

Raises:

  • RequestException (Grace period not allowed)

Return(list): List of device variables

send_device_variables

Send device variables to LicenseSpring server. Handles GracePeriod.

Raises:

  • RequestException (Grace period not allowed)

Return(bool): True if new variables are sent to LicenseSpring server otherwise, False

Floating Server

Floating Manager:

  • This object is responsible for managing operations with the Floating Server, while also integrating the license file

Floating Manager

To initialize Floating Manager Configuration needs to be created. For Floating server you can set arbitrary values for shared_key and api_key keys. To enable signature verification in Floating Server v2, set the certificate_chain_path in the Configuration object.

auth

Authenticate.

Parameters:

  • username (str): username

  • password (str): password

Return(dict): Response

register

Register license.

Parameters:

  • os_hostname (str, optional): os hostname. Defaults to None.

  • ip_local (str, optional): ip local. Defaults to None.

  • user_info (str, optional): user info. Defaults to None.

  • license_id (int, optional):license id. Defaults to None.

Return(License): License object

unregister

Unregister license.

Parameters:

  • license_id (int, optional): license id. Defaults to None.

Return(str): "user_unregistered"

unregister_all

Unregister all users.

borrow_license

Borrow license.

Parameters:

  • borrowed_until (str): borrow until date

  • os_hostname (str, optional): os hostname. Defaults to None.

  • ip_local (str, optional): ip local. Defaults to None.

  • user_info (str, optional): user info. Defaults to None.

  • license_id(int, optional):license id. Defaults to None.

Return(License): License object

is_online

Checks if floating server is online.

Parameters:

  • throw_e (bool, optional): True if you want raise exception. Defaults to False.

Raises:

  • ex: Exception

Return(bool): True if server is online, otherwise False

fetch_licenses

List licenses.

Parameters:

  • product (str,optional): product short code filter

Return(dict): Response

Methods supported inside License object

License consumptions, feature consumptions, register feature, release feature are supported within License object for Floating Server.

License

LicenseSpring SDK Source Code License (LSSCL)

Preamble:

This LicenseSpring SDK Source Code License (LSSCL) governs the use, distribution, and modification of the source code for this LicenseSpring SDKs. This SDK is designed to facilitate the integration of LicenseSpring's license management service into your applications. By accessing, using, or modifying the SDK, you agree to the terms and conditions set forth in this license.

  1. Permissions:

    • You are permitted to access, read, and modify the source code of this LicenseSpring SDK.

    • You may create derivative works that include this SDK, provided all derivative works are used solely as part of the LicenseSpring service.

  2. Distribution:

    • You may distribute the original or modified versions of software that incorporates the SDK, provided that all distributed versions retain this LSSCL license.

    • Distributed versions, including modifications, must be used to facilitate the integration of LicenseSpring’s service and may not be:

      • Provided as part of a hosted or cloud-based service that allows others to access the SDK’s functionality without interacting directly with the LicenseSpring service.

      • Integrated into other services which compete with or do not use the LicenseSpring service.

  3. Usage Restrictions:

    • The SDK, in its original or modified form, may only be used as part of the LicenseSpring service, whether on a free or paid plan.

    • You are prohibited from using the SDK independently or as part of any service that does not interact with the LicenseSpring service.

  4. Prohibited Actions:

    • You may not circumvent or disable any technical measures that control access to the SDK.

    • You must not remove, alter, or obscure any license notices, copyright notices, or other proprietary notices from the SDK.

  5. Termination:

    • Any violation of these terms will result in the automatic termination of your rights under this license.

    • Upon termination, you must cease all use and distribution of the SDK and destroy all copies in your possession.

  6. Disclaimer of Warranty and Liability:

    THE SOFTWARE IS PROVIDED "AS IS" AND LICENSESPRING DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. LICENSESPRING SHALL NOT BE LIABLE FOR ANY DAMAGES ARISING OUT OF OR RELATED TO THE USE OR PERFORMANCE OF THE SOFTWARE.

Copyright 2024 Cense Data Inc DBA LicenseSpring Contact: support@licensespring.com

Dependency licenses

Name
Version
License
URL

certifi

25.1.0

Mozilla Public License 2.0 (MPL 2.0)

https://github.com/certifi/python-certifi

charset-normalizer

3.4.1

MIT License

https://github.com/Ousret/charset_normalizer

idna

3.10

BSD License

https://github.com/kjd/idna

pycryptodome

3.21.0

Apache Software License; BSD License; Public Domain

https://www.pycryptodome.org

requests

2.32.3

Apache Software License

https://requests.readthedocs.io

urllib3

2.3.0

MIT License

https://github.com/urllib3/urllib3/blob/main/CHANGES.rst

winregistry

2.1.0

UNKNOWN

https://github.com/shpaker/winregistry

Was this helpful?