Python bindings for Linux SMBus access through i2c-dev. Current version 1.1.post2. Minimal maintenance, not actively developed.
pip install smbusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Open I2C bus 1, read one byte from register 0x00 of device at address 0x48.
Run script with sudo or add user to i2c group: sudo usermod -aG i2c $USER
Use smbus >=1.1 for Python 3 support, or install smbus-cffi as alternative.
Replace import with smbus2 (from smbus2 import SMBus) for nearly identical API.
pip install smbus
Run script with sudo or add user to i2c group.
Enable I2C via raspi-config or check bus number with i2cdetect -l.
No dependency data recorded yet.