{ "info": { "author": "Marc 'BlackJack' Rintsch", "author_email": "marc@rintsch.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython", "Topic :: System", "Topic :: System :: Hardware", "Topic :: System :: Monitoring" ], "description": "=========\nPySensors\n=========\n\n:author: Marc 'BlackJack' Rintsch\n:date: 2014-08-17\n\nPython bindings for ``libsensors.so`` from the `lm-sensors`_ project via\n`ctypes`. Supports API version 4, i.e. `libsensors` version 3.x.\n\nMotivation\n==========\n\nMotivation for this package are shortcomings of scraping the output of\nthe ``sensors`` command by different shell scripts. Some had problems when\nlabels changed, others could not cope with too many matches of their\noverly broad regular expressions, and so on. Those scripts and thus\nthis package are used at `RebeIT`_ for monitoring servers. The needs of\nthat task are the driving force behind this implementation.\n\nRequirements\n============\n\n* Python \u22653.6\n* ``libsensors.so`` from `lm-sensors`_ version 3.x (API 4)\n\nThe package is pure Python, so any implementation with the `ctypes` module\nshould work.\n\nInstallation\n============\n\nThe usual ``python setup.py install`` from within the source distribution.\n\nLinks\n=====\n\n================= =================================================\nPyPi Entry http://pypi.python.org/pypi/PySensors/\nSource repository https://bitbucket.org/blackjack/pysensors/\nBugtracker https://bitbucket.org/blackjack/pysensors/issues/\n================= =================================================\n\nExample\n=======\n\nThe following example prints all detected sensor chips, their adapter, and the features with their \u201dmain\u201d value for each chip::\n\n import sensors\n \n sensors.init()\n try:\n for chip in sensors.iter_detected_chips():\n print '%s at %s' % (chip, chip.adapter_name)\n for feature in chip:\n print ' %s: %.2f' % (feature.label, feature.get_value())\n finally:\n sensors.cleanup()\n\nExample output of the code above::\n\n k8temp-pci-00c3 at PCI adapter\n Core0 Temp: 16.00\n Core0 Temp: 11.00\n Core1 Temp: 28.00\n Core1 Temp: 19.00\n w83627ehf-isa-0290 at ISA adapter\n Vcore: 1.10\n in1: 1.10\n AVCC: 3.30\n VCC: 3.31\n in4: 1.68\n in5: 1.68\n in6: 1.86\n 3VSB: 3.30\n Vbat: 3.06\n in9: 1.55\n Case Fan: 1231.00\n CPU Fan: 2410.00\n Aux Fan: 0.00\n fan5: 0.00\n Sys Temp: 39.00\n CPU Temp: 31.50\n AUX Temp: 30.50\n cpu0_vid: 0.00\n\n.. _CPython: http://www.python.org/\n.. _lm-sensors: http://www.lm-sensors.org/\n.. _PyPy: http://pypy.org/\n.. _RebeIT: http://www.rebeit.de/", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/PySensors/", "keywords": "sensors,hardware,monitoring", "license": "LGPL v2.1", "maintainer": "", "maintainer_email": "", "name": "PySensors", "package_url": "https://pypi.org/project/PySensors/", "platform": "", "project_url": "https://pypi.org/project/PySensors/", "project_urls": { "Homepage": "http://pypi.python.org/pypi/PySensors/" }, "release_url": "https://pypi.org/project/PySensors/0.0.4/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Python bindings to libsensors (via ctypes)", "version": "0.0.4" }, "last_serial": 5902460, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7786f888e59866a0b3b91ec2138b0d1f", "sha256": "242d208e505b02d344530e089e65724016a9799ff21a1475926f662ebc37f3d4" }, "downloads": -1, "filename": "PySensors-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7786f888e59866a0b3b91ec2138b0d1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5347, "upload_time": "2011-10-09T21:35:11", "url": "https://files.pythonhosted.org/packages/d3/cb/4a9ebd39b8a7e173563e9b156d729ffc735f5ce05243ee9a6a162dca3d9d/PySensors-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ff15240b5918a9f5aa1bb7b2a75c7b07", "sha256": "b735dada5318ce50f2d141d29b102e7a116a5934509583f86302d4b59399e961" }, "downloads": -1, "filename": "PySensors-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ff15240b5918a9f5aa1bb7b2a75c7b07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5109, "upload_time": "2014-08-18T09:24:55", "url": "https://files.pythonhosted.org/packages/4e/11/c17454160e80a60587adcb511b760a6ddf8b2d60683bb0edd85919199adf/PySensors-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "af5ca440297b45bd440d32a7c8341c0f", "sha256": "beb0def410d29ee46fe196a7811124772abf84cbe3a0d8b01d80b81fba31dae5" }, "downloads": -1, "filename": "PySensors-0.0.4.tar.gz", "has_sig": false, "md5_digest": "af5ca440297b45bd440d32a7c8341c0f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10599, "upload_time": "2019-09-29T11:59:23", "url": "https://files.pythonhosted.org/packages/76/31/d3383a192f31ce1d79f27ec3d047cca23dd82a1bf0939e774386aba37cf5/PySensors-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af5ca440297b45bd440d32a7c8341c0f", "sha256": "beb0def410d29ee46fe196a7811124772abf84cbe3a0d8b01d80b81fba31dae5" }, "downloads": -1, "filename": "PySensors-0.0.4.tar.gz", "has_sig": false, "md5_digest": "af5ca440297b45bd440d32a7c8341c0f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10599, "upload_time": "2019-09-29T11:59:23", "url": "https://files.pythonhosted.org/packages/76/31/d3383a192f31ce1d79f27ec3d047cca23dd82a1bf0939e774386aba37cf5/PySensors-0.0.4.tar.gz" } ] }