{ "info": { "author": "Johannes Koch", "author_email": "johannes@ortsraum.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Home Automation", "Topic :: Scientific/Engineering" ], "description": "clewareADC\n==========\n\n.. contents::\n\nDescription\n-----------\nAn unofficial Python interface for the `Cleware USB-ADC 2 `_ utilizing\n`cython-hidapi `_.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\nLicense\n-------\nclewareADC is provided under the MIT license (see LICENSE).\n\nInstall\n-------\n\n1. Download clewareADC::\n\n git clone https://gitlab.com/darkforce/clewareADC.git\n cd clewareADC\n\n2. Install using setuptools::\n\n python setup.py install\n\nUsage\n-----\nThe folowing code will list all connected USB-ADC 2 devices, connect to the first device it finds\nand print ten values from both channels, scaled by 13.621V:\n\n.. code:: python\n\n import time\n from clewareADC import ClewareADC\n\n deviceList = ClewareADC.listDevices()\n if len(deviceList) < 1:\n raise Exception('No ADCs found')\n\n for device in deviceList:\n print('Found ADC at {} with serial number {}'.format(device[0], device[1]))\n print('')\n\n with ClewareADC(13.621, deviceList[0][1]) as adc:\n print('Reading from ADC {} with 13.621V scaling:'.format(deviceList[0][1]))\n\n for i in range(10):\n ch0 = adc.readChannel(0)\n ch1 = adc.readChannel(1)\n print(' Ch 0: {}V, Ch 1: {}V'.format(ch0, ch1))\n time.sleep(1.00)\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://gitlab.com/darkforce/clewareADC/-/archive/0.2/clewareADC-0.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/darkforce/clewareADC", "keywords": "cleware,adc,hidapi", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "clewareADC", "package_url": "https://pypi.org/project/clewareADC/", "platform": "", "project_url": "https://pypi.org/project/clewareADC/", "project_urls": { "Download": "https://gitlab.com/darkforce/clewareADC/-/archive/0.2/clewareADC-0.2.tar.gz", "Homepage": "https://gitlab.com/darkforce/clewareADC" }, "release_url": "https://pypi.org/project/clewareADC/0.2/", "requires_dist": [ "hidapi" ], "requires_python": "", "summary": "Python module to read values from Cleware USB-ADC 2", "version": "0.2" }, "last_serial": 3938658, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5212b605380ec88a4a5b075c8ff002dd", "sha256": "6caee75da03f692d1bc0ed0755301823d07970169f30bb2321937066412512d8" }, "downloads": -1, "filename": "clewareADC-0.1.tar.gz", "has_sig": false, "md5_digest": "5212b605380ec88a4a5b075c8ff002dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4101, "upload_time": "2015-11-17T12:36:16", "url": "https://files.pythonhosted.org/packages/00/1e/4cc61aefc7b44deaea569abe26d1592401d49c957d7adf43be082d9c39dc/clewareADC-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "39ac12751f389bdaf7ee91784457263a", "sha256": "c8133c2c9667dc1c4ee4f170323959b0890bbf4bc509ac8b3f87c5e87a690106" }, "downloads": -1, "filename": "clewareADC-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "39ac12751f389bdaf7ee91784457263a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4891, "upload_time": "2018-06-07T08:06:34", "url": "https://files.pythonhosted.org/packages/74/98/c44608a366474939b92c0a3f2a3c4cf57f7de0375988eeae67a4b2a1314e/clewareADC-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a02f8a4dfaad82080be90cf1f8878e30", "sha256": "3d78e3844c8647b6d09d1b8462ef1d894c438c5316432e2ebce9ed4a830bca1c" }, "downloads": -1, "filename": "clewareADC-0.2.tar.gz", "has_sig": false, "md5_digest": "a02f8a4dfaad82080be90cf1f8878e30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4085, "upload_time": "2018-06-07T08:06:35", "url": "https://files.pythonhosted.org/packages/54/d5/0a3e82589ea49d8d6edfadcc998e7fea987a50c1b42155b203d0ed6541e6/clewareADC-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39ac12751f389bdaf7ee91784457263a", "sha256": "c8133c2c9667dc1c4ee4f170323959b0890bbf4bc509ac8b3f87c5e87a690106" }, "downloads": -1, "filename": "clewareADC-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "39ac12751f389bdaf7ee91784457263a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4891, "upload_time": "2018-06-07T08:06:34", "url": "https://files.pythonhosted.org/packages/74/98/c44608a366474939b92c0a3f2a3c4cf57f7de0375988eeae67a4b2a1314e/clewareADC-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a02f8a4dfaad82080be90cf1f8878e30", "sha256": "3d78e3844c8647b6d09d1b8462ef1d894c438c5316432e2ebce9ed4a830bca1c" }, "downloads": -1, "filename": "clewareADC-0.2.tar.gz", "has_sig": false, "md5_digest": "a02f8a4dfaad82080be90cf1f8878e30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4085, "upload_time": "2018-06-07T08:06:35", "url": "https://files.pythonhosted.org/packages/54/d5/0a3e82589ea49d8d6edfadcc998e7fea987a50c1b42155b203d0ed6541e6/clewareADC-0.2.tar.gz" } ] }