{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"}],"enrichment":{"capability":"smbus2 provides pure Python I2C/SMBus communication for Linux devices, replacing the C-based smbus bindings with a compatible interface that supports both basic SMBus operations and advanced I2C transactions.","skillfed_tags":["i2c-hardware","embedded-linux","raspberry-pi"],"use_cases":["Read sensor data from I2C-connected devices on a Raspberry Pi or other Linux single-board computer.","Write configuration or control data to I2C peripherals like EEPROM, GPIO expanders, or motor controllers.","Perform combined I2C transactions requiring a write followed by a read with no stop bit between operations.","Access I2C devices with data blocks larger than the standard SMBus 32-byte limit using i2c_rdwr.","Replace legacy smbus bindings in existing Python projects without changing application logic."],"what_it_does":"smbus2 is a pure Python implementation of the SMBus and I2C protocols for Linux, designed as a drop-in replacement for the older C-based smbus bindings. It provides a familiar interface to users of the original smbus library while adding support for more complete I2C functionality, including combined read/write transactions with repeated start conditions and Packet Error Checking (PEC).\n\nThe package handles standard SMBus operations like reading and writing bytes, words, and blocks of data, as well as lower-level I2C transactions through the i2c_rdwr interface. It works across Python 2.7 and modern Python 3 versions, has no external runtime dependencies, and is designed for embedded systems and hardware interfacing tasks where direct I2C communication is needed.","worth_installing":"Yes. smbus2 is actively maintained, has no dependencies, installs easily, carries no security vulnerabilities, and is the standard choice for I2C communication in Python on Linux. Install it if you need to communicate with I2C devices; it is low-risk and widely used in embedded and IoT projects."},"id":"smbus2","links":{"html":"https://skillfed.io/packages/smbus2","md":"https://skillfed.io/packages/smbus2.md","pypi":"https://pypi.org/project/smbus2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-09","license_spdx":null,"license_treatment":"permissive","name":"smbus2","python_support":"unspecified","summary":"smbus2 is a drop-in replacement for smbus-cffi/smbus-python in pure Python"},"popularity":{"monthly_downloads":1064165,"position":4417,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
