Metadata-Version: 2.4
Name: voltcraft
Version: 1.6.2
Summary: library for controlling Voltcraft PPS power supplies
Author-email: Andreas Poehlmann <andreas@poehlmann.io>
License: Copyright (C) 2012-2020 Andreas Poehlmann <andreas@poehlmann.io>
        
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights to
        use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
        of the Software, and to permit persons to whom the Software is furnished to do
        so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/ap--/voltcraft.git
Project-URL: Download, https://github.com/ap--/voltcraft
Project-URL: Source, https://github.com/ap--/voltcraft
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Utilities
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: pyserial
Dynamic: license-file

# voltcraft.pps

[![PyPI](https://img.shields.io/pypi/v/voltcraft)](https://pypi.org/project/voltcraft/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/voltcraft?label=pypi)](https://pypi.org/project/voltcraft/)
[![MIT license](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](http://opensource.org/licenses/MIT)
[![GitHub issues](https://img.shields.io/github/issues/ap--/voltcraft.svg)](https://github.com/ap--/voltcraft/issues)
[![Github Sponsors](https://img.shields.io/badge/github-sponsors-blue)](https://github.com/sponsors/ap--)

Python module for controlling Voltcraft PPS and DPPS powersupplies.
<br>Available at [www.conrad.com (PPS)](https://www.conrad.com/search?search=voltcraft%20pps)
and [www.conrad.com (DPPS)](https://www.conrad.com/search?search=voltcraft%20dpps)

```python
from voltcraft.pps import PPS

supply = PPS(port="/dev/ttyUSB0", reset=True)  # in Windows change string to COMx (eg COM4)

supply.voltage(10.0)
supply.current(2.0)
supply.output(1)
```

Install via:
```console
pip install voltcraft
```

There's no documentation, but the module is tiny, so please just read the [voltcraft/pps.py](voltcraft/pps.py) :sparkling_heart:

It is also possible to use this module as a command-line tool

```shell
$ py -m voltcraft COM3
MODEL=DPPS3230
IMAX=31.5
VMAX=32.2
IMULT=10.0
limits=(32.2, 31.5)
reading=(14.01, 2.13, 'CV')

$ py -m voltcraft COM3 off

$ py -m voltcraft COM3 read
reading=(3.14, 0.0, 'CV')

$ py -m voltcraft COM3 read
reading=(1.7, 0.0, 'CV')
```
