thirdai.licensing

class thirdai.licensing.LicenseState

Bases: pybind11_object

thirdai.licensing.activate(api_key: str) None

Set a ThirdAI API access key to authenticate future calls to ThirdAI functions.

thirdai.licensing.deactivate() None

Deactivate the currently active license. Future calls to ThirdAI functions may fail.

thirdai.licensing.set_path(license_path: str, verbose: bool = False) None

Set a license filepath for any future calls to ThirdAI functions.

thirdai.licensing.start_heartbeat(license_server_url: str, heartbeat_timeout: int | None = None) None

Starts a ThirdAI heartbeat endpoint to remain authenticated for future calls to ThirdAI functions.