smbus2

A drop-in replacement for smbus-cffi/smbus-python in pure Python

MIT License

Downloads
225.9K
Stars
230
Committers
19

Bot releases are hidden (Show)

smbus2 - Maintenance release Latest Release

Published by kplindegaard about 1 year ago

Housekeeping focused on future proofing:

  • Build pipeline updates:
    • Added Python 3.11
    • Python 2.7, 3.4, and 3.5 no longer tested, but this doesn't affect the status of support by smbus2 code. It only disables the unsupported configuration in the GitHub workflow.
  • Update deprecated Sphinx config format.
  • Refactored unit tests.

Contributors: @markmentovai, @hramrach

smbus2 - Maintenance update

Published by kplindegaard over 2 years ago

  • Explicitly export from top level of package #69.
  • Transitioned pipelines from Travis-CI to GitHub Actions.
  • Python 3.10 support added.
smbus2 - Quality update

Published by kplindegaard almost 4 years ago

No functional changes - minor updates only

  • Test file added to distro package
  • Published smbus2 on sonarcloud.io
smbus2 - Cleanup and PEC support

Published by kplindegaard almost 4 years ago

Changes

  • Support for SMBus PEC (Packet Error Checking).
  • Support for Python 3 type hinting and mypy static type analysis. Type stubs added to the project.
  • Cleaner docs:
    • Removed redundant README.rst.
    • README.md, CHANGELOG.md and LICENSE added to dist package.

Cleanup - discarded code

As of this version the SMBusWrapper class is removed and must be replaced with SMBus:

smbus2 - Improved and extended

Published by kplindegaard about 5 years ago

New/added features

  • SMBus.init(), SMBus.open(): bus can be a file path as well (issue #17).
  • The folllowing SMBus commands added (last two normally not supported by pure i2c-devices):
    • process_call,
    • write_block_data,
    • read_block_data,
    • block_process_call.
  • Enter/exit handlers moved to SMBus class.
  • Expose enumerations of i2c functionality flags in the I2cFunc class and exported that.
  • Added convenience features making the i2c_msg class easier to work with.

Deprecation warning

  • The SMBusWrapper class is now considered deprecated. Please update your code to use SMBus instead.
smbus2 - Bugfix

Published by kplindegaard almost 6 years ago

Fixed #32: Incorrect i2c_msg write object created in Python 3.x from string if ascii characters >= 128.

smbus2 - SMBus Quick command added

Published by kplindegaard almost 6 years ago

Added an "smbus compatible" method write_quick(addr) to the SMBus class (issue #7).

smbus2 -

Published by kplindegaard over 6 years ago

  • Force single r/w option (PR #20).
  • Documentation updates (PR #16 and #14).
    • Docs available on readthedocs thanks to @thijstriemstra
smbus2 - Combined i2c read/write transactions

Published by kplindegaard about 7 years ago

Package Rankings
Top 2.06% on Pypi.org
Top 23.32% on Conda-forge.org
Badges
Extracted from project README
Build Status Documentation Status Quality Gate Status PyPi Version PyPI - Downloads