Table of Contents

Set up

Prerequisites (Python SDK)
  • Python 3.1 or above
Configure IDE (Python SDK)
PyCharm
Visual Studio Code
  • Create a new project
  • Create a Python environment
  • Set PYTHONPATH to the Pixyz binaries folder path (by adding an .env file to the project for example)
Activate the license and initialize the SDK

You must initialize the Pixyz SDK and bind it to a valid license.

import pxz
from pxz import core
​
# init Pixyz
pxz.initialize(productName, validationKey)
​
# set log level to INFO so you can see the logs in the console
core.configureInterfaceLogger(True, True, True)
core.addConsoleVerbose(core.Verbose.INFO)
​
# add all tokens
for token in pxz.core.listTokens():
    core.addWantedToken(token)
​
# if no license is found, try to configure a license server
if not core.checkLicense():
    core.configureLicenseServer("lics-it-gcp-p01", 27005, True)