WPC Python Driver
Overview
WPC Python driver is an easy-to-use open-source API for beginners and professionals. It simplifies communication with WPC products using a consistent and intuitive interface.
With rich examples and simple logic — just open
, read/write
, and close
— you can easily access or update data.
It is a practical tool for both learning and developing applications with real-world hardware.
⚠️ Note: Please ensure your firmware version is up-to-date to maintain compatibility.
Architecture
The driver supports both synchronous and asynchronous operation:
Synchronous: Executes tasks step-by-step, blocking until each completes.
Asynchronous: Runs tasks independently, allowing concurrency and scalability.
Synchronous APIs are easier to understand and debug, while asynchronous APIs are ideal for high-performance applications.
Install and Upgrade
Install via pip:
pip install wpcsys
To install without dependencies:
pip install wpcsys --no-deps
To upgrade:
pip install --upgrade wpcsys
Supported Platforms
This package provides prebuilt binaries (.so / .pyd) for:
Python Version |
Platform |
File Format |
Supported WPC Products |
---|---|---|---|
3.8 ~ 3.12 |
x86_64 Linux |
|
All WPC products supported |
3.8 ~ 3.12 |
Windows (win_amd64) |
|
All WPC products supported |
3.8 ~ 3.12 |
aarch64 Linux |
|
Drone products only |
- ⚠️ Warning: aarch64-linux-gnu builds support only WPC drone products.
Use with other products may cause errors or unexpected behavior.
Quick Start
A minimal working example:
from wpcsys import pywpc
print(pywpc.PKG_NAME)
print(pywpc.HANDLE_LIST)
Example output of HANDLE_LIST:
['DeviceFinder', 'Drone', 'EthanA', 'EthanA2', 'EthanD', 'EthanEXD', 'EthanI', 'EthanIA',
'EthanL', 'EthanO', 'EthanP', 'EthanT', 'USBDAQF1D', 'USBDAQF1DSNK', 'USBDAQF1AD',
'USBDAQF1AOD', 'USBDAQF1TD', 'USBDAQF1RD', 'USBDAQF1CD', 'WifiDAQE3A', 'WifiDAQE3AH',
'WifiDAQF4A', 'WifiDAQE3AOD', 'STEM', 'EMotion', 'EDriveST']
Resources
License
Licensed under the MIT License. See LICENSE for details. All included components allow for both commercial and non-commercial use.