Setup
After you established a connection to the device, in order to interact with it programmatically, setup your development environment next by following these steps:
Note
Most of the setup and examples we provide in the subsequent chapters are written in Python.
-
Install Python: Make sure you have Python installed on your machine. You can download it from the official Python website.
- Optional: You can also setup your environment by using
uv. See the installation instructions.
- Optional: You can also setup your environment by using
-
Install Required Libraries: Use pip to install any required libraries. For the quickstart examples we need to install the following packages:
We use
requestsforHTTPandasyncuaforOPC UAinteraction -
Verify Installation: To verify that Python and the required libraries are installed correctly, you can run a simple script. Create a file named
test_setup.pywith the following content:Run the script using the command:
If everything is set up correctly, you should see the message confirming the installation.