7. Python Script Examples
You can find various XOA Python scripts in our public GitHub repository Xena OpenAutomation Script Example Library. It includes script examples of how you can use XOA Driver to configure a Xena tester.
7.1. What Example Folder Contains
Each folder contains at least three files:
Python script file - this is where the example code locates
requirements.txt - dependencies to run the code. You should pip install -r requirements.txt to update your Python environment (either global or virtual) to have the necessary dependencies.
7.2. Installing XOA Driver
This section details how to install tdl-xoa-driver
. Installation is necessary to execute scripts that use XOA Driver.
Before installing tdl-xoa-driver
, please make sure your environment has installed python>=3.8 and pip.
You can install the tdl-xoa-driver
to your global or virtual environment for Windows, macOS, and Linux using the commands below.
pip install tdl-xoa-driver -U # latest version
Once the tdl-xoa-driver
is installed, you can execute the script.