Metadata-Version: 2.4
Name: miniware-mdp-control
Version: 0.1.0
Summary: Control Miniware MDP-P906 power supplies through a USB-connected MDP-M01.
Author-email: Zubax Robotics <pavel.kirienko@zubax.com>
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/Zubax/miniware_mdp_control
Keywords: miniware,mdp-m01,mdp-p906,power supply,serial
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyserial~=3.5
Dynamic: license-file

# Miniware MDP-M01 Python control

Control paired Miniware MDP-P906 power supplies through a USB-connected MDP-M01.

```sh
python3 -m pip install miniware-mdp-control
```

## Command line

```sh
mdp-control status
mdp-control ch1 9V 750mA on
mdp-control ch1 off
mdp-control ch1 9V 750mA on ch2 5V 1A on ch3 off
```

Actions are case-insensitive and may appear in any order within a channel clause. A command containing `on` may
energize connected hardware.

## Python API

```python
from mdp_control import ChannelCommand, MDPController

with MDPController() as mdp:
    status = mdp.apply(ChannelCommand(1, voltage=9.0, current=0.75, output=True))
    print(status.channels[0])
```

The complete documentation is maintained in the `mdp_control` module docstring. View it from the command line or
through Python's documentation tool:

```sh
mdp-control --help
python3 -m pydoc mdp_control
```
