Metadata-Version: 2.4
Name: wpcsys
Version: 3.2.3
Summary: WPC Python driver APIs, the easiest way to Control & Data Acquisition (DAQ)
Home-page: https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release
Author: Chunglee people, Chieh-An Lin
Author-email: wu@wpc.com.tw
License: MIT
Keywords: WPC,Drone,DAQ,Motion card,Motion driver,USB,Ethernet,Wifi
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Embedded Systems
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Classifier: Topic :: Documentation :: Sphinx
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: pyusb>=1.2.1
Requires-Dist: numpy>=1.23.0
Requires-Dist: qasync>=0.23.0
Requires-Dist: matplotlib>=3.5.2
Requires-Dist: PyQt5>=5.15.4
Requires-Dist: PyQt5-Qt5>=5.15.2
Requires-Dist: PyQt5-sip>=12.10.1
Requires-Dist: wpcEXEbuild>=0.0.1
Requires-Dist: pyserial>=3.5
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

WPC Python Driver
=================

.. image:: https://img.shields.io/badge/pip%20install-wpcsys-orange.svg
   :target: https://pypi.org/project/wpcsys/
   :alt: pip install

.. image:: https://img.shields.io/pypi/v/wpcsys
   :target: https://pypi.org/project/wpcsys/
   :alt: PyPI

.. image:: https://img.shields.io/badge/Python-3.8%20to%203.12%20-blue.svg
   :target: https://pypi.org/project/wpcsys/
   :alt: Python version

.. image:: https://img.shields.io/badge/os-Ubuntu%20&%20Windows%2010-brown.svg
   :target: https://www.microsoft.com/zh-tw/software-download/windows10
   :alt: OS

.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
   :target: https://opensource.org/licenses/MIT
   :alt: License: MIT

.. image:: https://img.shields.io/badge/docs-passing-green.svg
   :target: https://wpc-systems-ltd.github.io/WPC_Python_driver_release/
   :alt: docs

.. image:: https://img.shields.io/pypi/wheel/wpcsys
   :target: https://pypi.org/project/wpcsys/
   :alt: Wheel support

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:

.. code-block:: shell

   pip install wpcsys

To install without dependencies:

.. code-block:: shell

   pip install wpcsys --no-deps

To upgrade:

.. code-block:: shell

   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          | ``.so``        | All WPC products supported  |
+----------------+-----------------------+----------------+-----------------------------+
| 3.8 ~ 3.12     | Windows (win_amd64)   | ``.pyd``       | All WPC products supported  |
+----------------+-----------------------+----------------+-----------------------------+
| 3.8 ~ 3.12     | aarch64 Linux         | ``.so``        | **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:

.. code-block:: python

   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', 'WifiDAQE3AO', 'STEM', 'EMotion', 'EDriveST']

Resources
---------

- `GitHub Repository <https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release>`_
- `Documentation <https://wpc-systems-ltd.github.io/WPC_Python_driver_release/>`_
- `Useful Conda Commands <https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release/wiki/Useful-Conda-Commands>`_
- `Run Examples in Console <https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release/wiki/How-to-run-WPC-Python-driver-example-code-in-console>`_
- `Build EXE from Python Code <https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release/wiki/How-to-build-your-own-Python-code-to-EXE-file>`_
- `Install Miniconda and Create Virtual Env <https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release/wiki/How-to-install-miniconda-and-build-your-own-virtual-environment>`_
- `LabVIEW Run-Time Engine <https://drive.google.com/file/d/1Uj6r65KhNxvuApiqrMkZp-NWyq-Eek-k/view>`_

License
-------

Licensed under the MIT License. See `LICENSE <https://github.com/WPC-Systems-Ltd/WPC_Python_driver_release/blob/main/LICENSE>`_ for details.
All included components allow for both commercial and non-commercial use.
