jetraw.license module

jetraw.license.check_license(key=None)

Checks the validity of a license key. If no key is provided, the license key will be read from the license file. Returns a tuple with a status string and a datetime object with the expiry date if the license validity can be checked. Raises an error if it fails.

Return type:

Tuple[str, datetime]

jetraw.license.get_license()

Returns the license key. Raises an error if it fails.

Return type:

str

jetraw.license.set_license(key)

Stores the license key in the license file. If a null key is provided, the license file will be removed. Raises an error if it fails.