$npx skillfedfor your agent

smbus2

smbus2 is a drop-in replacement for smbus-cffi/smbus-python in pure Python

Worth itPyPI UtilitiesReleased Apr 20261.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — smbus2-0.6.1-py2.py3-none-any.whl
v0.6.1 · released 2026-04-09

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a Linux system with I2C support and access to /dev/i2c-* device files; does not work on Windows or macOS.
  • Low install friction with no runtime dependencies and a pure Python wheel distribution.
  • Actively maintained with recent releases and a stable repository.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

last release 2026-04-09 (127 days) · last repo commit 2026-08-05 · 271 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,064,165 downloads/mo, #4,417 on PyPI

Verify before relying

from smbus2 import SMBus

with SMBus(1) as bus:
    byte_value = bus.read_byte_data(0x50, 0)
    print(byte_value)
  • Whether the package requires root or special permissions to access /dev/i2c-* device files on Linux systems.
  • Performance characteristics compared to the original C-based smbus bindings for high-frequency I2C operations.
Same gist for agents: .md · .json

What it is and 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).

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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.

Install

smbus2 on PyPI

Before you install

Low install friction with no runtime dependencies and a pure Python wheel distribution. Actively maintained with recent releases and a stable repository.

Requires a Linux system with I2C support and access to /dev/i2c-* device files; does not work on Windows or macOS.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

Quickstart

from smbus2 import SMBus

with SMBus(1) as bus:
    byte_value = bus.read_byte_data(0x50, 0)
    print(byte_value)

Verify before relying

  • Whether the package requires root or special permissions to access /dev/i2c-* device files on Linux systems.
  • Performance characteristics compared to the original C-based smbus bindings for high-frequency I2C operations.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 127 days since the last release
Last repo commit
First released
Downloads1,064,165 / month, #4,417 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities

Evidence: smbus2-0.6.1-py2.py3-none-any.whl

Tags

Capabilities
i2c communication pythonsmbus python libraryraspberry pi i2clinux i2c interfacesmbus replacement pure pythoni2c read write transactionsembedded linux i2c
Topics
i2c-hardwareembedded-linuxraspberry-pi
PyPI keywords
smbussmbus2pythoni2craspberrypilinux

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “i2c communication python”

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also Adafruit-PureIO · ft4222 · adafruit-circuitpython-busdevice · spidev · pyftdi · libusbsio · python-can · python-ipmi · cobs · pure-pcapy3