This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Pure Python implementation of the I2C SMBus protocol.

Project Description

The pysmbus package is a pure Python reimplentation of the [python-smbus](http://www.lm-sensors.org/browser/i2c-tools/trunk/py-smbus/) package. This allows using the I2C SMBus protocol without having to compile C.

It has the same module name, smbus, as python-smbus, so that it can be used as a direct replacement in projects that normally depend on python-smbus.

Currently it’s incomplete. The following methods are implemented:

  • write_byte_data
  • read_byte_data

Other methods haven’t been implemented yet, since I don’t have any hardware needing those methods. Patches or requests for other methods are welcome.

This package has been comfirmed working with Python 2.7 and 3.4.

Example

from smbus import SMBus

bus = SMBus(1) # Opens /dev/i2c-1 bus.write_byte_data(0x54, 0x13, 0xff)

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pysmbus-0.1-3.tar.gz (2.4 kB) Copy SHA256 Checksum SHA256 Source Jan 3, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting