GitHub repository: michthom/Adafruit_CircuitPython_BusDevice
Description: Two helper classes that handle transaction related state for I2C and SPI including locks.