{ "info": { "author": "David Schneider", "author_email": "david.schneider@bivab.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Hardware" ], "description": "smbus-cffi\n==========\n\n.. image:: https://secure.travis-ci.org/bivab/smbus-cffi.svg\n :target: http://travis-ci.org/bivab/smbus-cffi\n\n.. image:: https://img.shields.io/pypi/v/smbus-cffi.svg\n :target: https://pypi.python.org/pypi/smbus-cffi/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/implementation/smbus-cffi.svg\n :target: https://pypi.python.org/pypi/smbus-cffi/\n :alt: Implementation\n \n.. image:: https://img.shields.io/pypi/l/smbus-cffi.svg\n :target: https://pypi.python.org/pypi/smbus-cffi/\n :alt: License\n \n.. image:: https://img.shields.io/pypi/format/smbus-cffi.svg\n :target: https://pypi.python.org/pypi/smbus-cffi/\n :alt: Download format\n\n.. image:: https://requires.io/github/bivab/smbus-cffi/requirements.png?branch=master\n :target: https://requires.io/github/bivab/smbus-cffi/requirements/?branch=master\n :alt: Requirements Status\n\nThis Python module allows SMBus access through the I2C /dev interface on Linux\nhosts. The host kernel must have I2C support, I2C device interface support, and\na bus adapter driver.\n\nThis module is a cffi-based python reimplementation of the python-smbus C-extension\n(http://www.lm-sensors.org/browser/i2c-tools/trunk/py-smbus/) and works on PyPy\nand CPython (2.6 and up).\n\n\nNotes\n-----\n\nThe SMBus methods read_block_data and block_process_call are not fully tested,\nand might not work correctly, see note below.\n\n*Note of caution for Raspberry Pi users*: when calling read_block_data and\nblock_process_call the underlying i2c/smbus library/driver causes a kernel\npanic on the Raspberry Pi. Testing these features on other hardware would be a\ngreat way to contribute.\n\n\nExample\n-------\n\nAssuming you have a device connected at address 4 on the bus\n\n::\n\n >>> from smbus import SMBus\n\n >>> bus = SMBus(4)\n\n >>> bus.write_quick()\n\n >>> some_reg = 123\n\n >>> bus.write_i2c_block_data(4, some_reg, [1, 4, 7])\n\n\nDependencies\n------------\n\nTo install smbus-cffi you will need:\n\n* A C compiler\n* i2c development headers\n* cffi (https://pypi.python.org/pypi/cffi/)\n* PyPy or CPython development headers\n* libffi-dev is required CPython for cffi\n\nhttps://metacpan.org/pod/Device::SMBus provides a good description on how to setup the dependencies.\n\nOn Debian based distributions these can be installed with:\n\n::\n\n sudo apt-get install build-essential libi2c-dev i2c-tools python-dev libffi-dev\n\nOn Arch Linux:\n\n::\n\n pacman -S base-devel\n pacman -S i2c-tools\n\n\nFinally install cffi using pip or from source.\n\n::\n\n pip install cffi\n\n\nInstallation\n------------\n\nThere are several methods to install the package. First install the dependencies as described above. *Note:* unfortunately at the\nmoment when installing using pip or setup.py on CPython you need to make sure\nthat the cffi package already is installed.\n\n1. pip install from PyPi\n::\n\n pip install smbus-cffi\n\n2. pip install from git\n::\n\n pip install git+https://github.com/bivab/smbus-cffi.git\n\n3. Clone the repository and run setup.py\n::\n\n git clone https://github.com/bivab/smbus-cffi.git\n python setup.py install\n\n\nBug Reporting\n-------------\n\nTo submit a bugreport use the GitHub bugtracker for the project:\n\n https://github.com/bivab/smbus-cffi/issues\n\n\nDevelopment\n-----------\n\nYou can get the latest version from the repository hosted at GitHub\nhttps://github.com/bivab/smbus-cffi\n\nThe file requirements.txt contains the list of dependencies needed to work with\nsmbus-cffi.\n\nThe project uses py.test for testing and tox to test on pypy and python.\n\nThe file test/test_smbus_integration.py contains a set of integration tests for\nthe smbus wrapper. To run the integrations tests you need an Arduino board\nflashed with the sketch provided in test/test_sketch. The serial port and the\ni2c pins of the Arduino board need to be connected to the machine running the\ntests. The sketch implements the counterpart of the smbus protocol that reads\nand writes data for each test using smbus and the serial port.\n\n\n\nAuthors\n-------\n\n* David Schneider\n\nAuthor of the original smbus C extension:\n\n* Mark M. Hoffman\n\n\nCopyright\n---------\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; version 2 of the License.\n\nSee LICENSE for full license text", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bivab/smbus-cffi", "keywords": "", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "mysmbus", "package_url": "https://pypi.org/project/mysmbus/", "platform": "", "project_url": "https://pypi.org/project/mysmbus/", "project_urls": { "Homepage": "https://github.com/bivab/smbus-cffi" }, "release_url": "https://pypi.org/project/mysmbus/0.1/", "requires_dist": null, "requires_python": "", "summary": "This Python module allows SMBus access through the I2C /dev interface on Linux hosts. The host kernel must have I2C support, I2C device interface support, and a bus adapter driver.", "version": "0.1" }, "last_serial": 3849571, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b48b660d81a5cb861acff02ddf994e9c", "sha256": "9a3654496cb6cf204d5ded8a3c4b3412de3a9e5c62abbb88e7b0cdcc1e539a3d" }, "downloads": -1, "filename": "mysmbus-0.1.tar.gz", "has_sig": false, "md5_digest": "b48b660d81a5cb861acff02ddf994e9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19921, "upload_time": "2018-05-10T06:04:46", "url": "https://files.pythonhosted.org/packages/25/50/153664d5eb5406580e5b942ab56156a3e2cf7b3549fa98d9d6f4ccccaf43/mysmbus-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b48b660d81a5cb861acff02ddf994e9c", "sha256": "9a3654496cb6cf204d5ded8a3c4b3412de3a9e5c62abbb88e7b0cdcc1e539a3d" }, "downloads": -1, "filename": "mysmbus-0.1.tar.gz", "has_sig": false, "md5_digest": "b48b660d81a5cb861acff02ddf994e9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19921, "upload_time": "2018-05-10T06:04:46", "url": "https://files.pythonhosted.org/packages/25/50/153664d5eb5406580e5b942ab56156a3e2cf7b3549fa98d9d6f4ccccaf43/mysmbus-0.1.tar.gz" } ] }