Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Pure Python implementation of the I2C SMBus protocol.

Project description

The pysmbus package is a pure Python reimplentation of the [python-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.


from smbus import SMBus

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

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for pysmbus, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pysmbus-0.1-3.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page