pywebui.licenses

Module Contents

Classes

License

License object.

LicenseHistory

License history object.

LicenseMethods

Encapsulates methods for manage licenses.

class pywebui.licenses.License

License object.

active

The license loaded to memory or not (1 - license loaded to memory, 0 - license didn’t load to memory).

Type

int

activity

The license type – activity licenses, for layered products such as compilers (1 - activity license type).

Type

int

authorization

The string that helps identify the license.

Type

str

command

The command, which modified the license.

Type

str

hardwareID

The identification number of the hardware on which the product is licensed.

Type

str

issuer

The name of the company that issued the PAK for the product.

Type

str

modifiedByUser

The user, which modified license.

Type

str

modifiedOn

The date, when modified license.

Type

str

options

The list of license options from a PAK.

Type

str

pcl

The license type – per core licenses (PCL), which replaces per processor licenses (PPL). This type implements the licensing model on OpenVMS Integrity server systems. The PCL model licenses a product based on the number of active processor cores on the system (1 - per core license type).

Type

int

producer

The name of the company that owns the product for which you have a license.

Type

str

productName

The name of product with a license.

Type

str

releaseDate

The product release date such that the license authorizes use of all product versions released on or before the date.

Type

str

revisionLevel

The order number of license modification.

Type

int

status

The license status.

Type

str

terminationDate

The date on which the product license terminates.

Type

str

token

The product token.

Type

str

units

The number of license units from a PAK.

Type

int

version

The version limits from a PAK of the product for which you have a license.

Type

int

class pywebui.licenses.LicenseHistory

License history object.

Contains the same attributes as License object.

class pywebui.licenses.LicenseMethods

Encapsulates methods for manage licenses.

get_all_licenses(self) List[License]

Returns the list of all licenses.

get_active_licenses(self) List[License]

Returns the list of active licenses.

get_license(self, product: str, authorization: str) License

Returns details of selected product license (the latest record in database).

Parameters
  • product (str) – The name of product with a license.

  • authorization (str) – The string that helps identify the license.

get_license_history(self, product: str, authorization: str) List[LicenseHistory]

Returns the license history of selected product (records with status “Extinct”).

register_license(self, product: str, data: dict) License

Adds a new license to the License Database.

Parameters
  • product (str) – The name of product with a license.

  • data (dict) – License parameters.

Example

connector.register('CSP', {
    "authorization": "string",
    "checksum": "string",
    "issuer": "string",
    "options": ["string"],
    "producer": "string",
    "termination": 1599955199,
    "token": "string",
    "units": 0
})
delete_license(self, product: str, authorization: str) bool

Deletes license for selected product.

delete_license_history(self, product: str, authorization: str) bool

Deletes license history for selected product (records with status “Extinct”).

export_license_history(self, product: str, authorization: str) str

Exports the license history of selected product (records with status “Extinct”) to text.

enable_license(self, product: str, authorization: str) bool

Enables license.

disable_license(self, product: str, authorization: str) bool

Disables license.

load_license(self, product: str, authorization: str) bool

Loads license for selected product to memory (license become active).

unload_license(self, product: str, authorization: str) bool

Unloads license for selected product from memory.