kplindegaard / smbus2

A drop-in replacement for smbus-cffi/smbus-python in pure Python
MIT License
243 stars 68 forks source link

Structure for FreeBSD preserving backwards compatibility #100

Open kplindegaard opened 11 months ago

kplindegaard commented 11 months ago

An attempt to automatically detect OS and choose the right adaptations as implemented in a subclass called SMBusFreeBSD.

Design criteria:

  1. FreeBSD adaptations and adjustments should be fully separate from the Linux implementation. It is quite different, and the Linux implementation must not be full of ifs everywhere.
  2. It should be possible to use with SMBus(<busno>) as bus: as before without thinking about OS. This is the preferred usage pattern and just has to work.

Current concerns:

sonarcloud[bot] commented 10 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication